:root {
  --bg: #faf6f0;
  --ink: #2c2c2c;
  --muted: #6e6e6e;
  --gold: #b38a58;
  --gold-dark: #87633b;
  --line: #eae3d9;
  --sans: 'Plus Jakarta Sans', Arial, sans-serif;
  --serif: 'Playfair Display', Georgia, serif;
}

main.course-mode { max-width: 1640px; padding-bottom: 78px; }
main.course-mode .workspace-grid { display: block; margin-top: 0; }
main.course-mode .utility-rail { display: none; }
.course-mode #view, .course-mode #secondary-view { min-width: 0; }
.course-mode h1, .course-mode h2, .course-mode h3 { overflow-wrap: anywhere; }
.course-mode .eyebrow { font-size: 9px; letter-spacing: 1.8px; }
.course-mode .button { min-height: 46px; border-radius: 8px; font-size: 11px; }
.course-mode .button.gold { background: #d8ab74; color: #342c23; }
.course-mode .button.gold:hover { background: #cba06d; }
.course-mode button, .course-mode select { font-family: var(--sans); }
.course-mode progress { accent-color: #c39861; }
.course-mode [hidden], .install-app[hidden] { display: none !important; }
.install-app { min-height: 44px; padding: 8px 13px; border: 1px solid #ddcfbd; border-radius: 8px; background: #fff; color: #735632; font-size: 10px; }
.navigation a { min-height: 46px; }
.sidebar-progress progress { display: block; width: 100%; height: 5px; margin: 15px 0 9px; border: 0; border-radius: 10px; overflow: hidden; background: #e9e0d1; accent-color: #b38a58; }
.sidebar-progress progress::-webkit-progress-bar { background: #e9e0d1; }
.sidebar-progress progress::-webkit-progress-value { background: #b38a58; }
.sidebar-progress progress::-moz-progress-bar { background: #b38a58; }
.sidebar-progress > small { display: block; margin-top: 9px; font-size: 9px; color: var(--muted); text-align: center; }
.module-card:not(:last-child)::after { content: ''; position: absolute; bottom: -16px; left: 34px; height: 15px; border-left: 1px solid #d9c8ad; }
.module-count small { display: block; text-align: center; font-size: 8px; }
.overview-progress > div > strong { font-size: 11px; font-weight: 600; }
.outline-module > strong > small { display: block; font-weight: 400; font-size: 9px; }
.lesson-heading > .text-button { min-height: 36px; margin-bottom: 7px; }
.lesson-pagination > span { display: flex; align-items: center; font-size: 10px; color: var(--muted); }
.course-notice > .icon { width: 18px; margin-bottom: 8px; }
.course-notice strong { display: block; }
.compact .text-button { min-height: 44px; margin-top: 8px; }
.lesson-practice { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.course-player-poster { width: 100%; height: 100%; object-fit: cover; }

.course-hero { position: relative; display: flex; align-items: center; min-height: 360px; overflow: hidden; isolation: isolate; border: 1px solid #e8dece; border-radius: 16px; background: #eee3d4; }
.course-hero .hero-photo { z-index: -2; inset: 0 0 0 auto; width: 64%; height: 100%; object-fit: cover; object-position: 66% 52%; }
.course-hero::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #f0e6d8 0%, #f0e6d8 30%, #f0e6d8ed 43%, #f0e6d850 66%, #f0e6d800 86%); }
.course-hero-copy { position: relative; width: 65%; max-width: 675px; padding: 36px 40px 39px; }
.course-hero h1 { max-width: 560px; margin: 14px 0; font-size: clamp(35px, 3.2vw, 53px); font-weight: 400; letter-spacing: -1.6px; line-height: 1.12; text-wrap: balance; }
.course-hero h1 em { color: #9a7646; }
.course-hero-copy > p { max-width: 410px; color: #6d6255; font-size: 12px; line-height: 1.85; }
.course-resume { display: flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%; margin-top: 24px; padding: 13px 19px; border: 1px solid #2c2c2c; border-radius: 8px; background: #2c2c2c; color: #fff; font-size: 11px; text-align: left; line-height: 1.6; min-height: 48px; }
.course-resume:hover { background: #4a4036; border-color: #4a4036; }
.course-resume .icon { width: 17px; height: 17px; flex: 0 0 auto; }
.course-hero-copy > small { display: block; max-width: 405px; margin-top: 11px; color: #776a5a; font-size: 9px; line-height: 1.7; }
.course-hero-tag { position: absolute; right: 20px; bottom: 20px; display: flex; align-items: center; gap: 8px; max-width: 38%; padding: 10px 13px; border: 1px solid #fff8ed; border-radius: 8px; background: #fffaf1ec; color: #776449; font-size: 9px; backdrop-filter: blur(8px); }
.course-hero-tag .icon { width: 17px; height: 17px; flex-shrink: 0; }
.course-overview { display: grid; grid-template-columns: minmax(0, 2.1fr) repeat(2, minmax(0, .8fr)); align-items: center; margin: 22px 0 32px; padding: 24px 27px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 5px 24px #49351d03; }
.overview-progress { display: flex; align-items: center; gap: 21px; min-width: 0; padding-right: 28px; }
.overview-progress .percent { font-family: var(--serif); font-size: 38px; line-height: 1; font-weight: 400; color: #9d794b; white-space: nowrap; }
.overview-progress > div { flex: 1; min-width: 0; }
.overview-progress label { display: block; font-size: 11px; font-weight: 600; }
.overview-progress progress { display: block; appearance: none; width: 100%; height: 5px; margin: 10px 0 7px; border: 0; border-radius: 8px; overflow: hidden; background: #f0e9df; }
.overview-progress progress::-webkit-progress-bar { background: #f0e9df; }
.overview-progress progress::-webkit-progress-value { background: #c69c65; border-radius: 8px; }
.overview-progress progress::-moz-progress-bar { background: #c69c65; border-radius: 8px; }
.progress-caption { font-size: 9px; color: var(--muted); line-height: 1.5; }
.overview-stat { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-height: 56px; padding-left: 27px; border-left: 1px solid var(--line); }
.overview-stat strong { font-family: var(--serif); font-size: 26px; font-weight: 400; line-height: 1.2; }
.overview-stat span, .overview-stat small { font-size: 10px; color: var(--muted); }

.course-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 26px; align-items: start; }
.course-trail { min-width: 0; width: 100%; margin: 0; padding: 0; }
.course-section-head { margin-bottom: 21px; }
.course-section-head h2 { font-size: 29px; letter-spacing: -.7px; }
.course-section-head p { margin-top: 7px; color: var(--muted); font-size: 11px; }
.module-card { position: relative; margin: 0 0 15px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 4px 20px #49351d03; }
.module-card > summary, .module-card details > summary { display: flex; align-items: center; gap: 15px; min-height: 127px; padding: 20px; list-style: none; border-radius: 16px; cursor: pointer; }
.module-card summary::-webkit-details-marker { display: none; }
.module-card summary::marker { content: ''; }
.module-card > summary:hover { background: #fffcf7; }
.module-number { display: flex; flex: 0 0 28px; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid #dfd2bf; border-radius: 50%; color: #9a794e; font-size: 10px; font-weight: 500; }
.module-thumb { display: flex; align-items: center; justify-content: center; flex: 0 0 80px; width: 80px; height: 86px; overflow: hidden; border-radius: 10px; background: #f8f2e9; }
.module-thumb svg { width: 100%; max-height: 100%; }
.module-copy { flex: 1; min-width: 0; }
.module-copy small { display: block; margin-bottom: 5px; color: #9b7b51; font-size: 8px; font-weight: 600; letter-spacing: 1.3px; line-height: 1.5; text-transform: uppercase; }
.module-copy h3 { font-size: 22px; line-height: 1.28; letter-spacing: -.35px; }
.module-copy p { margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.module-count { flex: 0 0 auto; padding: 4px 8px; border-radius: 5px; background: #f7f3ed; color: #8c7555; font-size: 9px; white-space: nowrap; }
.module-chevron { color: #a58b66; flex-shrink: 0; transition: transform .2s ease; }
.module-chevron svg { width: 16px; height: 16px; }
.module-card[open] .module-chevron, .module-card details[open] .module-chevron { transform: rotate(90deg); }
.module-lessons { margin: 0 20px 8px 63px; border-top: 1px solid #eee7de; }
.lesson-row { display: flex; align-items: center; gap: 13px; min-height: 65px; padding: 13px 7px; border-bottom: 1px solid #f1ece5; border-radius: 5px; transition: background .2s; }
.lesson-row:last-child { border-bottom: 0; }
.lesson-row:hover { background: #faf6ef; }
.lesson-status { display: flex; align-items: center; justify-content: center; flex: 0 0 27px; width: 27px; height: 27px; border: 1px solid #e5dacc; border-radius: 50%; color: #a28a6a; font-size: 9px; }
.lesson-status .icon { width: 13px; height: 13px; }
.lesson-row.is-complete .lesson-status, .lesson-row.completed .lesson-status { background: #eef2e8; border-color: #d8e0cf; color: #697f52; }
.lesson-row > div { min-width: 0; }
.lesson-row small { display: block; margin-bottom: 3px; color: #9a8468; font-size: 8px; letter-spacing: .5px; }
.lesson-row strong { display: block; font-size: 11px; font-weight: 500; line-height: 1.65; }
.lesson-arrow { margin-left: auto; color: #b19a79; flex: 0 0 auto; }
.lesson-arrow .icon { width: 15px; height: 15px; }
.course-companion { display: flex; flex-direction: column; gap: 17px; padding-top: 2px; }
.companion-card { overflow: hidden; padding: 23px; border: 1px solid #e6dccd; border-radius: 16px; background: linear-gradient(135deg, #f3ecdf, #fbf8f2); }
.companion-card > svg, .companion-card > .instructional-art { width: 100%; max-height: 150px; margin: -4px 0 15px; }
.companion-card > .icon { width: 24px; height: 24px; margin: 0 0 17px; color: #aa8753; }
.companion-card h3 { margin-bottom: 10px; font-size: 25px; letter-spacing: -.5px; }
.companion-card p { font-size: 11px; color: #796c5c; line-height: 1.85; }
.companion-card .button { width: 100%; margin-top: 19px; }
.course-notice { padding: 18px 7px 2px; color: #8a7a65; font-size: 10px; line-height: 1.9; }
.course-notice strong { color: #76654e; font-weight: 600; }
.course-notice p + p { margin-top: 8px; }

.lesson-heading { margin: 1px 0 27px; max-width: 1000px; }
.lesson-heading h1 { margin: 10px 0 12px; font-size: clamp(31px, 3vw, 44px); letter-spacing: -.9px; line-height: 1.2; }
.lesson-heading > p { max-width: 760px; color: var(--muted); font-size: 12px; line-height: 1.85; }
.lesson-layout { display: grid; grid-template-columns: minmax(0, 1fr) 288px; gap: 25px; align-items: start; }
.lesson-main { min-width: 0; }
.course-player { overflow: hidden; border: 1px solid #dfd4c4; border-radius: 16px; background: #fff; }
.course-player-screen { position: relative; overflow: hidden; width: 100%; aspect-ratio: 16/9; background: #eee4d5; isolation: isolate; }
.course-player-art { position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; background: radial-gradient(ellipse at 72% 33%, #fffcf4, #ede1d1); }
.course-player-art svg { width: 72%; height: 95%; margin-right: 1%; opacity: .9; }
.course-player-screen:has(.course-player-art)::after { position: absolute; z-index: 0; content: ''; inset: 0; pointer-events: none; background: linear-gradient(0deg, #ede1d1 0%, #ede1d1d9 10%, #ede1d12b 51%, #ede1d100 75%); }
.course-player-status { position: absolute; z-index: 1; top: 18px; left: 19px; padding: 5px 9px; border: 1px solid #e3d4bd; border-radius: 5px; background: #fffaf0d9; color: #8b6a41; font-size: 9px; font-weight: 500; }
.course-player-play { position: absolute; z-index: 2; top: 45%; left: 50%; display: grid; place-items: center; transform: translate(-50%, -50%); width: 62px; height: 62px; padding: 0 0 0 3px; border: 1px solid #ffffffb3; border-radius: 50%; background: #fffdf7e8; color: #967346; font-size: 22px; box-shadow: 0 7px 26px #6f4c2421; }
.course-player-play:hover { background: #fff; box-shadow: 0 8px 28px #6f4c243d; }
.course-player-play:active:not(:disabled) { transform: translate(-50%, -50%) scale(.97); }
.is-preview-playing .course-player-play { background: #e9d8bf; }
.course-player-caption { position: absolute; z-index: 1; left: 25px; right: 25px; bottom: 23px; pointer-events: none; }
.course-player-eyebrow { display: block; margin-bottom: 6px; color: #9c7b51; font-size: 8px; font-weight: 600; letter-spacing: 1.5px; }
.course-player-title { max-width: 80%; font-family: var(--serif); font-size: clamp(21px, 2vw, 31px); line-height: 1.25; letter-spacing: -.5px; text-wrap: balance; }
.course-player-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 62px; padding: 8px 17px; background: #fff; border-top: 1px solid #e6dbcd; }
.course-player-toggle { min-height: 44px; padding: 8px 2px; border: 0; background: none; color: #745b3b; font-size: 10px; text-align: left; }
.course-player-toggle:hover { color: #2c2c2c; text-decoration: underline; text-underline-offset: 4px; }
.course-player-speed { display: flex; align-items: center; gap: 9px; color: #8a7d6d; font-size: 9px; }
.course-player-speed-select { min-height: 44px; min-width: 67px; border: 1px solid #e3d8c9; border-radius: 6px; padding: 6px 8px; background: #fff; color: #5e4b33; font-size: 11px; }
.course-player-speed-select:focus-visible { outline: 2px solid var(--gold-dark); outline-offset: 3px; }
.course-player-notice { padding: 12px 18px; border-top: 1px solid #f0e8dc; background: #fcfaf6; color: #827462; font-size: 10px; line-height: 1.75; }
.course-player-video, .course-player-embed { display: block; width: 100%; height: 100%; border: 0; background: #2c2c2c; }
.lesson-actions { display: flex; align-items: stretch; gap: 11px; margin: 17px 0 5px; }
.lesson-actions > :first-child { flex: 0 1 auto; }
.lesson-actions > :last-child { flex: 1; }
.lesson-actions .button { font-size: 10px; gap: 8px; padding: 12px 15px; }
.lesson-actions button:not(.button) { min-height: 46px; padding: 11px 15px; border: 1px solid #ded2c0; border-radius: 8px; background: #fff; color: #725835; font-size: 11px; }
.lesson-actions button:last-child:not(.button) { background: #d8ab74; color: #342c23; }
.lesson-pagination { display: flex; justify-content: space-between; gap: 20px; margin: 3px 0 22px; }
.lesson-pagination a { display: inline-flex; align-items: center; min-height: 44px; max-width: 48%; color: #9b805b; font-size: 10px; }
.lesson-pagination a:last-child { margin-left: auto; text-align: right; }
.lesson-pagination a:hover { color: #5f492e; text-decoration: underline; text-underline-offset: 4px; }
.lesson-tabs { display: flex; gap: 24px; margin-bottom: 0; border-bottom: 1px solid #e3d8c8; }
.lesson-tabs button { position: relative; min-height: 49px; padding: 11px 0 13px; border: 0; border-bottom: 2px solid transparent; background: none; color: #928574; font-size: 11px; font-weight: 500; }
.lesson-tabs button[aria-selected="true"] { border-bottom-color: #af8754; color: #6d4f2e; }
.lesson-tabs button:hover { color: #6d4f2e; }
.lesson-panel { padding: 22px 0 0; min-width: 0; }
.lesson-panel > h2, .lesson-panel > h3 { margin: 0 0 14px; font-size: 25px; }
.material-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.material-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.material-art { display: flex; align-items: center; justify-content: center; height: 131px; padding: 7px; background: #f6f0e6; }
.material-art svg { width: 100%; height: 100%; }
.material-card h3 { padding: 16px 15px 0; font-size: 18px; line-height: 1.35; }
.material-card p { padding: 8px 15px 18px; color: var(--muted); font-size: 10px; line-height: 1.8; }
.lesson-points { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.lesson-points li { position: relative; padding: 0 0 0 24px; font-size: 12px; line-height: 1.9; color: #655e55; }
.lesson-points li::before { position: absolute; left: 2px; top: 9px; content: ''; width: 6px; height: 6px; border: 1px solid #b7976d; border-radius: 50%; background: #ecddc7; }
.lesson-points strong { color: #514433; font-weight: 600; }
.lesson-practice { margin-top: 23px; padding: 18px 20px; border: 1px solid #dfd2bf; border-radius: 11px; background: #f5eee2; color: #7f6a4e; font-size: 11px; line-height: 1.85; }
.lesson-practice strong { display: block; margin-bottom: 5px; color: #7a5a32; font-size: 10px; letter-spacing: .5px; }
.lesson-outline { position: sticky; top: 22px; overflow: auto; max-height: calc(100dvh - 44px); min-width: 0; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.outline-header { padding: 21px 20px 18px; border-bottom: 1px solid var(--line); background: #fcf9f4; }
.outline-header h2, .outline-header h3 { margin-bottom: 7px; font-size: 23px; }
.outline-header p, .outline-header small { font-size: 10px; color: #8b7b65; line-height: 1.7; }
.outline-header progress { display: block; width: 100%; height: 4px; margin: 13px 0 0; accent-color: #c49a63; }
.outline-module { padding: 14px 10px 9px; border-bottom: 1px solid #eee7de; }
.outline-module:last-child { border-bottom: 0; }
.outline-module > strong { display: block; margin: 0 10px 8px; font-size: 9px; line-height: 1.65; font-weight: 600; color: #8f7654; }
.outline-lesson { display: flex; align-items: flex-start; gap: 9px; min-height: 46px; padding: 10px; border: 1px solid transparent; border-radius: 7px; color: #7e756a; font-size: 10px; line-height: 1.7; }
.outline-lesson > span:first-child, .outline-lesson > .icon { flex-shrink: 0; }
.outline-lesson .icon { width: 13px; height: 13px; margin-top: 2px; }
.outline-lesson:hover { background: #faf5ed; color: #604a30; }
.outline-lesson.active, .outline-lesson[aria-current="page"] { border-color: #e3d3bc; background: #f5ecdd; color: #6f502c; }
.outline-lesson.is-complete .icon { color: #70875a; }
.outline-lesson small { display: block; font-size: 8px; color: #9c8b73; }
.lesson-outline > label, .lesson-outline > small { display: block; padding: 13px 20px; font-size: 9px; color: #95826a; }

.sos-fab { position: fixed; z-index: 45; right: 24px; bottom: 24px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; max-width: calc(100vw - 32px); min-height: 48px; padding: 13px 18px; border: 1px solid #caaa7c; border-radius: 30px; background: #f8eee0; color: #795933; font-family: var(--sans); font-size: 11px; font-weight: 500; box-shadow: 0 5px 24px #75542c1c; }
.sos-fab:hover { background: #eee0cb; box-shadow: 0 5px 24px #75542c2e; }
.sos-fab .icon { width: 18px; height: 18px; }
.sos-options { display: grid; gap: 10px; margin-top: 24px; }
.sos-options a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 57px; padding: 13px 16px; border: 1px solid #e5d9c8; border-radius: 9px; background: #fff; color: #6d5638; font-size: 12px; }
.sos-options a:hover { background: #f4ecdf; border-color: #c6a77c; }
.sos-options a small { display: block; color: #8e7b61; margin-top: 4px; font-size: 10px; }
#timer-dialog { max-width: 430px; padding: 19px; }
#timer-dialog .bp-timer { padding-top: 32px; border: 0; background: transparent; box-shadow: none; }
#timer-dialog .timer-title { font-family: var(--serif); }
#timer-dialog .timer-duration, #timer-dialog .timer-mode, #timer-dialog .timer-reset, #timer-dialog .timer-sound, #timer-dialog .timer-apply { min-height: 44px; }
.dialog-close { z-index: 1; width: 44px; height: 44px; right: 8px; top: 6px; }

@media (min-width: 1550px) {
  .course-hero { min-height: 405px; }
  .course-hero-copy { padding: 43px 48px; }
  .course-hero-copy > p { font-size: 13px; }
  .course-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 30px; }
  .module-copy h3 { font-size: 25px; }
  .module-copy p { font-size: 11px; }
  .module-thumb { flex-basis: 100px; width: 100px; height: 91px; }
  .lesson-row strong { font-size: 12px; }
  .lesson-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 30px; }
}

@media (max-width: 1200px) {
  .course-hero-copy { padding: 30px; width: 68%; }
  .course-hero h1 { font-size: 39px; }
  .course-layout { grid-template-columns: minmax(0, 1fr) 225px; gap: 20px; }
  .course-companion .companion-card { padding: 20px; }
  .module-card > summary, .module-card details > summary { gap: 10px; padding: 17px; }
  .module-thumb { flex-basis: 64px; width: 64px; height: 74px; }
  .module-copy h3 { font-size: 21px; }
  .module-count { font-size: 8px; padding: 3px 6px; }
  .module-lessons { margin-left: 54px; }
  .lesson-layout { grid-template-columns: minmax(0, 1fr) 257px; gap: 20px; }
  .course-player-speed > span { max-width: 82px; }
}

@media (max-width: 1050px) {
  .course-overview { padding: 21px; }
  .overview-progress { gap: 15px; padding-right: 20px; }
  .overview-progress .percent { font-size: 33px; }
  .overview-stat { padding-left: 20px; }
  .lesson-layout { grid-template-columns: minmax(0, 1fr); }
  .lesson-outline { position: static; max-height: none; margin-top: 8px; }
  .outline-lesson { font-size: 11px; }
  .outline-module > strong { font-size: 10px; }
}

@media (max-width: 800px) {
  .course-layout { grid-template-columns: minmax(0, 1fr); }
  .course-companion { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-companion .course-notice { grid-column: 1 / -1; }
  .course-hero h1 { font-size: 38px; }
  .course-hero-copy { width: 71%; padding: 30px; }
  .course-hero-copy > p { max-width: 330px; }
  .course-hero-tag { max-width: 30%; font-size: 8px; }
  .module-copy h3 { font-size: 23px; }
  .module-thumb { flex-basis: 80px; width: 80px; height: 80px; }
  .module-count { font-size: 9px; }
  .sos-fab { bottom: calc(82px + env(safe-area-inset-bottom)); right: 17px; }
  main.course-mode { padding-bottom: 80px; }
}

@media (max-width: 620px) {
  main.course-mode { padding-left: 18px; padding-right: 18px; }
  .course-hero { min-height: 570px; align-items: flex-start; }
  .course-hero .hero-photo { inset: auto 0 0; width: 100%; height: 55%; object-position: 65% 51%; }
  .course-hero::after { background: linear-gradient(180deg, #f0e6d8 0%, #f0e6d8 39%, #f0e6d8ed 50%, #f0e6d866 65%, #f0e6d800 85%); }
  .course-hero-copy { width: 100%; padding: 28px 25px; max-width: none; }
  .course-hero h1 { max-width: 380px; margin-top: 13px; font-size: 38px; line-height: 1.15; letter-spacing: -1.2px; }
  .course-hero-copy > p { max-width: 360px; font-size: 12px; line-height: 1.8; }
  .course-resume { margin-top: 21px; padding: 12px 15px; font-size: 11px; }
  .course-hero-copy > small { max-width: 330px; font-size: 9px; }
  .course-hero-tag { right: 15px; bottom: 15px; max-width: calc(100% - 30px); font-size: 9px; }
  .course-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 17px 0 29px; padding: 21px; gap: 18px 0; }
  .overview-progress { grid-column: 1 / -1; gap: 20px; padding: 0 0 19px; border-bottom: 1px solid var(--line); }
  .overview-progress .percent { font-size: 38px; }
  .overview-progress label { font-size: 11px; }
  .progress-caption { font-size: 10px; }
  .overview-stat { padding-left: 21px; min-height: 47px; }
  .overview-stat:nth-child(2) { padding-left: 0; border-left: 0; }
  .overview-stat strong { font-size: 24px; }
  .overview-stat span, .overview-stat small { font-size: 10px; }
  .course-section-head { margin-bottom: 17px; }
  .course-section-head h2 { font-size: 28px; }
  .course-section-head p { font-size: 11px; }
  .module-card > summary, .module-card details > summary { display: grid; grid-template-columns: 26px 58px minmax(0, 1fr) 12px; align-items: start; gap: 9px; min-height: 124px; padding: 18px 14px; }
  .module-number { grid-column: 1; width: 25px; height: 25px; margin-top: 4px; font-size: 9px; }
  .module-thumb { grid-column: 2; width: 58px; height: 74px; }
  .module-copy { grid-column: 3; }
  .module-copy small { margin-bottom: 5px; font-size: 7px; letter-spacing: 1px; }
  .module-copy h3 { font-size: 20px; letter-spacing: -.3px; }
  .module-copy p { font-size: 10px; line-height: 1.7; }
  .module-count { grid-column: 3; justify-self: start; margin-top: 1px; font-size: 8px; }
  .module-chevron { grid-row: 1; grid-column: 4; margin-top: 5px; }
  .module-chevron svg { width: 12px; }
  .module-lessons { margin: 0 14px 6px; }
  .lesson-row { min-height: 72px; padding: 14px 3px; gap: 12px; }
  .lesson-row strong { font-size: 11px; }
  .lesson-row small { font-size: 8px; }
  .course-companion { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .course-companion .companion-card { padding: 24px; }
  .companion-card > svg, .companion-card > .instructional-art { max-height: 160px; }
  .companion-card h3 { font-size: 28px; }
  .companion-card p { font-size: 12px; }
  .course-notice { padding: 10px 5px; font-size: 11px; }
  .lesson-heading { margin-bottom: 22px; }
  .lesson-heading h1 { margin-top: 11px; font-size: 33px; letter-spacing: -.8px; }
  .lesson-heading > p { font-size: 12px; }
  .course-player-status { top: 11px; left: 11px; padding: 3px 6px; font-size: 7px; }
  .course-player-play { width: 47px; height: 47px; top: 43%; font-size: 18px; }
  .course-player-caption { left: 17px; right: 17px; bottom: 13px; }
  .course-player-eyebrow { font-size: 6px; letter-spacing: 1px; margin-bottom: 4px; }
  .course-player-title { max-width: 94%; font-size: 20px; line-height: 1.22; }
  .course-player-toolbar { gap: 8px; padding: 8px 12px; }
  .course-player-toggle { max-width: 45%; font-size: 9px; }
  .course-player-speed { gap: 6px; font-size: 8px; }
  .course-player-speed > span { max-width: 64px; }
  .course-player-speed-select { padding: 5px; min-width: 55px; font-size: 12px; }
  .course-player-notice { padding: 12px 14px; font-size: 10px; }
  .lesson-actions { flex-wrap: wrap; gap: 9px; margin-top: 14px; }
  .lesson-actions > :first-child, .lesson-actions > :last-child { flex: 1 1 100%; }
  .lesson-actions .button { min-height: 47px; font-size: 11px; }
  .lesson-pagination { margin-bottom: 17px; }
  .lesson-tabs { gap: 18px; }
  .lesson-tabs button { font-size: 10px; text-align: left; }
  .material-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .material-art { height: 124px; }
  .material-card h3 { padding: 14px 12px 0; font-size: 18px; }
  .material-card p { padding: 7px 12px 16px; font-size: 10px; }
  .lesson-points li { font-size: 12px; }
  .lesson-practice { padding: 17px; font-size: 11px; }
  .outline-header { padding: 21px; }
  .outline-lesson { min-height: 49px; }
  .outline-module { padding: 13px 11px 8px; }
  .sos-fab { right: 14px; min-height: 46px; padding: 11px 15px; font-size: 10px; }
  .sos-fab .icon { width: 16px; height: 16px; }
  .course-mode .footer { padding-bottom: 18px; font-size: 8px; }
  #timer-dialog { padding: 10px; }
  .install-app { font-size: 9px; padding: 7px 10px; }
}

@media (max-width: 370px) {
  main.course-mode { padding-left: 13px; padding-right: 13px; }
  .course-hero { min-height: 570px; }
  .course-hero-copy { padding: 25px 20px; }
  .course-hero h1 { font-size: 32px; }
  .course-hero-copy > p { font-size: 11px; }
  .course-resume { font-size: 10px; padding: 11px 13px; }
  .module-card > summary, .module-card details > summary { grid-template-columns: 22px 45px minmax(0, 1fr) 10px; gap: 7px; padding: 16px 11px; }
  .module-number { width: 22px; height: 22px; font-size: 8px; }
  .module-thumb { width: 45px; height: 62px; }
  .module-copy h3 { font-size: 18px; }
  .module-copy p { font-size: 9px; }
  .module-copy small { font-size: 6px; }
  .course-overview { padding: 18px; }
  .overview-progress { gap: 14px; }
  .overview-progress label { font-size: 10px; }
  .lesson-heading h1 { font-size: 29px; }
  .course-player-title { font-size: 17px; }
  .course-player-caption { bottom: 11px; left: 13px; right: 13px; }
  .course-player-play { top: 43%; width: 44px; height: 44px; font-size: 16px; }
  .course-player-status { font-size: 6px; }
  .course-player-speed > span { max-width: 55px; }
  .lesson-tabs { gap: 13px; }
  .lesson-tabs button { font-size: 9px; }
  .material-art { height: 105px; }
  .material-card h3 { font-size: 16px; }
  .material-card p { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .course-mode *, .course-mode *::before, .course-mode *::after, .sos-fab { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media (max-width: 640px) {
  .material-grid { grid-template-columns: 1fr; }
  .material-card { display: grid; grid-template-columns: 100px minmax(0, 1fr); }
  .material-art { grid-row: span 2; height: 100%; min-height: 130px; }
  .material-card h3 { padding: 15px 13px 0; font-size: 18px; }
  .material-card p { padding: 7px 13px 15px; font-size: 11px; }
  .module-copy p { font-size: 11px; }
  .lesson-row strong { font-size: 12px; }
  .lesson-tabs button { font-size: 11px; }
  #timer-dialog { padding: 25px 13px 16px; }
  #timer-dialog > .eyebrow, #timer-dialog > h2, #timer-dialog > p { margin-left: 8px; margin-right: 8px; }
}
