#lesson-worksheet-section .lesson-worksheet-viewer {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-width: 0;
}

#lesson-worksheet-section .lesson-worksheet-load-error {
    margin: 0 0 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 0.65rem;
    border: 1px solid rgba(182, 0, 0, 0.25);
    background: #fff5f5;
    color: #8f0000;
    font-weight: 600;
    text-align: center;
}

#lesson-worksheet-section .lesson-worksheet-mobile-launcher {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 5.75rem;
    padding: 0.7rem;
    border: 2px solid rgba(182, 0, 0, 0.2);
    border-radius: 1rem;
    background: linear-gradient(135deg, #fff 0%, #fff7f7 100%);
    color: #8f0000;
    font-weight: 700;
    text-align: start;
    box-shadow: 0 4px 16px rgba(182, 0, 0, 0.1);
    cursor: pointer;
    overflow: hidden;
}

#lesson-worksheet-section .lesson-worksheet-mobile-launcher__file-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 0.45rem;
    width: 100%;
    min-width: 0;
}

#lesson-worksheet-section .lesson-worksheet-mobile-launcher__item,
#lesson-worksheet-section .lesson-worksheet-mobile-launcher__zoom,
#lesson-worksheet-section .lesson-worksheet-mobile-launcher__share,
#lesson-worksheet-section .lesson-worksheet-mobile-launcher__download {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.28rem;
    min-width: 0;
    min-height: 4.15rem;
    padding: 0.45rem 0.25rem;
    border: 0;
    border-radius: 0.8rem;
    background: rgba(182, 0, 0, 0.08);
    color: #b60000;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.15;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
}

#lesson-worksheet-section .lesson-worksheet-mobile-launcher__zoom {
    background: #b60000;
    color: #fff;
}

#lesson-worksheet-section .lesson-worksheet-mobile-launcher__info {
    background: transparent;
    color: #8f0000;
    cursor: default;
}

#lesson-worksheet-section .lesson-worksheet-mobile-launcher__info .lesson-worksheet-mobile-launcher__icon {
    background: rgba(182, 0, 0, 0.1);
}

#lesson-worksheet-section .lesson-worksheet-mobile-launcher__share,
#lesson-worksheet-section .lesson-worksheet-mobile-launcher__download {
    background: #fff;
    color: #b60000;
    border: 1px solid rgba(182, 0, 0, 0.22);
    box-shadow: 0 2px 8px rgba(182, 0, 0, 0.08);
}

#lesson-worksheet-section .lesson-worksheet-mobile-launcher__icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
}

#lesson-worksheet-section .lesson-worksheet-mobile-launcher__zoom i,
#lesson-worksheet-section .lesson-worksheet-mobile-launcher__share i,
#lesson-worksheet-section .lesson-worksheet-mobile-launcher__download i {
    font-size: 1.18rem;
    color: inherit;
}

#lesson-worksheet-section .lesson-worksheet-mobile-launcher__label {
    display: -webkit-box;
    width: 100%;
    overflow: hidden;
    line-height: 1.25;
    overflow-wrap: anywhere;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

#lesson-worksheet-section .lesson-worksheet-mobile-launcher__item.is-loading {
    pointer-events: none;
    opacity: 0.78;
}

#lesson-worksheet-section .lesson-worksheet-mobile-launcher__item.is-loading .lesson-worksheet-mobile-launcher__icon > i {
    visibility: hidden;
}

#lesson-worksheet-section .lesson-worksheet-mobile-launcher__item.is-loading .lesson-worksheet-mobile-launcher__icon::after {
    position: absolute;
    inset: 0.2rem;
    content: "";
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 999px;
    animation: worksheet-mobile-action-spin 0.75s linear infinite;
}

@keyframes worksheet-mobile-action-spin {
    to {
        transform: rotate(360deg);
    }
}

#lesson-worksheet-section .lesson-worksheet-mobile-launcher:hover,
#lesson-worksheet-section .lesson-worksheet-mobile-launcher:focus-within {
    border-color: #b60000;
    background: #fdeaea;
    color: #8f0000;
    outline: none;
    text-decoration: none;
}

#lesson-worksheet-section .lesson-worksheet-mobile-launcher__zoom:hover,
#lesson-worksheet-section .lesson-worksheet-mobile-launcher__zoom:focus-visible,
#lesson-worksheet-section .lesson-worksheet-mobile-launcher__share:hover,
#lesson-worksheet-section .lesson-worksheet-mobile-launcher__share:focus-visible,
#lesson-worksheet-section .lesson-worksheet-mobile-launcher__download:hover,
#lesson-worksheet-section .lesson-worksheet-mobile-launcher__download:focus-visible {
    background: #8f0000;
    color: #fff;
    outline: none;
}

#lesson-worksheet-section .lesson-worksheet-shell {
    min-width: 0;
}

#lesson-worksheet-section .lesson-worksheet-mobile-header,
.lesson-worksheet-mobile-overlay .lesson-worksheet-mobile-header {
    display: none;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: calc(0.45rem + env(safe-area-inset-top, 0px)) 0.65rem 0.45rem;
    background: #b60000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

#lesson-worksheet-section .lesson-worksheet-mobile-pinch-hint,
.lesson-worksheet-mobile-overlay .lesson-worksheet-mobile-pinch-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex: 1 1 8.5rem;
    min-width: 0;
    margin: 0;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: start;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

#lesson-worksheet-section .lesson-worksheet-mobile-pinch-hint span,
.lesson-worksheet-mobile-overlay .lesson-worksheet-mobile-pinch-hint span {
    min-width: 0;
}

#lesson-worksheet-section .lesson-worksheet-action-toolbar,
.lesson-worksheet-mobile-overlay .lesson-worksheet-action-toolbar {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem;
    flex-wrap: wrap;
    padding: 0.55rem 0.65rem;
    border: 1px solid rgba(182, 0, 0, 0.14);
    border-radius: 0.75rem 0.75rem 0 0;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08);
}

#lesson-worksheet-section .lesson-worksheet-action-toolbar__btn,
.lesson-worksheet-mobile-overlay .lesson-worksheet-action-toolbar__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.35rem;
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(182, 0, 0, 0.2);
    border-radius: 999px;
    background: #fff;
    color: #b60000;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(182, 0, 0, 0.08);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

#lesson-worksheet-section .lesson-worksheet-action-toolbar__btn:hover,
#lesson-worksheet-section .lesson-worksheet-action-toolbar__btn:focus-visible,
.lesson-worksheet-mobile-overlay .lesson-worksheet-action-toolbar__btn:hover,
.lesson-worksheet-mobile-overlay .lesson-worksheet-action-toolbar__btn:focus-visible {
    background: #fdeaea;
    color: #8f0000;
    outline: none;
    text-decoration: none;
}

#lesson-worksheet-section .lesson-worksheet-action-toolbar__btn i,
.lesson-worksheet-mobile-overlay .lesson-worksheet-action-toolbar__btn i {
    color: inherit;
    font-size: 1rem;
}

#lesson-worksheet-section .lesson-worksheet-action-toolbar__btn--close {
    display: none;
}

.lesson-worksheet-mobile-overlay .lesson-worksheet-action-toolbar__btn--close {
    display: inline-flex;
}

.lesson-worksheet-mobile-overlay .lesson-worksheet-mobile-header {
    display: flex;
}

#lesson-worksheet-section .lesson-worksheet-mobile-zoom-group,
.lesson-worksheet-mobile-overlay .lesson-worksheet-mobile-zoom-group {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

#lesson-worksheet-section .lesson-worksheet-mobile-zoom-btn,
.lesson-worksheet-mobile-overlay .lesson-worksheet-mobile-zoom-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.4rem;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #b60000;
    font-size: 1.15rem;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

#lesson-worksheet-section .lesson-worksheet-mobile-zoom-btn:disabled,
.lesson-worksheet-mobile-overlay .lesson-worksheet-mobile-zoom-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

#lesson-worksheet-section .lesson-worksheet-mobile-zoom-btn--out,
.lesson-worksheet-mobile-overlay .lesson-worksheet-mobile-zoom-btn--out {
    background: #fff;
    color: #b60000;
}

#lesson-worksheet-section .lesson-worksheet-mobile-zoom-btn--in,
.lesson-worksheet-mobile-overlay .lesson-worksheet-mobile-zoom-btn--in {
    background: #fff;
    color: #b60000;
}

#lesson-worksheet-section .lesson-worksheet-mobile-zoom-btn:hover:not(:disabled),
#lesson-worksheet-section .lesson-worksheet-mobile-zoom-btn:focus-visible,
.lesson-worksheet-mobile-overlay .lesson-worksheet-mobile-zoom-btn:hover:not(:disabled),
.lesson-worksheet-mobile-overlay .lesson-worksheet-mobile-zoom-btn:focus-visible {
    background: #fdeaea;
    color: #8f0000;
    outline: none;
}

#lesson-worksheet-section .lesson-worksheet-mobile-zoom-level,
.lesson-worksheet-mobile-overlay .lesson-worksheet-mobile-zoom-level {
    min-width: 3.25rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 800;
    color: #fff;
    user-select: none;
}

#lesson-worksheet-section .lesson-worksheet-mobile-minimize-btn,
.lesson-worksheet-mobile-overlay .lesson-worksheet-mobile-minimize-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.75rem;
    padding: 0.45rem 1rem;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #b60000;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.2;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.18);
    cursor: pointer;
}

#lesson-worksheet-section .lesson-worksheet-mobile-minimize-btn:hover,
#lesson-worksheet-section .lesson-worksheet-mobile-minimize-btn:focus-visible,
.lesson-worksheet-mobile-overlay .lesson-worksheet-mobile-minimize-btn:hover,
.lesson-worksheet-mobile-overlay .lesson-worksheet-mobile-minimize-btn:focus-visible {
    background: #fdeaea;
    color: #8f0000;
    outline: none;
}

.lesson-worksheet-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 13120;
    flex-direction: column;
    background: #fff;
    overflow: hidden;
    overscroll-behavior: contain;
    padding-top: env(safe-area-inset-top, 0px);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.lesson-worksheet-mobile-overlay.is-open {
    display: flex;
}

.lesson-worksheet-mobile-overlay .lesson-worksheet-shell {
    display: flex !important;
    flex: 1;
    min-height: 0;
    flex-direction: column;
    width: 100%;
}

.lesson-worksheet-mobile-overlay .lesson-worksheet-mobile-header {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 6;
    padding-top: 0.55rem;
    background: #b60000;
}

.lesson-worksheet-mobile-overlay .lesson-worksheet-action-toolbar {
    position: sticky;
    top: 0;
    z-index: 5;
    flex-shrink: 0;
    border-width: 0 0 1px;
    border-radius: 0;
    background: #fff;
}

.lesson-worksheet-mobile-overlay .lesson-worksheet-viewer {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.lesson-worksheet-mobile-overlay .lesson-worksheet-scroll {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: none !important;
    height: auto !important;
    overflow: hidden;
    border: 0;
    border-radius: 0;
}

.lesson-worksheet-mobile-overlay .lesson-worksheet-embed-scaler {
    flex: 1;
    min-height: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    transform: none;
}

.lesson-worksheet-mobile-overlay .lesson-worksheet-image {
    transform-origin: top center;
    transition: transform 0.12s ease-out;
}

.lesson-worksheet-mobile-overlay .lesson-worksheet-embed-iframe {
    flex: 1;
    min-height: 0;
    width: 100%;
    height: 100% !important;
    border: 0;
    border-radius: 0;
}

.lesson-worksheet-mobile-overlay .lesson-worksheet-pdfjs {
    display: none;
    flex: 1;
    min-height: 0;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.6rem;
    direction: ltr;
    unicode-bidi: isolate;
    text-align: left;
}

.lesson-worksheet-mobile-overlay .lesson-worksheet-pdfjs.is-loading,
.lesson-worksheet-mobile-overlay .lesson-worksheet-pdfjs[data-pdfjs-rendered="1"] {
    display: block;
}

.lesson-worksheet-mobile-overlay .lesson-worksheet-pdfjs__page {
    width: 100%;
    height: auto;
    margin-bottom: 0.65rem;
    border-radius: 0.5rem;
}

#lesson-worksheet-section .lesson-worksheet-mobile-fallback,
.lesson-worksheet-mobile-overlay .lesson-worksheet-mobile-fallback {
    display: none;
}

.lesson-worksheet-mobile-overlay .lesson-worksheet-mobile-fallback {
    display: flex;
    flex: 1;
    min-height: 0;
    width: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.25rem;
    background: linear-gradient(180deg, #fff 0%, #fff7f7 100%);
    color: #7a0000;
    text-align: center;
}

.lesson-worksheet-mobile-overlay .lesson-worksheet-mobile-fallback.is-hidden,
#lesson-worksheet-section .lesson-worksheet-mobile-fallback.is-hidden {
    display: none !important;
}

.lesson-worksheet-mobile-overlay .lesson-worksheet-mobile-fallback__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 1.25rem;
    background: rgba(182, 0, 0, 0.1);
    color: #b60000;
    font-size: 2.5rem;
}

.lesson-worksheet-mobile-overlay .lesson-worksheet-mobile-fallback__title {
    margin: 0;
    color: #8f0000;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.45;
}

.lesson-worksheet-mobile-overlay .lesson-worksheet-mobile-fallback__text {
    max-width: 22rem;
    margin: 0;
    color: rgba(122, 0, 0, 0.76);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.55;
}

.lesson-worksheet-mobile-overlay .lesson-worksheet-mobile-fallback__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.65rem;
    width: 100%;
}

.lesson-worksheet-mobile-overlay .lesson-worksheet-mobile-fallback__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.9rem;
    padding: 0.7rem 1.05rem;
    border: 1px solid rgba(182, 0, 0, 0.22);
    border-radius: 999px;
    background: #fff;
    color: #b60000;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(182, 0, 0, 0.1);
}

.lesson-worksheet-mobile-overlay .lesson-worksheet-mobile-fallback__btn--primary {
    background: #b60000;
    color: #fff;
    border-color: #b60000;
}

.lesson-worksheet-mobile-overlay .lesson-worksheet-mobile-fallback__btn:hover,
.lesson-worksheet-mobile-overlay .lesson-worksheet-mobile-fallback__btn:focus-visible {
    background: #fdeaea;
    color: #8f0000;
    outline: none;
    text-decoration: none;
}

.lesson-worksheet-mobile-overlay .lesson-worksheet-mobile-fallback__btn--primary:hover,
.lesson-worksheet-mobile-overlay .lesson-worksheet-mobile-fallback__btn--primary:focus-visible {
    background: #8f0000;
    color: #fff;
}

.lesson-worksheet-mobile-overlay .lesson-worksheet-shell--download-only [data-worksheet-open-original] {
    display: none !important;
}

html.lesson-worksheet-fullscreen-lock,
body.lesson-worksheet-fullscreen-lock {
    overflow: hidden;
    overscroll-behavior: none;
}

#lesson-worksheet-section .lesson-worksheet-scroll {
    position: relative;
    width: 100%;
    overflow: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border: 2px solid #fdeaea;
    border-radius: 0.65rem;
    background: #fff;
    padding: 0;
}

#lesson-worksheet-section .lesson-worksheet-scroll--pdfjs-active {
    max-height: min(75vh, 720px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0.65rem;
}

#lesson-worksheet-section .lesson-worksheet-embed-scaler {
    --worksheet-embed-scale: 1;
    width: 100%;
    transform: scale(var(--worksheet-embed-scale));
    transform-origin: top center;
    margin: 0 auto;
}

#lesson-worksheet-section .lesson-worksheet-embed-iframe {
    display: block;
    width: 100%;
    min-height: 220px;
    border: 0;
    border-radius: 0.65rem;
    background: #fff;
}

#lesson-worksheet-section .lesson-worksheet-pdfjs {
    display: none;
    width: 100%;
    direction: ltr;
    unicode-bidi: isolate;
    text-align: left;
}

#lesson-worksheet-section .lesson-worksheet-pdfjs.is-loading,
#lesson-worksheet-section .lesson-worksheet-pdfjs[data-pdfjs-rendered="1"] {
    display: block;
}

#lesson-worksheet-section .lesson-worksheet-pdfjs.is-loading {
    min-height: 10rem;
    background: #f4f4f4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 24 24'%3E%3Cpath fill='%23b60000' d='M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46A7.93 7.93 0 0 0 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74A7.93 7.93 0 0 0 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z'/%3E%3C/svg%3E") center 2.5rem no-repeat;
}

#lesson-worksheet-section .lesson-worksheet-pdfjs__page {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto 0.5rem;
    border-radius: 0.35rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    background: #fff;
}

#lesson-worksheet-section .lesson-worksheet-scroll:has(.lesson-worksheet-image) {
    max-height: min(70vh, 640px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0.75rem;
}

#lesson-worksheet-section .lesson-worksheet-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.course-view-inner-left > #lesson-worksheet-section.course-view-box.course-view-box--two {
    overflow: visible;
}

#lesson-worksheet-section.lesson-worksheet--mobile-modal {
    position: fixed;
    inset: 0;
    z-index: 1080;
    margin: 0 !important;
    border-radius: 0 !important;
    padding: 0.75rem !important;
    padding-top: calc(0.75rem + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px)) !important;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    overscroll-behavior: contain;
}

#lesson-worksheet-section.lesson-worksheet--mobile-modal .lesson-title-on-worksheet {
    flex-shrink: 0;
}

#lesson-worksheet-section.lesson-worksheet--mobile-modal .lesson-worksheet-shell {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

#lesson-worksheet-section.lesson-worksheet--mobile-modal .lesson-worksheet-viewer {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

#lesson-worksheet-section.lesson-worksheet--mobile-modal .lesson-worksheet-scroll {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-height: none !important;
    height: auto !important;
    min-height: 0;
    overflow: hidden;
}

#lesson-worksheet-section.lesson-worksheet--mobile-modal .lesson-worksheet-embed-scaler {
    flex: 1;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    transform: none;
}

#lesson-worksheet-section.lesson-worksheet--mobile-modal .lesson-worksheet-embed-iframe {
    flex: 1;
    min-height: 0;
    width: 100%;
    height: 100% !important;
}

@media (max-width: 767.98px) {
    #lesson-worksheet-section .lesson-worksheet-mobile-launcher {
        display: flex;
    }

    #lesson-worksheet-section .lesson-worksheet-shell {
        display: none;
    }

    #lesson-worksheet-section .lesson-worksheet-shell .lesson-worksheet-mobile-header {
        display: none;
    }

    #lesson-worksheet-section .lesson-worksheet-shell .lesson-worksheet-scroll {
        min-height: 13rem;
        height: min(42vh, 18rem) !important;
        max-height: 18rem !important;
        overflow-x: hidden;
        overflow-y: auto;
        border-radius: 0.85rem;
        padding: 0.6rem;
        background: #f4f4f4;
    }

    #lesson-worksheet-section .lesson-worksheet-shell .lesson-worksheet-embed-scaler {
        display: flex;
        flex: 1;
        min-height: 0;
        height: 100%;
    }

    #lesson-worksheet-section .lesson-worksheet-shell .lesson-worksheet-embed-iframe {
        flex: 1;
        min-height: 0;
        width: 100%;
        height: 100% !important;
        border: 0;
        border-radius: 0.85rem;
    }

    #lesson-worksheet-section .lesson-worksheet-shell .lesson-worksheet-pdfjs {
        display: none;
        flex: 1;
        min-height: 0;
        width: 100%;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    #lesson-worksheet-section .lesson-worksheet-shell .lesson-worksheet-pdfjs.is-loading,
    #lesson-worksheet-section .lesson-worksheet-shell .lesson-worksheet-pdfjs[data-pdfjs-rendered="1"] {
        display: block;
    }

    #lesson-worksheet-section .lesson-worksheet-shell .lesson-worksheet-pdfjs__page {
        width: 100%;
        height: auto;
        margin-bottom: 0.65rem;
        border-radius: 0.5rem;
    }

    .lesson-worksheet-mobile-overlay .lesson-worksheet-mobile-minimize-btn {
        min-height: 3rem;
        position: relative;
        z-index: 7;
    }

    #lesson-worksheet-section .lesson-worksheet-action-toolbar,
    .lesson-worksheet-mobile-overlay .lesson-worksheet-action-toolbar {
        flex-wrap: nowrap;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        padding: 0.5rem;
    }

    #lesson-worksheet-section .lesson-worksheet-action-toolbar__btn,
    .lesson-worksheet-mobile-overlay .lesson-worksheet-action-toolbar__btn {
        flex: 0 0 auto;
        min-height: 2.55rem;
        padding: 0.5rem 0.75rem;
    }

    .lesson-worksheet-mobile-overlay .lesson-worksheet-mobile-fallback {
        display: flex;
    }

    .lesson-worksheet-mobile-overlay .lesson-worksheet-embed-scaler,
    .lesson-worksheet-mobile-overlay .lesson-worksheet-pdfjs {
        display: none !important;
    }
}

@media (min-width: 768px) {
    #lesson-worksheet-section .lesson-worksheet-mobile-launcher {
        display: none !important;
    }

    #lesson-worksheet-section .lesson-worksheet-mobile-header {
        display: none !important;
    }

    #lesson-worksheet-section .lesson-worksheet-shell {
        display: block;
    }

    #lesson-worksheet-section .lesson-worksheet-scroll:has(.lesson-worksheet-embed-iframe),
    #lesson-worksheet-section .lesson-worksheet-scroll:has(.lesson-worksheet-pdfjs) {
        max-height: min(75vh, 720px);
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    #lesson-worksheet-section .lesson-worksheet-pdfjs {
        display: none;
        width: 100%;
        padding: 0.75rem;
        direction: ltr;
        unicode-bidi: isolate;
        text-align: left;
    }

    #lesson-worksheet-section .lesson-worksheet-pdfjs.is-loading,
    #lesson-worksheet-section .lesson-worksheet-pdfjs[data-pdfjs-rendered="1"] {
        display: block;
    }

    #lesson-worksheet-section .lesson-worksheet-pdfjs__page {
        width: 100%;
        height: auto;
        margin-bottom: 0.75rem;
    }
}
