/* Complete lesson pages on desktop; retain the phone course shelf. */
@media(min-width:821px){
 .learning-path-home{--ink:#23364d;--muted:#7a899d;--bg:#f4f7fb;--line:#dfe6ee;--coral:#cf5b45;--green:#477d68;--ui:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;max-width:1280px;padding:28px 36px 52px}
 .learning-path-home .page-intro{margin-bottom:22px;align-items:end}
 .learning-path-home .page-intro h1{font-size:25px;font-weight:650;letter-spacing:0}
 .learning-path-home .page-intro p{font-size:13px;margin-top:5px}
 .learning-path-home .eyebrow{font-size:11px;letter-spacing:.02em;margin-bottom:5px}
 .learning-path-home .path-head{margin-bottom:9px}
 .learning-path-home .path-head small{font-size:11px}
 .learning-path-home .path-steps{gap:0;border:1px solid #dfe6ee;border-radius:10px;overflow:hidden;background:#fff;margin-bottom:26px}
 .learning-path-home .path-step{border:0;border-right:1px solid #e7ecf2;border-radius:0;padding:13px 15px;gap:10px;align-items:center;min-height:78px;box-shadow:none}
 .learning-path-home .path-step:last-child{border-right:0}
 .learning-path-home .path-step:after,.learning-path-home .step-state{display:none}
 .learning-path-home .path-step:hover{transform:none;background:#f7f9fc}
 .learning-path-home .path-step.selected{background:#fff4ee}
 .learning-path-home .step-num{width:26px;height:26px;font-size:11px}
 .learning-path-home .step-top{display:flex!important;gap:7px;margin-bottom:3px}
 .learning-path-home .step-top strong{font-size:14px;font-weight:650}
 .learning-path-home .step-copy>span{font-size:11px}
 .learning-path-home .content-columns{display:block}
 .learning-path-home .content-columns>aside{display:none}
 .learning-path-home .section-heading{margin-bottom:13px}
 .learning-path-home .section-heading h2{font-size:18px;font-weight:650}
 .learning-path-home .section-heading>span{font-size:12px}
 .learning-path-home .today-card{display:grid;grid-template-columns:328px minmax(0,1fr);border-radius:13px;box-shadow:0 5px 20px #23364d04}
 .learning-path-home .today-picture{background:#edf2f8;justify-content:center;align-items:center;border-right:1px solid #e2e9f1;padding:21px 26px 18px;gap:12px}
 .learning-path-home .paper-button{display:block;width:100%;padding:0!important;border:0!important;position:relative;cursor:zoom-in!important}
 .learning-path-home .today-picture .today-lesson-image{display:block;width:100%;height:auto;aspect-ratio:auto;max-width:276px;max-height:368px;object-fit:contain;border-radius:3px;box-shadow:0 4px 12px #23364d18;background:#fff}
 .learning-path-home .paper-toolbar{display:flex;align-items:center;justify-content:space-between;width:100%;gap:12px}
 .learning-path-home .paper-tabs{display:flex;background:#e3eaf3;border-radius:5px;padding:3px;gap:3px}
 .learning-path-home .paper-tabs button{font-size:11px;padding:5px 9px;border-radius:4px;color:#6a7e98;white-space:nowrap}
 .learning-path-home .paper-tabs button.active{background:#fff;color:#344b67;box-shadow:0 1px 3px #23364d10}
 .learning-path-home .paper-zoom{font-size:11px;color:#69809a;white-space:nowrap}
 .learning-path-home .today-copy{padding:27px 34px 24px;display:flex;flex-direction:column;align-items:stretch}
 .learning-path-home .today-course-brand{display:flex;align-items:center;gap:10px;color:#6b7d94;font-size:12px;margin-bottom:18px}
 .learning-path-home .today-course-brand img{width:58px;height:29px;object-fit:contain;border-radius:4px}
 .learning-path-home .today-course-brand .level{margin-left:2px;background:#f5f8fc;border-color:#e5ebf2;color:#58708b}
 .learning-path-home .today-copy .lesson-meta{display:none}
 .learning-path-home .today-copy h3{font-family:"Avenir Next","Trebuchet MS","PingFang SC",sans-serif;font-size:clamp(25px,2.4vw,34px);line-height:1.25;font-weight:700;letter-spacing:-.025em;max-width:700px}
 .learning-path-home .lesson-zh{font-size:15px;line-height:1.65;color:#7a899d;margin-top:10px!important}
 .learning-path-home .today-copy .course-progress{max-width:430px;margin-top:21px;font-size:12px}
 .learning-path-home .today-copy .progress-track{height:4px;margin:0 0 9px;background:#e9eef3}
 .learning-path-home .lesson-actions{margin-top:23px;gap:17px}
 .learning-path-home .lesson-actions .primary{font-family:inherit;min-height:46px;padding:11px 25px;border-radius:7px;font-size:14px}
 .learning-path-home .lesson-actions>span{font-size:11px}
 .learning-path-home .today-practice{margin-top:auto;padding-top:22px}
 .learning-path-home .today-practice h4{font-size:12px;font-weight:600;color:#697d96;margin:0 0 10px}
 .learning-path-home .today-practice ol{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
 .learning-path-home .today-practice li{font-size:12px;line-height:1.6;color:#8391a3;min-width:0}
 .learning-path-home .today-practice li strong{color:#405672;font-weight:550;display:block;margin-top:4px}
 .learning-path-home .today-practice li>span{font-size:10px;color:#92a1b4;display:block}
 .learning-path-home .today-practice i{font-size:10px;font-style:normal;color:#477d68;background:#edf4f0;padding:2px 5px;border-radius:3px}
 .learning-path-home .secondary-links{padding-top:17px;margin-top:17px;border-top:1px solid #edf0f4;gap:23px}
 .learning-path-home .secondary-links button{font-size:11px}
 .learning-path-home .home-course-row{display:grid;grid-template-columns:minmax(0,3fr) minmax(230px,1fr);gap:28px;margin-top:29px}
 .learning-path-home .home-course-row .mainline-section,.learning-path-home .home-course-row .side-section{margin:0}
 .learning-path-home .home-course-row .mainline-copy{font-size:12px}
 .learning-path-home .home-course-row .main-options{margin-top:12px}
 .learning-path-home .home-course-row .option{padding:12px;background:#fff}
 .learning-path-home .home-course-row .option img{max-width:170px;margin:0 auto 12px}
 .learning-path-home .home-course-row .option p{font-size:10px}
 .learning-path-home .home-course-row .choice-state{font-size:10px}
 .learning-path-home .home-course-row .side-section{border-left:1px solid #e1e7ee;padding-left:25px}
 .learning-path-home .home-course-row .side-course{padding:11px;gap:10px}
 .learning-path-home .home-course-row .side-course img{width:76px;height:38px}
 .learning-path-home .home-course-row .aside-caption{font-size:11px}
 .learning-path-home .bottom-links{margin-top:24px}
}
@media(min-width:821px) and (max-width:1100px){.learning-path-home{padding:25px}.learning-path-home .today-card{grid-template-columns:282px minmax(0,1fr)}.learning-path-home .today-picture{padding:20px}.learning-path-home .today-copy{padding:25px}.learning-path-home .today-practice ol{gap:8px}.learning-path-home .today-practice li>span{display:none}.learning-path-home .home-course-row{grid-template-columns:minmax(0,2.4fr) minmax(210px,1fr);gap:20px}.learning-path-home .home-course-row .side-section{padding-left:18px}.learning-path-home .step-top{gap:5px}.learning-path-home .path-step{padding:12px 10px;gap:8px}.learning-path-home .step-top strong{font-size:13px}}
.lesson-sheet{display:block;overflow:hidden;flex-shrink:0}.lesson-sheet img{display:block;width:100%;height:100%;object-fit:cover;object-position:top}.library-home .lesson-tile>.lesson-sheet{width:100%;aspect-ratio:4/3}.re-reading>.lesson-sheet{width:100px;height:133px;border-radius:5px}.desktop-course-switch{display:none}
.lesson-card-progress{display:flex;flex-direction:column;gap:6px;margin:5px 0 12px;color:#7b8998;font-size:11px;font-weight:400;text-align:left}.lesson-card-progress>span{display:flex;justify-content:space-between;gap:8px}.lesson-card-progress small{font-size:10px;color:#8592a2}.lesson-card-progress progress{display:block;width:100%;height:4px;appearance:none;border:0;border-radius:4px;overflow:hidden;background:#edf1f4;accent-color:#729b88}.lesson-card-progress progress::-webkit-progress-bar{background:#edf1f4;border-radius:4px}.lesson-card-progress progress::-webkit-progress-value{background:#729b88;border-radius:4px}.lesson-card-progress progress::-moz-progress-bar{background:#729b88;border-radius:4px}.lesson-card-progress.is-complete{color:#477d68}.lesson-card-progress.is-pending progress{opacity:.45}
.learning-controls.learning-controls-compact{background:transparent;border:0;border-top:1px solid #dfe6ee;border-radius:0;padding:18px 0;margin:24px 0;color:#586e86}.learning-controls-compact .learning-control-actions{margin:0 0 12px;gap:8px}.learning-controls-compact button{font-size:12px;border-radius:7px;min-height:38px;padding:8px 13px}.learning-controls-compact .learning-record-details{font-size:12px;max-width:760px}.learning-record-details summary{cursor:pointer;color:#7a899d;padding:4px 0}.learning-record-details .learning-lesson-status{padding:10px 0;font-size:12px}.learning-controls-compact .learning-sync{font-size:11px}
.path-page-dialog{border:0;border-radius:12px;padding:14px 18px 18px;background:#f4f7fb;max-width:min(960px,92vw);max-height:94vh;overflow:auto}.path-page-dialog::backdrop{background:#23364dcc}.path-page-dialog>img{display:block;max-width:100%;height:auto;margin:auto}.path-page-dialog>button{position:sticky;top:0;display:block;margin:0 0 12px auto;padding:8px 16px;border:1px solid #dbe4ef;background:#fff;border-radius:7px;color:#23364d;z-index:1}
@media(min-width:821px){
 .library-home{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif}
 .library-home .home-shell.is-course-directory{grid-template-columns:minmax(0,1fr);max-width:1208px;margin:24px auto 0}
 .is-course-directory>.course-sidebar,.is-course-directory>.home-sidebar{display:none}
 .is-course-directory>[class*=sidebar]{display:none}
 .is-course-directory [data-learning-home],.is-course-directory [data-learning-continue]{display:none}
 .is-course-directory .learning-library-back{display:flex;align-items:center;gap:18px;margin-bottom:22px}
 .desktop-course-switch{display:flex;align-items:center;gap:10px;margin-left:auto;font-size:12px;color:#7a899d}
 .desktop-course-switch select{background:#fff;color:#344d6d;border:1px solid #dfe6ee;border-radius:7px;padding:9px 12px;font:inherit}
 .library-home .lesson-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
 .library-home .lesson-tile>.lesson-sheet{height:264px;aspect-ratio:auto;padding:18px;background:#edf2f8;display:flex;align-items:center;justify-content:center}
 .library-home .lesson-tile>.lesson-sheet img{width:100%;height:100%;object-fit:contain;object-position:center;filter:drop-shadow(0 3px 4px #23364d12)}
 .library-home .lesson-tile>div{padding:17px 18px 16px}
 .library-home .lesson-tile h4{font-family:"Avenir Next","Trebuchet MS","PingFang SC",sans-serif;font-size:16px;line-height:1.4;min-height:46px;overflow-wrap:anywhere}
 .library-home .lesson-tile p{font-size:11px;color:#8896a7}
 .library-home .lesson-tile button{color:#cf5b45}
 .catalog-article{gap:20px!important;padding:20px!important;min-height:190px}
 .catalog-article>.lesson-sheet{width:108px;height:144px;background:#edf2f8}
 .catalog-article .lesson-sheet img{width:108px;height:144px;object-fit:contain;border-radius:2px}
 .catalog-article-copy strong{font-family:"Avenir Next","Trebuchet MS","PingFang SC",sans-serif;font-size:18px!important;font-weight:650}
 .catalog-article .lesson-card-progress{max-width:230px;margin:4px 0}
 .re-readings{grid-template-columns:repeat(4,minmax(0,1fr))}
 .re-reading{display:flex;flex-direction:column;gap:0;padding:0;border:1px solid #dfe6ee;border-radius:10px;background:#fff;overflow:hidden}
 .re-reading>.lesson-sheet,.re-reading>.re-pending-cover{width:100%;height:264px;padding:18px;border-radius:0;background:#edf2f8}
 .re-reading>.lesson-sheet img{object-fit:contain;object-position:center;filter:drop-shadow(0 3px 4px #23364d12)}
 .re-reading-copy{display:flex;flex-direction:column;padding:17px 18px 16px;flex:1}.re-reading h4{font-family:"Avenir Next","Trebuchet MS","PingFang SC",sans-serif;font-size:16px;min-height:46px}
 .re-reading button{margin-top:auto;align-self:flex-start;border:0;padding:6px 0;color:#cf5b45}.re-reading button:disabled{background:none}
 .re-reading.is-pending{opacity:.7}.re-reading-label{letter-spacing:0}
 .re-introduction{padding:22px}.re-introduction h3{font-size:21px}.re-book-navigation{margin-bottom:22px}
 .today-course-brand .course-label{font-size:12px;font-weight:500}.today-picture .paper-button{background:transparent}.today-copy .lesson-zh{margin:10px 0 0}
}
@media(min-width:821px) and (max-width:1100px){.library-home .lesson-grid,.re-readings{grid-template-columns:repeat(3,minmax(0,1fr))}.library-home .lesson-tile>.lesson-sheet,.re-reading>.lesson-sheet,.re-reading>.re-pending-cover{height:240px}}
@media(max-width:820px){.library-home .lesson-tile>.lesson-sheet{width:94px;height:100%;min-height:120px;aspect-ratio:auto}.catalog-article>.lesson-sheet{width:78px;height:104px}.catalog-article>.lesson-sheet img{width:100%;height:100%}.learning-controls-compact .learning-control-actions button{font-size:11px;padding:8px 10px}.learning-controls-compact{margin-bottom:20px}.learning-controls-compact .learning-record-details{font-size:11px}}
@media(max-width:480px){.re-reading>.lesson-sheet{width:78px;height:104px}}

@media(min-width:821px){.learning-path-home .path-steps .path-step .step-state{display:none}}

/* Older engines keep expandable unit groups instead of hiding their controls. */
@supports selector(::details-content){
 @media(min-width:821px){.re-units{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.re-unit,.re-readings{display:contents}.re-unit>summary{display:none}.re-unit::details-content{display:contents;content-visibility:visible}}
 @media(min-width:821px) and (max-width:1100px){.re-units{grid-template-columns:repeat(3,minmax(0,1fr))}}
}
