:root{--portal-bg:#080808;--sidebar-width:250px;--brand-font-size:25px;--brand-icon-size:33px;--brand-gap:10px}
.listen-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.full-lesson-resume-info{font-size:12px;line-height:1.4;color:#a3a3a8;font-variant-numeric:tabular-nums;white-space:nowrap}
html{background:var(--portal-bg)}
body{background:var(--portal-bg);color:#b6b6bd}
a,button{-webkit-tap-highlight-color:transparent}
.app-sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar-width);z-index:50;background:#080808;border-right:1px solid #272729;padding:28px 5px 20px;display:flex;flex-direction:column;gap:28px}
.mindos-brand{display:flex;align-items:center;gap:var(--brand-gap);color:#f5f5f6;font-weight:650;font-size:var(--brand-font-size);line-height:1;text-decoration:none;letter-spacing:-.7px}
.app-sidebar-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none}.app-sidebar-heading>.mindos-brand{padding:0 0 10px}.app-menu-close{display:none;place-items:center;width:40px;height:42px;flex:none;padding:0;border:1px solid #3b3b42;border-radius:8px;background:#171719;color:#ededf1}.mindos-mark{flex:none;width:var(--brand-icon-size);height:var(--brand-icon-size)}
.app-nav{display:grid;gap:5px}.app-nav a,.profile-link{display:flex;align-items:center;gap:13px;min-height:46px;padding:10px 15px;border:1px solid transparent;border-radius:9px;color:#d3d3d8;text-decoration:none;font-weight:500;font-size:15px;line-height:1.4}
.app-nav a:hover,.profile-link:hover{background:#181819;color:#fff}.app-nav a.selected{background:#202022;border-color:#242426;color:#fff}
.profile-link{margin-top:auto;border-color:#38383b;position:relative}.profile-link>.ui-icon:last-child{margin-left:auto}.profile-link.selected{background:#202022}
.app-nav-backdrop{position:fixed;inset:0;z-index:49;background:#0009;backdrop-filter:blur(2px)}

.portal-page{border:0;background:transparent;box-shadow:none;border-radius:0;padding:0 8px;min-height:calc(100dvh - 64px);outline:none}
.portal-heading{margin-bottom:32px}.portal-heading h1{font-size:32px;line-height:1.25;letter-spacing:-.8px;font-weight:650;margin:0 0 6px;color:#f5f5f5}.portal-heading p{color:#9d9da5;font-size:14px;line-height:1.5;margin:0}
.portal-section{margin:0 0 34px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}.section-heading h2{font-size:21px;line-height:1.3;letter-spacing:-.4px;font-weight:600;margin:0;color:#eeeef0}.section-heading>span{font-size:12px;color:#909098}
.current-course{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);background:#111112;border:1px solid #38383c;border-radius:14px;overflow:hidden;margin-bottom:16px}
.current-course-image{position:relative;display:block;min-height:292px;overflow:hidden;background:#111}
.current-course-image img,.catalogue-image img{display:block;width:100%;height:100%;object-fit:cover}.current-course-image img{position:absolute;inset:0;object-position:center 56%}
.current-course-image:after{content:"";position:absolute;inset:0;box-shadow:inset 0 0 60px #0002;pointer-events:none}
.current-course-content{padding:24px 26px;min-width:0;display:flex;flex-direction:column}
.course-title-row{display:flex;align-items:center;gap:12px;justify-content:space-between}.course-title-row h3{font-size:23px;line-height:1.25;font-weight:600;letter-spacing:-.5px;margin:0;color:#f3f3f5}
.status-badge{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;border-radius:20px;font-size:11px;font-weight:500;line-height:1.3;padding:6px 9px}.in-progress{color:#67d49b;background:#102419;border:1px solid #245638}.in-progress>span{width:5px;height:5px;background:#52ce8e;border-radius:50%}
.course-subtitle{font-size:12px!important;line-height:1.5!important;color:#9f9fa7!important;margin:5px 0 20px!important}
.next-lesson{margin-bottom:19px}.eyebrow-small{display:block;color:#90909a;font-size:9px;font-weight:550;letter-spacing:1.1px;line-height:1.4}.next-lesson p{font-size:14px!important;line-height:1.5!important;font-weight:450;color:#e0e0e4!important;margin:5px 0 0!important}
.course-progress-bar{position:relative;height:24px;border-radius:999px;overflow:hidden;background:#353538;isolation:isolate}
.course-progress-bar>.course-progress-fill{position:absolute;inset:0 auto 0 0;height:100%;display:block;background:#22a06b;border-radius:inherit;transition:width .2s ease}
.course-progress-bar>.course-progress-percentage{position:absolute;inset:0;width:auto;height:100%;display:grid;place-items:center;background:transparent;color:#fff;font-size:12px;font-weight:700;line-height:24px;letter-spacing:.1px;text-shadow:0 1px 2px #000,0 0 3px #000b;pointer-events:none}

.course-action-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding-top:22px}.course-pace{font-size:11px;color:#868690}
.portal-primary,.portal-secondary,.favourite-play,.sign-in-button{font:inherit;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;border-radius:7px;line-height:1.3;min-height:38px;padding:9px 15px;white-space:nowrap;font-size:12px;font-weight:550;cursor:pointer}
.portal-primary{background:#f3f3f5;border:1px solid #e5e5e9;color:#131316}.portal-primary:hover{background:#d7d7dd}
.portal-secondary,.favourite-play{border:1px solid #4c4c53;background:#111112;color:#e1e1e6}.portal-secondary:hover,.favourite-play:hover{background:#222225;border-color:#777780}
.resume-link{border:0;padding:0;background:none;display:flex;align-items:center;gap:7px;text-align:left;color:#aaaab4;font-size:11px;line-height:1.4;min-height:36px}.resume-link:hover{color:#f3f3f6}.resume-link>.audio-listening-progress{width:22px;height:22px;flex:0 0 22px;font-size:6px}.resume-link .audio-listening-progress.completed{font-size:16px}
.all-course-cards{display:flex;flex-wrap:wrap;align-items:flex-start;gap:22px}.all-course-cards>.compact-course{margin-bottom:0}.all-course-cards>.catalogue-card{width:408px;max-width:100%}
.catalogue-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.catalogue-card{min-width:0;border:1px solid #38383c;border-radius:13px;overflow:hidden;background:#111112}.catalogue-image{height:210px;display:block;overflow:hidden}.catalogue-image img{transition:transform .25s}.catalogue-image:hover img{transform:scale(1.025)}
.catalogue-content{padding:20px}.catalogue-content h3{color:#eeeef2;font-size:18px;line-height:1.35;font-weight:550;letter-spacing:-.3px;margin:0 0 4px}.catalogue-content p{color:#92929c;font-size:12px;line-height:1.5;margin:0}.catalogue-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:20px}.catalogue-actions>span{font-size:11px;color:#9696a0}.catalogue-actions .completed-status{color:#67d49b}
.small-empty{padding:20px 22px;border:1px dashed #303035;border-radius:10px;color:#92929c;font-size:13px;line-height:1.6}
.start-course-empty{background:#111112;border:1px solid #303034;border-radius:13px;padding:28px;position:relative}.start-course-empty .empty-icon{display:grid;place-items:center;width:45px;height:45px;border:1px solid #38383c;border-radius:10px;margin-bottom:17px;color:#c0c0c8}.start-course-empty h3{font-size:21px;font-weight:550;color:#eaeaf0;margin:0 0 6px;letter-spacing:-.3px}.start-course-empty p{max-width:430px;font-size:13px;color:#9696a1;line-height:1.6;margin:0 0 20px}
.empty-favourites{border:1px solid #2e2e32;border-radius:12px;padding:22px 24px;display:flex;align-items:center;gap:16px;background:#101011}.empty-favourites>svg{color:#9a9aa4}.empty-favourites h3{color:#d4d4dc;font-size:14px;font-weight:500;margin:0 0 3px}.empty-favourites p{font-size:12px;color:#898995;margin:0;line-height:1.5}.empty-favourites a{margin-left:auto;white-space:nowrap;color:#bfbfc8;font-size:12px;display:inline-flex;align-items:center;gap:7px;text-decoration:none;min-height:44px}
.favourites-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.favourite-card{padding:16px 18px;background:#121214;border:1px solid #323237;border-radius:12px;display:flex;flex-direction:column;min-width:0}.favourite-card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:13px}.favourite-card h3{font-size:14px;color:#e9e9ee;line-height:1.5;font-weight:550;letter-spacing:-.15px;margin:0 0 4px}.favourite-card p{font-size:11px;color:#8f8f9c;line-height:1.4;margin:0 0 20px}.favourite-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto}.favourite-card-bottom>span{font-size:11px;color:#9e9eaa}.favourite-play{min-height:36px;font-size:11px;padding:6px 12px}
.favourite-toggle{width:44px;height:44px;min-width:44px;min-height:44px;display:grid;place-items:center;flex:none;color:#787887;background:transparent;border:1px solid transparent;border-radius:8px;padding:0}.favourite-toggle:hover{color:#fff;background:#232328;border-color:#38383f}.favourite-toggle.is-favourite{color:#ebebf1}.favourite-toggle.is-favourite svg{fill:currentColor}
.practice-row{display:flex;align-items:center;gap:7px;margin:10px 0}.practice-row .audio-card{flex:1;min-width:0}.practice-row>.favourite-toggle{width:44px}.audio-track-row{display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:center;gap:5px;margin-bottom:8px}.audio-track-row .audio-track{margin:0}.audio-track-row .audio-track-info{min-width:0}.audio-track-row .audio-track-info strong{overflow-wrap:anywhere}
.profile-card{max-width:560px;background:#111112;border:1px solid #333339;border-radius:14px;padding:28px;display:grid;grid-template-columns:56px minmax(0,1fr);gap:0 17px}.profile-avatar{width:56px;height:56px;display:grid;place-items:center;border:1px solid #404047;border-radius:50%;background:#1e1e22;color:#dcdce3}.profile-details{display:flex;flex-direction:column;justify-content:center;min-width:0}.profile-details h2{font-size:21px;font-weight:550;margin:4px 0;color:#eeeef3}.profile-details p{color:#a1a1ad;font-size:13px;overflow-wrap:anywhere;margin:0}.profile-data{grid-column:1/-1;margin:27px 0 24px;border-top:1px solid #2f2f35}.profile-data>div{display:flex;justify-content:space-between;gap:18px;padding:15px 0;border-bottom:1px solid #2f2f35;font-size:12px;line-height:1.5}.profile-data dt{color:#92929e}.profile-data dd{color:#d4d4dc;text-align:right;margin:0}.profile-card>.portal-secondary{grid-column:1/-1;justify-self:start}
.sign-in-view .portal-page{min-height:100dvh;padding-left:0;padding-right:0}.sign-in-page{min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:38px;background:#080808;padding:24px 8px}.sign-in-logo{display:flex;align-items:center;gap:14px;font-size:42px;font-weight:600;color:#f3f3f6;letter-spacing:-1px}.sign-in-logo .mindos-mark{width:49px;height:49px}.sign-in-button{background:#080808;border:1px solid #38383f;color:#e7e7ed;min-height:46px;padding:12px 24px;width:min(300px,100%);font-size:14px}.sign-in-button:hover{border-color:#797983}
.course-view .lesson-panel{width:100%;max-width:650px;margin-inline:auto;padding:5px 8px;background:transparent;border:0;box-shadow:none}
.course-view .app-sidebar{width:330px;gap:14px;background:#0c0c0e;padding:12px 5px 16px}
.course-view .app-sidebar-heading{border-bottom:1px solid #29292e;padding-bottom:0}
.course-view .app-sidebar .curriculum-top{padding:0}
.course-view .app-sidebar .curriculum-top strong{font-size:26px;font-weight:600;line-height:1.3;letter-spacing:-.5px}
.course-view .app-sidebar .progress-track{width:100%;margin:8px 0 16px;height:24px;background:#29292e}
#curriculum .course-progress-percentage{display:flex;align-items:center;justify-content:flex-end;padding-right:7px;color:#fff;font-size:11px;font-weight:600;line-height:24px;font-variant-numeric:tabular-nums}
.app-sidebar .curriculum{display:flex;flex-direction:column;flex:1;min-height:0;width:100%;position:static;inset:auto;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:hidden}
.app-sidebar .curriculum-top{display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:0;flex:none}.app-sidebar .curriculum-top strong{font-size:18px}.app-sidebar .curriculum-top span{font-size:11px}
.app-sidebar .progress-track{flex:none;height:24px;width:100%;margin:12px 0 16px}
.lesson-nav-scroll{min-height:0;overflow-y:auto;overflow-x:hidden;flex:1;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#45454d transparent}
.app-sidebar .week-toggle{padding:15px 7px 12px;font-size:16px;font-weight:600;line-height:1.5;min-height:44px}.app-sidebar .day{font-size:14px;font-weight:400;gap:9px;padding:9px 7px;min-height:44px}.app-sidebar .day .number{width:28px;height:28px;flex-basis:28px;font-size:12px}.app-sidebar .day-check{font-size:12px}
/* One accessible lesson accordion; existing header and lesson-row styling stays shared. */
.course-lessons-panel{display:grid;grid-template-rows:1fr;opacity:1;transition:grid-template-rows .22s ease,opacity .22s ease}
.course-lessons-panel.is-collapsed{grid-template-rows:0fr;opacity:0}
.course-lessons-panel-inner{min-height:0;overflow:hidden}
.course-lessons-group>.week-toggle .chev{transition:transform .22s ease}
.course-lessons-panel.is-immediate{transition:none}
@media(prefers-reduced-motion:reduce){.course-lessons-panel,.course-lessons-group>.week-toggle .chev{transition:none}}
/* Header and both accordion buttons stay fixed; only the expanded list scrolls. */
.course-view .lesson-nav-scroll{overflow:hidden}
.course-view #weeks{display:flex;flex-direction:column;gap:10px;height:100%;min-height:0;overflow:hidden}
.course-view .course-lessons-group{display:flex;flex-direction:column;flex:0 1 0;min-height:52px;margin:0;padding:0;border:0;transition:flex-grow .22s ease}
.course-view #weeks .course-lessons-group:has(>.week-toggle[aria-expanded="true"]){flex-grow:1}
.course-view .app-sidebar .week-toggle{flex:0 0 52px;height:52px;min-height:52px;padding:11px 12px;background:#18181b;border:1px solid #29292e;border-radius:11px;font-size:16px;font-weight:600;line-height:1.5;color:#e4e4e8;gap:8px}
.course-view .week-toggle:hover{background:#202024;border-color:#3b3b42}
.course-view .accordion-label{display:flex;align-items:center;gap:9px;min-width:0}
.course-view .accordion-label>.ui-icon{flex:none;color:#a5a5ae}
.course-view .week-toggle .chev{color:#85858d}
.course-view .course-lessons-panel{flex:1 1 auto;min-height:0}
.course-view .day-list{display:flex;flex-direction:column;gap:4px;height:100%;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#35353c transparent;padding:4px 0 0;scroll-padding-block:4px}
.course-view .app-sidebar .day{flex:none;min-height:44px;padding:8px;gap:10px;border:1px solid transparent;border-radius:8px;background:transparent;color:#c4c4ca;font-size:14px;font-weight:400;line-height:1.35}
.course-view .app-sidebar .day:hover:not(.current){background:#18181b}
.course-view .app-sidebar .day.current{background:#123326;border-color:transparent;color:#edf6f0;font-weight:400}
.course-view .app-sidebar .day .number{display:block;flex:0 0 22px;width:22px;height:auto;border:0;border-radius:0;background:none;box-shadow:none;color:#85858d;font-size:14px;font-weight:400;line-height:inherit;font-variant-numeric:tabular-nums}
.course-view .app-sidebar .day[data-day] .number{display:grid;place-items:center;flex-basis:32px;width:32px;height:32px;border:1px solid #3b3b42;border-radius:7px;background:#18181b;line-height:1}
.course-view .app-sidebar .day-check{flex:none;width:21px;height:21px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(135deg,#12aa65,#26ce83);color:#071b12;line-height:1}
.course-view .app-sidebar .day-check:empty{display:none}
.course-view .day-check .ui-icon{stroke-width:3.4}
.day-active-dot{display:none;flex:0 0 6px;width:6px;height:6px;border-radius:50%;background:#36ce89}
.course-view .day.current .day-active-dot{display:block}
.course-crumb{display:flex;align-items:center;gap:8px;color:#888894;font-size:11px;margin:0 0 20px}.course-crumb a{text-decoration:none;color:#b2b2be}
.course-view.audio-docked .app-sidebar .curriculum{max-height:none;bottom:auto}
@media(min-width:1550px){.favourites-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1250px){.current-course{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}.current-course-content{padding:22px}.course-action-row{gap:10px}.portal-primary{padding:8px 11px;font-size:11px}.resume-link{font-size:10px}.course-title-row h3{font-size:21px}}
@media(max-width:1000px) and (min-width:741px){.current-course{grid-template-columns:1fr}.current-course-image{min-height:210px;height:210px}.current-course-content{padding:22px 24px}.catalogue-grid{grid-template-columns:1fr}.catalogue-image{height:210px}.empty-favourites{flex-wrap:wrap}.empty-favourites a{margin-left:39px}}
@media(max-width:740px){
 :root{--sidebar-width:0px}body{margin-left:0}.app-sidebar{width:min(360px,calc(100vw - 32px));transform:translateX(-100%);transition:transform .18s ease;padding-top:max(24px,env(safe-area-inset-top));padding-bottom:max(20px,env(safe-area-inset-bottom))}.app-sidebar.is-open{transform:translateX(0)}.app-sidebar-heading>.mindos-brand{padding-bottom:0}.app-menu-close{display:grid;place-items:center;width:40px;height:40px;flex:none;padding:0;border:1px solid #3b3b42;border-radius:8px;background:#171719;color:#ededf1}.app-menu-open{overflow:hidden}
.topbar .course-toggle{margin-left:auto;min-height:36px;padding:7px 10px;font-size:11px;gap:6px}
 .portal-page{padding:0 8px;min-height:calc(100dvh - 108px)}.portal-heading{margin-bottom:26px}.portal-heading h1{font-size:26px;line-height:1.25;letter-spacing:-.6px}.portal-heading p{font-size:13px}.section-heading h2{font-size:19px}.portal-section{margin-bottom:28px}
 .current-course{grid-template-columns:1fr;border-radius:12px}.current-course-image{min-height:180px;height:180px}.current-course-image img{object-position:center 55%}.current-course-content{padding:20px}.course-title-row h3{font-size:22px}.course-subtitle{margin-bottom:18px!important}.next-lesson{margin-bottom:18px}.course-action-row{padding-top:20px;gap:10px}.resume-link{font-size:11px;gap:6px}.portal-primary{min-height:42px;font-size:11px;padding:9px 12px}.status-badge{font-size:10px}
 .catalogue-grid{grid-template-columns:1fr;gap:18px}.catalogue-image{height:210px}.catalogue-content{padding:20px}.catalogue-actions .portal-secondary{min-height:40px}.favourites-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.favourite-card{padding:13px}.favourite-card h3{font-size:12px}.favourite-card p{font-size:10px}.favourite-card-bottom{gap:6px}.favourite-play{padding:6px 9px;min-height:40px}
 .empty-favourites{align-items:flex-start;padding:19px;flex-wrap:wrap;gap:12px}.empty-favourites>svg{margin-top:3px}.empty-favourites>div{flex:1;min-width:180px}.empty-favourites a{margin-left:35px}.empty-favourites h3{font-size:13px}.start-course-empty{padding:23px}.start-course-empty p{font-size:13px}.start-course-empty h3{font-size:20px}
 .profile-card{padding:22px;grid-template-columns:48px minmax(0,1fr);gap:0 13px}.profile-avatar{width:48px;height:48px}.profile-details h2{font-size:19px}.profile-data>div{font-size:11px}.profile-card>.portal-secondary{min-height:44px}
 .course-view .lesson-panel{max-width:none;padding:5px 8px}

 .course-view .article-copy{font-size:18px}
 .course-view .article-copy p,.course-view .bodycopy,.course-view .bodycopy li,.course-view .activity{font-size:17px}
 .course-view .bodycopy .cite{font-size:16px}
 .course-view .activity strong{font-size:18px}
 .course-view .source-quote q{font-size:20px}
 .course-view .source-quote .attribution{font-size:15px}.course-crumb{margin-bottom:14px}.practice-row{gap:2px}.practice-row>.favourite-toggle{min-width:44px;width:44px}.audio-track-row{grid-template-columns:minmax(0,1fr) 44px;gap:2px}.audio-track-row .favourite-toggle{min-width:44px;width:44px;min-height:44px}.audio-track-row .audio-track{gap:7px;padding:10px 8px}.audio-track-row .audio-track-number{width:29px;height:34px}.audio-track-row .audio-listening-progress{width:32px;height:32px;flex-basis:32px}.audio-track-row .audio-track-info strong{font-size:12px}.audio-track-row .audio-track-info small{font-size:10px}.audio-track-row .audio-track-playicon{width:16px;min-width:16px}
 .sign-in-logo{font-size:36px}.sign-in-logo .mindos-mark{width:42px;height:42px}.sign-in-page{gap:34px}.sign-in-button{min-height:48px}.audio-dock{left:0}
}
@media(max-width:359px){.favourites-grid{grid-template-columns:1fr}.course-action-row{flex-wrap:wrap}.course-action-row .portal-primary{margin-left:auto}.current-course-content{padding:17px}.course-title-row{gap:8px}}
@media(prefers-reduced-motion:reduce){.app-sidebar,.catalogue-image img{transition:none}}

/* Compact dashboard cards: image above details at every screen size. */
.current-course.compact-course{width:clamp(408px,33.333%,432px);max-width:100%;grid-template-columns:1fr;min-height:0;margin-bottom:16px}
.compact-course .current-course-image{width:100%;aspect-ratio:16/9;min-height:0;height:auto;position:relative}
.current-course-cover{display:block;position:absolute;inset:0;overflow:hidden}
.compact-course .current-course-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 58%}
.compact-course .current-course-image::after{pointer-events:none;z-index:0}
.compact-course .status-badge{transform:scale(1.25);transform-origin:top right;position:absolute;top:10px;right:10px;z-index:1;font-size:9px;padding:5px 7px;background:#102419ed;box-shadow:0 1px 4px #0004}
.compact-course .current-course-content{justify-content:flex-start;padding:15px 16px 16px;min-width:0}
.compact-course-title{color:#f3f3f5;font-size:16px;line-height:1.3;letter-spacing:-.25px;font-weight:600;margin:0 0 9px;overflow-wrap:normal}
.compact-course .course-action-row{padding-top:13px;margin-top:0;display:flex;justify-content:flex-end;gap:0;flex-wrap:nowrap}
.compact-course .portal-primary{font-size:13px;line-height:1.3;min-height:36px;padding:7px 13px;gap:7px;max-width:100%;width:auto;font-weight:550}
@media(max-width:740px){
 .current-course.compact-course{width:min(408px,100%)}
 .compact-course .status-badge{top:12px;right:12px;font-size:10px;padding:5px 8px}
 .compact-course-title{font-size:18px;line-height:1.3;margin:0 0 7px}
 .compact-course .course-action-row{padding-top:12px}
 .compact-course .portal-primary{min-height:40px;padding:9px 13px;font-size:14px}
}

/* Video modal stays centered without changing the recording's aspect ratio. */
#video-modal{align-items:center;justify-content:center;padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}
#video-modal .modal-dialog{width:min(650px,100%);max-width:650px;max-height:calc(100dvh - max(16px,env(safe-area-inset-top)) - max(16px,env(safe-area-inset-bottom)));overflow-y:auto}
#video-modal .modal-head{flex-shrink:0}
#video-modal .modal-video{display:block;width:100%;height:auto;min-height:0;max-height:calc(100dvh - 140px);object-fit:contain;flex:0 1 auto}

/* Course image status uses the same badge dimensions at every saved state. */
.catalogue-image{position:relative}
.course-status-badge{position:absolute;top:10px;right:10px;z-index:1;font-size:9px;padding:5px 7px;transform:scale(1.25);transform-origin:top right;box-shadow:0 1px 4px #0004;pointer-events:none}
.course-status-badge.not-started{color:#d4d4dc;background:#2b2b30ed;border:1px solid #4b4b54}
.course-status-badge.course-completed{color:#67d49b;background:#102419ed;border:1px solid #245638}
.course-status-badge .ui-icon{width:12px;height:12px}
@media(max-width:740px){.course-status-badge{top:12px;right:12px;font-size:10px;padding:5px 8px}}

/* Course headings remain centered within the existing image bounds. */
.current-course-cover::before,.catalogue-image::before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,#0002,#0007 50%,#0003);pointer-events:none}
.course-image-title{position:absolute;inset:0;z-index:2;display:grid;place-items:center;padding:48px 24px;margin:0;color:#fff;font-size:28px;font-weight:750;line-height:1.15;letter-spacing:-.6px;text-align:center;text-shadow:0 2px 12px #000c;pointer-events:none;overflow-wrap:break-word}
.compact-course .status-badge,.course-status-badge{z-index:3}
.compact-course .current-course-content{min-height:85px;justify-content:center}
.catalogue-content>.course-progress-bar{margin-bottom:4px}
@media(max-width:740px){.course-image-title{font-size:clamp(22px,6vw,28px);padding:44px 20px}.compact-course .current-course-content{min-height:86px}}

.course-view .lesson-panel[data-day]>h1{padding-bottom:5px}
.course-view .app-sidebar .day:focus-visible,.course-view .week-toggle:focus-visible{outline:2px solid #36ce89;outline-offset:2px}

/* The practice library shares the playback engine and timestamps, without row controls. */
.practice-collections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.practice-collection-card{display:flex;flex-direction:column;min-width:0;min-height:224px;padding:18px;border:1px solid #3b3b40;border-radius:16px;background:#101012;text-decoration:none;color:#eeeef2;transition:border-color .15s ease}
.practice-collection-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.practice-collection-heading>div{min-width:0}
.practice-collection-heading>.ui-icon{flex:none;margin-top:3px;color:#c4c4ca}
.practice-collection-heading h2{margin:0;font-size:28px;font-weight:700;line-height:1.2;letter-spacing:-.5px;color:#f5f5f7;overflow-wrap:break-word}
.practice-collection-subtitle{margin:12px 0 0;font-size:18px;font-weight:500;line-height:1.4;color:#d4d4da}
.practice-collection-count{display:flex;align-items:center;gap:9px;margin:20px 0 22px;font-size:14px;font-weight:400;line-height:1.4;color:#b7b7c0}
.practice-collection-count>.ui-icon{flex:none}
.practice-collection-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:auto;padding-top:16px;border-top:1px solid #353539;font-size:12px;line-height:1.4;color:#b7b7c0}
.practice-collection-action{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:none;margin-left:auto;min-height:38px;padding:10px 12px;border-radius:9px;background:#fff;color:#000;font-size:13px;font-weight:700;line-height:1.3;white-space:nowrap;transition:background .15s ease}
.practice-collection-card:hover{border-color:#606068}
.practice-collection-card:hover .practice-collection-action{background:#e9e9ec}
.practice-collection-card:focus-visible{outline:2px solid #36ce89;outline-offset:3px}
@media(max-width:740px){.practice-collections{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.practice-collection-card,.practice-collection-action{transition:none}}
.practice-back{display:inline-flex;align-items:center;gap:8px;margin:0 0 16px;color:#a3a3ad;text-decoration:none;font-size:14px;min-height:32px}
.practice-back:hover{color:#fff}
.practice-library-list{max-width:650px;margin:0 0 24px}
.practice-library-list .unified-audio-row{padding:0;min-height:0;cursor:pointer}
.practice-library-list .unified-audio-main{padding:16px 18px;min-height:80px;width:100%}
.practice-library-list .unified-audio-copy strong{font-size:16px;line-height:1.4}
.practice-library-list .unified-audio-meta{font-size:14px;margin-top:5px}
.practice-library-list .audio-row-state{display:none!important}
.lesson-panel[data-day] .unified-audio-row.active,.practice-library-list .unified-audio-row.active,.audio-dialog .popup-audio-row.active,.audio-dialog .popup-audio-row.active:hover{background:#10241b;box-shadow:inset 3px 0 #22a06b;border-radius:0}
.lesson-panel[data-day] .unified-audio-row.is-playing,.practice-library-list .unified-audio-row.is-playing,.audio-dialog .popup-audio-row.is-playing,.audio-dialog .popup-audio-row.is-playing:hover{background:#123326}
.practice-library-list .unified-audio-main:focus-visible{outline:2px solid #36ce89;outline-offset:-3px}
@media(max-width:740px){.practice-library-list .unified-audio-main{padding:14px 12px;min-height:76px}.practice-library-list .unified-audio-copy strong{font-size:15px}.practice-library-list .unified-audio-meta{font-size:13px}}

.lesson-panel[data-day] .unified-audio-row.active{border-radius:9px}
.lesson-panel[data-day] .unified-audio-row.active .unified-audio-copy strong{color:#fff}

/* Center the practice heading/list together, without clipping on shorter screens. */
.portal-page:has(>.practice-library-content){display:flex;flex-direction:column;align-items:center}
.practice-library-content{width:100%;max-width:650px;margin-block:0}
.practice-library-content>.portal-heading{text-align:left;margin-bottom:32px}
.practice-library-content>.practice-library-list{width:100%;margin-bottom:0}
.portal-page:has(>.practice-library-content)>.practice-back{width:100%;max-width:650px}
.practice-library-list .audio-track-number{margin-left:16px;flex:none}

/* Compact only the dedicated practice library on desktop. */
@media(min-width:1025px){
 .portal-page:has(>.practice-library-content)>.practice-back{align-self:stretch;width:auto;max-width:none;transform:translateX(-8px)}
 .practice-library-content .practice-library-list .unified-audio-row{height:auto;min-height:72px;max-height:none}
 .practice-library-content .practice-library-list .unified-audio-main{height:auto;min-height:72px;padding:6.4px 18px}
 .practice-library-content .practice-library-list .unified-audio-meta{margin-top:3px}
}

/* Dedicated practice catalog: compact heading and natural-height responsive rows. */
#site-content:has(>.portal-page>.practice-library-content){margin-top:14px}
.practice-library-content>.portal-heading h1{font-size:36px;font-weight:700;color:#fff;margin:0 0 8px}
.practice-library-content>.portal-heading p{font-size:18px;font-weight:400;color:#9d9da5;margin:0}
.practice-library-content>.practice-library-list{margin-top:0}
@media(max-width:1024px){
 .practice-library-content .practice-library-list .unified-audio-row{height:auto;min-height:64px;max-height:none}
 .practice-library-content .practice-library-list .unified-audio-main{min-height:64px;padding:8px 18px}
 .practice-library-content .practice-library-list .unified-audio-meta{margin-top:3px}
}
@media(max-width:740px){
 #site-content:has(>.portal-page>.practice-library-content){margin-top:12px}
 .practice-library-content>.portal-heading h1{font-size:28px}
 .practice-library-content>.portal-heading p{font-size:14px}
 .practice-library-content .practice-library-list .unified-audio-row,.practice-library-content .practice-library-list .unified-audio-main{min-height:60.8px}
 .practice-library-content .practice-library-list .unified-audio-main{padding:8px 12px}
}

/* Approved reading typography across lessons and Practice Tips. */
body.course-view #lesson :is(.article-copy,.bodycopy,.activity){font-size:17px}
body.course-view #lesson :is(.article-copy p,.article-copy li,.bodycopy p,.bodycopy li,.activity p,.activity strong){font-size:17px}
body.course-view #lesson :is(.source-quote q,.quote){font-size:18px}
body.course-view #lesson :is(.source-quote .attribution,.bodycopy .cite){font-size:14px}
.practice-library-list .unified-audio-meta{font-size:14px}
@media(max-width:740px){
 body.course-view #lesson :is(.source-quote q,.quote){font-size:18px}
 .practice-library-list .unified-audio-meta{font-size:14px}
}
