/* The learning workspace keeps legacy game and resource components intact. */
body.course-page.course-workspace {
    --workspace-navy: #12374f;
    --workspace-muted: #71818c;
    --workspace-line: #e5e9ec;
    --workspace-yellow: #ffbf35;
    background: #f6f7f9 !important;
}

body.course-workspace .course-shell {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100dvh !important;
    overflow: visible !important;
    padding: 0 0 40px !important;
    background: #f6f7f9 !important;
}

body.course-page.course-workspace .container {
    width: min(1320px, calc(100% - 72px)) !important;
    max-width: 1320px !important;
}

body.course-page.course-workspace .course-shell-head.container {
    width: 100% !important;
    max-width: none !important;
    min-height: 78px !important;
    padding: 10px max(36px, calc((100% - 1320px) / 2)) !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 20px !important;
    margin: 0 auto !important;
    background: #fff !important;
    border-bottom: 1px solid var(--workspace-line) !important;
}

body.course-workspace .course-shell-head__main {
    display: flex !important;
    gap: 24px !important;
    flex-direction: row !important;
    align-items: center !important;
}

body.course-workspace .course-center-logo {
    display: flex !important;
    order: 0 !important;
    background: transparent !important;
}

body.course-workspace .course-center-logo img {
    width: 59px !important;
    height: 59px !important;
    object-fit: contain !important;
}

body.course-workspace .course-breadcrumb {
    gap: 12px !important;
    flex-wrap: nowrap !important;
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

body.course-workspace .course-breadcrumb__lesson,
body.course-workspace .course-breadcrumb__lesson + span {
    display: none !important;
}

body.course-workspace .course-breadcrumb > span:nth-last-child(2) { display: none; }
body.course-workspace .course-breadcrumb__current { max-width: 420px; }

body.course-workspace .course-back {
    order: 0 !important;
    min-height: 42px !important;
    width: auto !important;
    max-width: none !important;
    overflow: visible !important;
    padding: 9px 15px !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

body.course-workspace .course-back:hover { background: #f1f5f7 !important; color: var(--workspace-navy) !important; }

body.course-workspace .course-workspace-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 23px 21px;
}

body.course-workspace .course-workspace-eyebrow {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 8px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.65px;
    color: #627785;
}

.course-workspace-eyebrow > span { width: 7px; height: 7px; border-radius: 50%; background: #f4b62c; }

body.course-workspace .course-workspace-title {
    margin: 0 0 6px;
    color: var(--workspace-navy) !important;
    font-size: clamp(24px, 2.15vw, 32px);
    line-height: 1.2;
    letter-spacing: -.7px;
}

.course-workspace-description { margin: 0; color: #6b7b86; font-size: 13px; line-height: 1.6; }
.course-workspace-meta { display: flex; gap: 24px; flex-shrink: 0; }
.course-workspace-meta > span { display: flex; gap: 6px; align-items: center; font-size: 13px; color: #6b7b86; white-space: nowrap; }
.course-workspace-meta strong { font-weight: 800; color: #12374f; }
.course-workspace-meta svg { width: 19px; height: 19px; margin-right: 3px; fill: none; stroke: #5c7484; stroke-width: 1.6; stroke-linejoin: round; }

body.course-workspace .course-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 380px !important;
    align-items: start !important;
    gap: 24px !important;
    margin-top: 0 !important;
    padding-bottom: 24px !important;
}

body.course-workspace .course-player-column { min-width: 0 !important; position: static !important; }
body.course-workspace .course-side-column { position: sticky !important; top: 24px !important; min-width: 0; }

body.course-workspace .course-player-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    position: relative !important;
    top: auto !important;
    padding: 0 !important;
    border: 1px solid var(--workspace-line) !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 4px 16px #15375004 !important;
    overflow: hidden !important;
    scroll-margin-top: 20px;
}

body.course-workspace .course-video-wrapper {
    order: 0;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 9 !important;
    border-radius: 15px 15px 0 0 !important;
    background: #0c1720 !important;
    overflow: hidden !important;
}

body.course-workspace .course-video-wrapper :is(video, iframe) {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    border: 0 !important;
    object-fit: contain !important;
    border-radius: 0 !important;
}

body.course-workspace .course-player-header {
    order: 1;
    display: block !important;
    padding: 24px 26px 14px !important;
    margin: 0 !important;
    background: #fff !important;
    border: 0 !important;
    min-height: 0 !important;
}

body.course-workspace .course-player-badge {
    display: block !important;
    width: auto !important;
    min-height: 0 !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #71818c !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: .6px !important;
    line-height: 1.5 !important;
}

body.course-workspace .course-player-title { margin: 0 !important; font-size: clamp(21px, 1.8vw, 27px) !important; line-height: 1.3 !important; color: #12374f !important; }

body.course-workspace .course-player-source-note {
    order: 2;
    min-height: 0 !important;
    margin: 0 26px 20px !important;
    padding: 10px 12px !important;
    gap: 9px !important;
    border: 1px solid #f6e7be !important;
    border-radius: 8px !important;
    background: #fffaf0 !important;
    box-shadow: none !important;
}

body.course-workspace .course-player-source-note__badge { flex-shrink: 0; padding: 4px 7px !important; border-radius: 5px !important; background: #ffebbb !important; color: #795716 !important; font-size: 9px !important; }
body.course-workspace .course-player-source-note p { font-size: 12px !important; font-weight: 500 !important; line-height: 1.5 !important; color: #7a6b4b !important; }

body.course-workspace .course-player-controls {
    order: 3;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 12px 20px !important;
    margin: 0 !important;
    padding: 17px 26px !important;
    border-top: 1px solid #edf0f2 !important;
    background: #fbfcfd !important;
    min-width: 0;
}

body.course-workspace .course-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 43px !important;
    padding: 10px 17px !important;
    border: 1px solid #dce3e8 !important;
    border-radius: 9px !important;
    background: #fff !important;
    box-shadow: none !important;
    color: #25475c !important;
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    transition: background .15s, border-color .15s;
}

body.course-workspace .course-btn.primary { background: #ffbf35 !important; border-color: #ffbf35 !important; color: #153750 !important; }
body.course-workspace .course-btn:hover:not(:disabled) { background: #edf3f7 !important; }
body.course-workspace .course-btn.primary:hover:not(:disabled) { background: #f5b320 !important; border-color: #f5b320 !important; }
body.course-workspace .course-btn:disabled { opacity: .42 !important; cursor: not-allowed; }
body.course-workspace .course-player-watched { min-width: 0; margin: 0 !important; }
body.course-workspace .course-player-watched:has([data-player-mark-watched][hidden]) { display: none !important; }
body.course-workspace .course-player-controls .course-btn { margin: 0 !important; box-shadow: none !important; filter: none !important; }
body.course-page.course-workspace .course-player-controls .course-btn { min-height: 44px !important; padding: 11px 16px !important; font-size: 12px !important; line-height: 1.3 !important; white-space: nowrap; transform: none !important; }
body.course-page.course-workspace .course-player-controls .course-player-navigation { display: flex; align-items: center; justify-content: flex-end; gap: 10px; grid-column: 2; min-width: 0; }
body.course-page.course-workspace .course-player-controls .course-player-navigation .course-btn { flex: 0 0 auto !important; width: auto !important; margin: 0 !important; background: #fff !important; color: #36566b !important; -webkit-text-fill-color: currentColor !important; border-color: #dce3e8 !important; box-shadow: none !important; filter: none !important; transform: none !important; }
body.course-page.course-workspace .course-player-controls .course-player-navigation .course-btn.primary { background: #ffbf35 !important; border-color: #ffbf35 !important; color: #153750 !important; }
body.course-page.course-workspace .course-player-controls .course-player-navigation .course-btn.primary:hover:not(:disabled) { background: #f5b320 !important; border-color: #f5b320 !important; }
body.course-page.course-workspace .course-player-controls [data-player-mark-watched] { gap: 8px !important; background: #fff !important; border-color: #cedce5 !important; color: #25475c !important; -webkit-text-fill-color: currentColor !important; }
body.course-page.course-workspace .course-player-controls [data-player-mark-watched]:hover:not(:disabled) { background: #edf3f7 !important; border-color: #aabfce !important; }
.course-complete-icon { flex: 0 0 19px; width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
body.course-page.course-workspace .course-player-controls [data-player-mark-watched].is-watched { opacity: 1 !important; border-color: #d5e7dd !important; background: #edf6f1 !important; color: #39715b !important; }
body.course-page.course-workspace .course-player-controls .course-player-watched-status { grid-column: 1 / -1; max-width: none; width: auto; min-width: 0; margin: 0 !important; padding: 0 !important; color: #7c8c97 !important; -webkit-text-fill-color: currentColor !important; font-family: inherit !important; font-size: 12px !important; font-weight: 500 !important; line-height: 1.6 !important; text-align: left; overflow-wrap: anywhere; }
body.course-page.course-workspace .course-player-controls .course-player-watched-status:is([data-state="error"], [data-state="warning"]) { padding: 10px 12px !important; border: 1px solid #f1dfb4; border-radius: 8px; background: #fff9ed; color: #926c28 !important; }
body.course-page.course-workspace .course-player-controls .course-player-watched-status[data-state="error"] { border-color: #f0d8d4; background: #fff6f4; color: #a55448 !important; }
body.course-page.course-workspace .course-player-controls .course-player-watched-status[data-state="watched"] { color: #5a816f !important; }

body.course-workspace .course-player-resources { order: 4; margin: 0 !important; padding: 20px 26px !important; border-top: 1px solid #edf0f2 !important; border-radius: 0 !important; background: #fff !important; }
body.course-workspace .course-player-resource-tabs { gap: 20px !important; padding: 0 !important; border: 0 !important; border-bottom: 1px solid #e7ecef !important; border-radius: 0 !important; background: transparent !important; }
body.course-workspace .course-player-resource-tab { flex: 0 1 auto !important; min-height: 42px; padding: 0 0 12px !important; border: 0 !important; border-bottom: 2px solid transparent !important; border-radius: 0 !important; background: transparent !important; color: #7a8993 !important; box-shadow: none !important; font-size: 13px !important; }
body.course-workspace .course-player-resource-tab.is-active { border-bottom-color: #f4b62c !important; background: transparent !important; color: #12374f !important; }
body.course-workspace .course-player-resource-panel { padding: 18px 0 0 !important; }

body.course-workspace .course-outline-panel {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    height: min(740px, calc(100dvh - 230px)) !important;
    min-height: 440px !important;
    max-height: none !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 16px !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: hidden !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
}

body.course-workspace .course-outline-sheet {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    border: 1px solid #e1e7eb !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 4px 16px #15375004 !important;
    overflow: hidden !important;
    transform: none !important;
    box-sizing: border-box !important;
}

body.course-workspace .course-outline-sheet::before,
body.course-workspace .course-outline-topline,
body.course-workspace .course-outline-icon { display: none !important; }

body.course-workspace .course-outline-header {
    position: static !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 24px 22px 16px !important;
    border: 0 !important;
    background: #fff !important;
    color: #12374f !important;
}

.course-outline-eyebrow { margin: 0 0 5px; color: #9a772f; font-size: 9px; font-weight: 900; letter-spacing: 1.5px; }
body.course-workspace .course-outline-header-copy h2 { margin: 0 !important; font-size: 21px !important; line-height: 1.25 !important; color: #12374f !important; }
.course-outline-caption { margin: 6px 0 0; font-size: 12px; color: #71818c; }
.course-outline-caption > span { margin-inline: 5px; }
body.course-workspace .course-outline-header-actions { display: none !important; }

body.course-workspace .course-outline-summary {
    display: flex !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 22px 8px !important;
    border: 0 !important;
    background: #fff !important;
    color: #71818c !important;
}

body.course-workspace .course-outline-summary-chip,
body.course-workspace .course-outline-summary-chip.is-watched {
    min-height: 0 !important;
    padding: 0 !important;
    gap: 3px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #71818c !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.6 !important;
}

body.course-workspace .course-outline-summary-chip strong,
body.course-workspace .course-outline-summary-chip.is-watched strong { color: #12374f !important; font-weight: 900 !important; }
body.course-workspace .course-outline-progressbar { padding: 0 22px 18px !important; background: #fff !important; }
body.course-workspace .course-outline-progressbar-track { height: 5px !important; background: #eef1f4 !important; }
body.course-workspace .course-outline-progressbar-fill { background: #f4b62c !important; }

.course-outline-tools { flex: 0 0 auto; padding: 0 18px 0; border-bottom: 1px solid #e9edf0; }
.course-outline-search { display: flex; align-items: center; gap: 9px; padding: 0 12px; height: 42px; border: 1px solid #e3e8ed; border-radius: 8px; background: #f8fafb; }
.course-outline-search:focus-within { border-color: #476c85; box-shadow: 0 0 0 3px #12374f0c; }
.course-outline-search svg { flex: 0 0 17px; width: 17px; height: 17px; fill: none; stroke: #7c8c96; stroke-width: 1.7; stroke-linecap: round; }
body.course-workspace .course-outline-search input { width: 100%; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; outline: none; box-shadow: none; background: transparent; color: #12374f; font: inherit; font-size: 12px; }
.course-outline-search input::placeholder { color: #8a96a0; }
.course-outline-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; font-size: 10px; color: #7c8c96; }
.course-outline-toolbar button { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; padding: 0 2px; border: 0; border-radius: 5px; background: none; color: #355b72; font: inherit; font-weight: 800; cursor: pointer; }
.course-outline-toolbar button > span { font-size: 17px; }

body.course-workspace .course-outline-list {
    display: block !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 6px 10px 16px !important;
    background: #fff !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #ccd7de transparent;
}

body.course-workspace .outline-section {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #eef1f3 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
}

.outline-section-toggle { display: flex; gap: 10px; align-items: center; min-height: 69px; padding: 13px 10px; cursor: pointer; list-style: none; user-select: none; border-radius: 8px; }
.outline-section-toggle::-webkit-details-marker { display: none; }
.outline-section-toggle:hover { background: #f8fafb; }
.outline-section-index { display: grid; place-items: center; flex: 0 0 29px; width: 29px; height: 29px; border: 1px solid #e7ecef; border-radius: 7px; font-size: 10px; font-weight: 800; color: #7d8e98; }
.outline-section-heading { display: block; flex: 1; min-width: 0; }
body.course-workspace .outline-section-title { display: block !important; margin: 0 0 3px !important; padding: 0 !important; color: #25475c !important; font-size: 12px !important; font-weight: 800 !important; line-height: 1.5 !important; letter-spacing: 0 !important; text-transform: none !important; }
.outline-section-count { display: block; color: #8a98a2; font-size: 10px; line-height: 1.4; }
.outline-section-chevron { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: #8496a1; stroke-width: 1.7; transition: transform .15s; }
.outline-section[open] > .outline-section-toggle .outline-section-chevron { transform: rotate(180deg); }
.outline-section:has(.is-active) > .outline-section-toggle .outline-section-index { border-color: #eed597; background: #fff7e6; color: #96701d; }

body.course-workspace .outline-lessons { display: grid !important; gap: 5px !important; margin: 0 !important; padding: 0 0 12px !important; }
body.course-workspace .outline-section:not([open]) > .outline-lessons { display: none !important; }
body.course-workspace .outline-lesson {
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr) auto !important;
    gap: 9px !important;
    width: 100% !important;
    min-height: 58px !important;
    margin: 0 !important;
    padding: 9px 11px !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: none !important;
    color: #36566b !important;
    transform: none !important;
}

body.course-workspace .outline-lesson::before { display: grid !important; width: 28px !important; height: 28px !important; border: 0 !important; border-radius: 50% !important; background: #f2f5f7 !important; color: #81929e !important; font-size: 10px !important; font-weight: 700 !important; }
body.course-workspace .outline-lesson-number { margin-bottom: 3px !important; color: #8b99a2 !important; font-size: 9px !important; font-weight: 700 !important; line-height: 1.25 !important; }
body.course-workspace .outline-lesson-title-text { color: inherit !important; font-size: 12px !important; font-weight: 700 !important; line-height: 1.5 !important; }
body.course-workspace .outline-lesson-tail { display: flex !important; flex-direction: column !important; align-items: flex-end !important; gap: 5px !important; }
body.course-workspace .outline-lesson-go { width: 18px !important; height: 18px !important; border: 0 !important; background: transparent !important; color: #94a0a8 !important; box-shadow: none !important; }
body.course-workspace .outline-lesson-preview-badge { padding: 3px 5px !important; border: 0 !important; border-radius: 4px !important; background: #fff0c9 !important; color: #95701e !important; font-size: 7px !important; white-space: nowrap; }
body.course-workspace .outline-lesson:hover { background: #f6f8fa !important; border-color: #e5ebef !important; box-shadow: none !important; }
body.course-workspace .outline-lesson.is-active,
body.course-workspace .outline-lesson.is-active:hover { background: #fff6df !important; border-color: #f1d898 !important; color: #16394f !important; box-shadow: inset 3px 0 0 #efb32f !important; }
body.course-workspace .outline-lesson.is-active::before { background: #f7be3f !important; color: #12374f !important; }
body.course-workspace .outline-lesson.is-active .outline-lesson-number { color: #9b7a37 !important; }
body.course-workspace .outline-lesson.is-active .outline-lesson-title-text { color: #16394f !important; }
body.course-workspace .outline-lesson.is-active .outline-lesson-preview-badge { color: #95701e !important; background: #ffedbb !important; }
body.course-workspace .outline-lesson.is-active .outline-lesson-go { border: 0 !important; background: transparent !important; color: #987325 !important; }
body.course-workspace .outline-lesson.is-active .outline-lesson-go[data-go-state] { color: #987325 !important; }
body.course-page.course-workspace .outline-lesson.is-active,
body.course-page.course-workspace .outline-lesson.is-active * { -webkit-text-fill-color: currentColor !important; }
body.course-workspace .outline-lesson.is-watched:not(.is-active)::before { color: #3a8068 !important; background: #eaf5ef !important; }
.course-outline-no-results { padding: 34px 12px; text-align: center; color: #36566b; font-size: 13px; line-height: 1.9; }
.course-outline-no-results > span { color: #8a98a2; font-size: 11px; }

body.course-workspace :is(button, a, summary, input):focus-visible { outline: 2px solid #476c85 !important; outline-offset: 3px !important; }
body.course-workspace [hidden] { display: none !important; }

@media (min-width: 769px) {
    body.course-workspace .course-outline-fab { display: none !important; }
    body.course-workspace .course-shell-head:has(.course-todo-trigger) { grid-template-columns: minmax(0, 1fr) auto auto !important; }
    body.course-workspace .course-shell-head > .course-todo-trigger { position: static !important; width: auto !important; height: auto !important; min-height: 42px !important; padding: 8px 13px !important; border-radius: 9px !important; opacity: 1 !important; pointer-events: auto !important; overflow: visible !important; }
    body.course-workspace .course-todo-trigger__meta { display: none !important; }
    body.course-workspace .course-todo-trigger__icon { width: 24px !important; height: 24px !important; }
    body.course-workspace .course-todo-trigger__label { font-size: 12px !important; }
}

@media (min-width: 1200px) {
    body.course-workspace .course-player-card {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-template-areas: "media" "header" "note" "controls" "resources" !important;
        align-items: center !important;
    }
    body.course-workspace .course-video-wrapper { grid-area: media; }
    body.course-workspace .course-player-header { grid-area: header; min-width: 0; padding: 23px 24px 20px !important; }
    body.course-workspace .course-player-title { font-size: 24px !important; }
    body.course-workspace .course-player-controls { grid-area: controls; width: auto !important; max-width: none; align-self: stretch !important; padding: 18px 24px !important; border-top: 1px solid #edf0f2 !important; }
    body.course-workspace .course-player-source-note { grid-area: note; margin: 0 24px 22px !important; }
    body.course-workspace .course-player-resources { grid-area: resources; }
}

@media (max-width: 1100px) {
    body.course-page.course-workspace .course-player-controls { grid-template-columns: minmax(0, 1fr) !important; gap: 12px !important; }
    body.course-page.course-workspace .course-player-controls .course-player-watched { grid-column: 1; order: 0; }
    body.course-page.course-workspace .course-player-controls [data-player-mark-watched] { width: 100% !important; }
    body.course-page.course-workspace .course-player-controls .course-player-watched-status { grid-column: 1; order: 1; }
    body.course-page.course-workspace .course-player-controls .course-player-navigation { grid-column: 1; order: 2; width: 100%; }
    body.course-page.course-workspace .course-player-controls .course-player-navigation .course-btn { flex: 1 1 0 !important; min-width: 0; }
}

@media (min-width: 769px) and (max-width: 1100px) {
    body.course-page.course-workspace .container { width: calc(100% - 40px) !important; }
    body.course-workspace .course-layout { grid-template-columns: minmax(0, 1fr) 320px !important; gap: 18px !important; }
    body.course-workspace .course-shell-head { padding-inline: 20px !important; }
    body.course-workspace .course-breadcrumb { gap: 8px !important; }
    body.course-workspace .course-breadcrumb__current { max-width: 240px; }
    .course-workspace-meta { gap: 14px; }
    body.course-workspace .course-player-header { padding: 20px 20px 14px !important; }
    body.course-workspace .course-player-source-note { margin-inline: 20px !important; }
    body.course-workspace .course-player-controls { padding-inline: 20px !important; }
}

@media (max-width: 768px) {
    body.course-page.course-workspace .container { width: calc(100% - 32px) !important; }
    body.course-workspace .course-shell { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important; }
    body.course-page.course-workspace .course-shell-head.container { min-height: 72px !important; grid-template-columns: minmax(0, 1fr) auto !important; padding: 10px 16px !important; gap: 10px !important; }
    body.course-workspace .course-shell-head__main { gap: 12px !important; }
    body.course-workspace .course-center-logo img { width: 48px !important; height: 48px !important; }
    body.course-workspace .course-breadcrumb { font-size: 11px !important; }
    body.course-workspace .course-breadcrumb > span { display: none !important; }
    body.course-workspace .course-back { min-height: 39px !important; padding: 8px 10px !important; font-size: 10px !important; gap: 5px !important; }
    body.course-workspace .course-back__icon { width: 15px !important; height: 15px !important; }
    body.course-workspace .course-workspace-intro { display: block; padding-block: 23px 20px; }
    body.course-workspace .course-workspace-title { font-size: 25px; margin-bottom: 6px; }
    body.course-workspace .course-workspace-eyebrow { font-size: 9px; letter-spacing: 1.2px; }
    .course-workspace-description { font-size: 12px; }
    .course-workspace-meta { gap: 20px; margin-top: 13px; }
    .course-workspace-meta > span { font-size: 11px; }
    .course-workspace-meta svg { width: 16px; height: 16px; }
    body.course-workspace .course-layout { display: block !important; margin: 0 auto !important; }
    body.course-workspace .course-side-column { position: static !important; }
    body.course-workspace .course-player-header { padding: 19px 18px 13px !important; }
    body.course-workspace .course-player-title { font-size: 21px !important; }
    body.course-workspace .course-player-badge { font-size: 9px !important; }
    body.course-workspace .course-player-source-note { margin: 0 18px 18px !important; padding: 9px 10px !important; align-items: flex-start !important; }
    body.course-workspace .course-player-source-note p { font-size: 11px !important; }
    body.course-workspace .course-player-controls { padding: 16px 18px !important; }
    body.course-workspace .course-btn { min-height: 43px !important; padding: 10px 13px !important; font-size: 11px !important; }
    body.course-workspace .course-player-resources { padding: 18px !important; }
    body.course-workspace .course-outline-fab { position: fixed !important; display: flex !important; align-items: center !important; justify-content: space-between !important; left: 16px !important; right: 16px !important; bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important; width: auto !important; height: 53px !important; padding: 10px 17px !important; border: 1px solid #f1b330 !important; border-radius: 12px !important; background: #ffbf35 !important; color: #12374f !important; box-shadow: 0 5px 24px #1537501a !important; z-index: 100 !important; }
    body.course-workspace .course-outline-fab__icon { display: flex !important; width: 20px !important; height: 20px !important; }
    body.course-workspace .course-outline-fab__label { flex: 1; margin-left: 8px; font-size: 12px !important; }
    body.course-workspace .course-outline-fab__count { background: #fff7e0 !important; color: #12374f !important; font-size: 11px !important; }
    body.course-workspace .course-outline-panel { position: fixed !important; inset: 0 !important; width: 100% !important; height: 100dvh !important; min-height: 0 !important; padding: 0 !important; border-radius: 0 !important; background: #fff !important; z-index: 2200 !important; opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; transition: opacity .18s !important; }
    body.course-page.course-workspace.course-outline-mobile-open .course-outline-panel { opacity: 1 !important; visibility: visible !important; pointer-events: auto !important; transition: opacity .18s !important; }
    body.course-workspace .course-outline-sheet { height: 100% !important; max-height: 100dvh !important; padding-top: env(safe-area-inset-top, 0px) !important; padding-bottom: env(safe-area-inset-bottom, 0px) !important; border: 0 !important; border-radius: 0 !important; }
    body.course-workspace .course-outline-header { padding: 23px 22px 17px !important; }
    body.course-workspace .course-outline-header-actions { display: flex !important; }
    body.course-workspace .course-outline-scroll-bottom { display: none !important; }
    body.course-workspace .course-outline-close { display: inline-flex !important; align-items: center; justify-content: center; width: auto !important; min-width: 48px !important; height: 40px !important; padding: 8px 12px !important; border: 1px solid #e0e6eb !important; border-radius: 8px !important; background: #f4f7f9 !important; color: #12374f !important; box-shadow: none !important; font-size: 12px !important; }
    body.course-workspace .outline-section-toggle { min-height: 64px; }
    body.course-workspace .course-outline-list { padding-inline: 12px !important; }
    body.course-workspace .outline-lesson { min-height: 60px !important; }
    body.course-workspace.course-outline-mobile-open .course-outline-fab { opacity: 0 !important; pointer-events: none !important; }
}

/* Course notices share the workspace typography, surfaces and action style. */
body.course-page.course-workspace .course-confirm-modal {
    z-index: 2600 !important;
    padding: 24px !important;
    visibility: hidden;
    transition: opacity .18s ease !important;
}

body.course-page.course-workspace .course-confirm-modal.is-open { visibility: visible; }
body.course-page.course-workspace .course-confirm-modal__backdrop { background: rgba(18, 39, 55, .42) !important; backdrop-filter: blur(4px) !important; }

body.course-page.course-workspace .course-confirm-card {
    width: min(480px, 100%) !important;
    max-height: calc(100dvh - 48px);
    margin: 0 !important;
    padding: 30px !important;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, .8) !important;
    border-radius: 20px !important;
    background: #fff !important;
    box-shadow: 0 24px 80px #0e263f26 !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    text-align: left;
}

body.course-page.course-workspace .course-confirm-card::before { display: none !important; }
.course-confirm-symbol { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid #f4e3b8; border-radius: 15px; background: #fff7e3; color: #ad7c16; }
.course-confirm-symbol svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
body.course-page.course-workspace .course-confirm-head { display: block !important; margin: 19px 0 0 !important; padding: 0 !important; }
.course-confirm-eyebrow { margin: 0 0 7px; color: #9b7937; font-family: inherit; font-size: 9px; font-weight: 900; letter-spacing: 1.4px; line-height: 1.5; }

body.course-page.course-workspace .course-confirm-head h3 {
    margin: 0 !important;
    padding: 0 !important;
    color: #12374f !important;
    -webkit-text-fill-color: currentColor !important;
    font-family: 'Nunito', sans-serif !important;
    font-size: 25px !important;
    font-weight: 900 !important;
    line-height: 1.3 !important;
    letter-spacing: -.45px !important;
    overflow-wrap: anywhere;
}

body.course-page.course-workspace .course-confirm-close {
    position: absolute !important;
    top: 22px !important;
    right: 22px !important;
    display: grid !important;
    place-items: center;
    width: 36px !important;
    height: 36px !important;
    margin: 0 !important;
    padding: 9px !important;
    border: 1px solid #e8edf0 !important;
    border-radius: 10px !important;
    background: #f7f9fb !important;
    color: #71818c !important;
    -webkit-text-fill-color: currentColor !important;
    box-shadow: none !important;
    transform: none !important;
    filter: none !important;
}

body.course-page.course-workspace .course-confirm-close:hover { background: #edf2f6 !important; border-color: #d5dfe6 !important; color: #12374f !important; }
.course-confirm-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
body.course-page.course-workspace .course-confirm-desc { margin: 12px 0 0 !important; padding: 0 !important; color: #71818c !important; -webkit-text-fill-color: currentColor !important; font-family: inherit !important; font-size: 14px !important; font-weight: 500 !important; line-height: 1.75 !important; letter-spacing: 0 !important; }
.course-confirm-lesson { display: flex; align-items: flex-start; gap: 12px; margin-top: 20px; padding: 15px; border: 1px solid #e6ecf0; border-radius: 11px; background: #f7f9fb; }
.course-confirm-lesson__number { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border: 1px solid #e5d4aa; border-radius: 9px; background: #fff6df; color: #95701e; font-size: 12px; font-weight: 900; font-variant-numeric: tabular-nums; }
.course-confirm-lesson__copy { min-width: 0; }
.course-confirm-lesson__label { display: block; margin-bottom: 4px; color: #87949f; font-size: 10px; font-weight: 700; line-height: 1.5; }
.course-confirm-lesson__copy strong { display: block; color: #25475c; font-size: 14px; font-weight: 800; line-height: 1.6; overflow-wrap: anywhere; }
body.course-page.course-workspace .course-confirm-actions { display: flex !important; justify-content: flex-end !important; gap: 10px !important; margin: 24px 0 0 !important; padding: 0 !important; }
body.course-page.course-workspace .course-confirm-actions .course-btn { flex: 0 1 auto !important; width: auto !important; min-width: 112px; min-height: 44px !important; margin: 0 !important; padding: 11px 20px !important; border-radius: 9px !important; font-family: inherit !important; font-size: 13px !important; font-weight: 800 !important; letter-spacing: 0 !important; -webkit-text-fill-color: currentColor !important; box-shadow: none !important; filter: none !important; transform: none !important; }
body.course-page.course-workspace .course-confirm-actions .course-btn.primary { background: #ffbf35 !important; border: 1px solid #ffbf35 !important; color: #153750 !important; -webkit-text-fill-color: currentColor !important; }
body.course-page.course-workspace .course-confirm-actions .course-btn.primary:hover { background: #f5b320 !important; border-color: #f5b320 !important; }

@media (max-width: 520px) {
    body.course-page.course-workspace .course-confirm-modal { padding: 16px !important; }
    body.course-page.course-workspace .course-confirm-card { max-height: calc(100dvh - 32px); padding: 25px 22px 22px !important; border-radius: 17px !important; }
    body.course-page.course-workspace .course-confirm-close { top: 18px !important; right: 18px !important; }
    body.course-page.course-workspace .course-confirm-head h3 { font-size: 22px !important; }
    body.course-page.course-workspace .course-confirm-desc { font-size: 13px !important; }
    body.course-page.course-workspace .course-confirm-actions .course-btn { flex: 1 1 0 !important; }
    .course-confirm-lesson { padding: 12px; gap: 10px; }
    .course-confirm-lesson__copy strong { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    body.course-page.course-workspace *, body.course-page.course-workspace *::before, body.course-page.course-workspace *::after { scroll-behavior: auto !important; transition: none !important; }
}
