/* Course library and curriculum: shared paper, navy, mint and blue palette. */
.course-library-page,.course-detail-page{--course-ink:#173b3c;--course-muted:#59706e;--course-line:#dce8e3;--course-green:#176c50;color:var(--course-ink);min-width:0}
.course-icon{display:inline-block;flex:none;vertical-align:middle}
.library-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 30px;background:#e0f3eb;border:1px solid #cee7dc;border-radius:24px;overflow:hidden}
.library-hero .eyebrow,.course-detail-page .eyebrow{color:#176c50;font-size:10px;letter-spacing:1.6px;margin-bottom:8px}
.library-hero h1{font-size:clamp(27px,3vw,36px);color:#173b3c;margin:0 0 8px;letter-spacing:-1px}
.library-hero p{font-size:14px;color:#526e65;margin:0 0 17px}
.library-hero-stats{display:flex;flex-wrap:wrap;gap:9px 20px;font-size:12px;color:#536e66}
.library-hero-stats strong{font-size:16px;color:#173b3c;margin-right:3px}
.library-hero-art{width:158px;height:130px;object-fit:contain;flex:none;margin:-6px 3px}
.library-resume{display:flex;align-items:center;gap:14px;padding:15px 20px;margin:16px 0;background:#fff;border:1px solid #dce8e3;border-radius:17px;color:#173b3c;box-shadow:0 4px 16px #173b3c03}
.library-resume:hover{border-color:#88bfa9;background:#fcfefc;text-decoration:none}
.library-resume-icon{width:44px;height:44px;border-radius:13px;background:#e7f0ff;color:#35638b;display:grid;place-items:center;flex:none}
.library-resume-copy{display:grid;min-width:0;gap:2px;flex:1}
.library-resume-copy small{font-size:9px;font-weight:800;letter-spacing:1.2px;color:#176c50}
.library-resume-copy strong{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.library-resume-copy>span{font-size:11px;color:#59706e}
.library-resume-action{display:flex;align-items:center;gap:10px;flex:none;font-size:13px;font-weight:750;color:#176c50}
.library-tools{margin-top:20px}
.library-filters{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(160px,1fr);gap:14px}
.library-filters label{display:grid;gap:6px;font-size:11px;font-weight:750;color:#536966;min-width:0}
.library-filters input,.library-filters select,.library-sort select{width:100%;min-height:46px;background:white;border:1px solid #dce8e3;border-radius:12px;color:#173b3c;font-size:13px}
.library-input-wrap{display:flex;align-items:center;position:relative;min-width:0}
.library-input-wrap>.course-icon{position:absolute;left:14px;color:#67857b;pointer-events:none}
.library-input-wrap input{padding:11px 12px 11px 43px;width:100%;min-width:0}
.library-filters select{padding:10px 30px 10px 12px;text-overflow:ellipsis}
.library-status-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:13px;min-width:0}
.library-status{display:flex;gap:5px;flex-wrap:wrap}
.library-status button{display:flex;align-items:center;gap:7px;border:1px solid transparent;background:#edf2ef;color:#59706e;border-radius:10px;font-weight:700;padding:8px 12px;font-size:12px;min-height:42px;white-space:nowrap}
.library-status button span{font-size:10px;min-width:19px;line-height:19px;text-align:center;border-radius:5px;background:#ffffffad}
.library-status button:hover{background:#e0eee7}
.library-status button[aria-pressed="true"]{color:#fff;background:#173b3c}
.library-status button[aria-pressed="true"] span{background:#ffffff24;color:#fff}
.library-scope-link{font-size:12px;white-space:nowrap;font-weight:700;color:#176c50;padding:9px 0}
.library-results-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:22px 0 13px;min-width:0}
#library-count{margin:0;font-size:12px;color:#59706e;scroll-margin-top:90px}
.library-sort{display:flex;align-items:center;gap:8px;font-size:11px;color:#59706e;white-space:nowrap}
.library-sort select{font-size:12px;min-height:36px;width:auto;border:0;background:transparent;padding:6px 24px 6px 8px;font-weight:650}
.library-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:16px 0 24px}
.library-results-head+.library-grid{margin-top:0}
.library-card.card{padding:0;overflow:hidden;display:flex;flex-direction:column;min-width:0;border:1px solid #dce8e3;border-radius:19px;background:#fff;color:#173b3c;box-shadow:0 3px 9px #173b3c02;transition:transform .16s,border-color .16s,box-shadow .16s}
.library-card.card:hover{transform:translateY(-3px);border-color:#85bba3;box-shadow:0 8px 24px #173b3c0b;text-decoration:none}
.library-art{position:relative;background:#e7f0ff;padding:15px;display:flex;align-items:center;justify-content:center;min-width:0}
.library-card:nth-child(3n+2) .library-art{background:#e0f3eb}
.library-card:nth-child(3n+3) .library-art{background:#fff0d3}
.library-card .library-cover{width:100%;height:148px;object-fit:contain;display:block;border-radius:8px;filter:drop-shadow(0 3px 3px #173b3c08)}
.library-placeholder{display:grid!important;place-items:center;color:#356b82}
.library-placeholder .course-icon{width:66px;height:66px;stroke-width:1}
.library-badge{position:absolute;top:11px;left:11px;padding:5px 8px;font-size:10px;font-weight:800;line-height:1.4;background:#fffdf8;border:1px solid #ffffff;border-radius:7px;color:#795821;box-shadow:0 2px 8px #173b3c08}
.library-badge.complete{background:#f1fff6;color:#176c50}
.library-body{padding:18px;display:flex;flex-direction:column;gap:7px;flex:1;min-width:0}
.library-category{font-size:10px;font-weight:800;letter-spacing:.3px;color:#176c50;line-height:1.5;overflow-wrap:anywhere}
.library-body h3{font-size:17px;line-height:1.4;margin:0;color:#173b3c;overflow-wrap:anywhere;font-weight:750}
.library-japanese{font-size:12px;line-height:1.5;color:#687d78;overflow-wrap:anywhere;font-weight:400}
.library-card-meta{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:11px;color:#59706e;margin-top:6px}
.library-card-meta .course-icon{width:15px;height:15px}
.library-state{margin-left:auto;font-size:10px;color:#176c50;font-weight:700}
.library-card-progress{margin-top:4px}
.library-card-progress>div{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:10px;color:#59706e;margin-bottom:6px}
.library-card-progress strong{color:#176c50}
.library-card-spacer{flex:1}
.library-body progress,.course-next progress{width:100%;height:6px;display:block;appearance:none;border:0;border-radius:6px;overflow:hidden;background:#e7eeea;accent-color:#176c50}
.library-body progress::-webkit-progress-bar,.course-next progress::-webkit-progress-bar{background:#e7eeea}
.library-body progress::-webkit-progress-value,.course-next progress::-webkit-progress-value{background:#278863;border-radius:6px}
.library-body progress::-moz-progress-bar,.course-next progress::-moz-progress-bar{background:#278863;border-radius:6px}
.library-body .card-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding-top:13px;border-top:1px solid #e6eee9;color:#176c50;font-size:12px;font-weight:750}
.library-body .card-foot .course-icon{width:18px;height:18px}
.library-card-progress+.card-foot{margin-top:6px}
.library-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}
.library-group{padding:15px;display:flex;gap:12px;align-items:center;min-width:0;background:#fff;border:1px solid #dce8e3;border-radius:15px;color:#173b3c}
.library-group>span:nth-child(2){min-width:0;flex:1}
.library-group strong{display:block;font-size:12px;line-height:1.4;overflow-wrap:anywhere}
.library-group small{display:block;color:#59706e;font-size:11px;margin-top:4px}
.library-group>.course-icon{width:16px;color:#59706e}
.library-group:hover{background:#edf7f1;border-color:#a4cab7;text-decoration:none}
.library-group-icon{width:36px;height:40px;flex:none;display:grid;place-items:center;border-radius:9px;background:#e7f0ff;color:#3b698d;font-size:17px;font-weight:700}
.library-group:nth-child(3n+2) .library-group-icon{background:#e0f3eb;color:#176c50}
.library-group:nth-child(3n+3) .library-group-icon{background:#fff0d3;color:#96703b}
.library-grid-recent{grid-template-columns:repeat(2,minmax(0,1fr))}
.library-pager{display:flex;align-items:center;justify-content:center;gap:20px;margin:24px 0;font-size:12px;color:#59706e}
.library-pager[hidden]{display:none}
.library-pager .btn{font-size:12px;background:white;border-color:#dce8e3;color:#176c50}
.library-pager button:disabled{opacity:.4;cursor:default}
.library-empty{grid-column:1/-1;text-align:center;background:#fff;border:1px dashed #c8dbd0;border-radius:18px;padding:25px 20px}
.library-empty .empty{border:0;padding:15px 0;background:transparent}
.library-empty .empty h3{font-size:19px;color:#173b3c}
.library-empty .empty p{font-size:13px}
.library-empty .empty .symbol{font-size:30px}
.course-library-page a:focus-visible,.course-library-page button:focus-visible,.course-library-page input:focus-visible,.course-library-page select:focus-visible,.library-card:focus-visible,.library-group:focus-visible,.course-detail-page a:focus-visible,.course-detail-page button:focus-visible,.course-detail-page input:focus-visible,.course-detail-page summary:focus-visible{outline:3px solid #247e70;outline-offset:4px}
.course-breadcrumb{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}
.course-back{font-size:13px;font-weight:700;color:#176c50;padding:9px 0}
.course-breadcrumb .btn{font-size:12px;border-radius:10px}
.course-detail-hero{display:grid;grid-template-columns:minmax(0,1fr) 245px;align-items:center;gap:28px;border-radius:23px;background:#e7f0ff;padding:26px 30px;border:1px solid #dce7f4}
.course-detail-intro{min-width:0}
.course-detail-hero h1{font-size:clamp(25px,2.7vw,34px);line-height:1.3;overflow-wrap:anywhere;margin:0 0 8px;color:#173b3c;letter-spacing:-.7px}
.course-detail-subtitle{font-size:15px;line-height:1.65;color:#4c6780;margin:0 0 12px;overflow-wrap:anywhere}
.course-detail-caption{font-size:13px;color:#536d78;margin:8px 0 14px}
.course-detail-art{display:flex;align-items:center;justify-content:center;min-width:0;padding:13px;background:#ffffff85;border-radius:17px;min-height:174px}
.course-detail-cover{width:100%;height:154px;object-fit:contain;border-radius:8px}
.course-description{font-size:13px;color:#526b74;margin:12px 0;max-width:720px}
.course-description summary{cursor:pointer;font-weight:700;color:#355d78;min-height:30px;padding:4px 0}
.course-description p{white-space:pre-line;line-height:1.75;margin:8px 0 0;overflow-wrap:anywhere}
.course-detail-facts{display:flex;align-items:center;flex-wrap:wrap;gap:8px 15px;font-size:11px;color:#466777;margin-top:14px}
.course-detail-facts>span{display:flex;align-items:center;gap:5px}
.course-detail-facts .course-icon{width:16px;height:16px}
.course-next{display:grid;grid-template-columns:minmax(180px,.7fr) minmax(0,1.5fr);align-items:center;gap:28px;background:white;border:1px solid #dce8e3;border-radius:18px;padding:20px 24px;margin:18px 0 30px}
.course-progress-summary>div{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:12px;margin-bottom:10px}
.course-progress-summary>div>span{font-size:16px;color:#176c50;font-weight:800}
.course-progress-summary small{font-size:11px;display:block;margin-top:7px;color:#59706e}
.course-next-action{display:flex;align-items:center;gap:20px;padding-left:26px;border-left:1px solid #e3ebe6;min-width:0}
.course-next-action>div{display:grid;gap:5px;flex:1;min-width:0}
.course-next-action small{font-size:9px;letter-spacing:1px;font-weight:800;color:#176c50}
.course-next-action strong{font-size:13px;line-height:1.55;overflow-wrap:anywhere}
.course-next-action .btn{flex:none;min-height:45px;background:#176c50;border-color:#176c50;font-size:12px}
.course-next-action .btn:hover{background:#11563f}
.course-next-action p{font-size:12px;color:#59706e;margin:0}
.course-curriculum-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.course-curriculum-head h2{font-size:23px;color:#173b3c;margin:0}
.course-curriculum-head .eyebrow{font-size:9px;margin-bottom:5px}
.course-curriculum-head>span{font-size:12px;color:#59706e;white-space:nowrap}
.course-lesson-filters{display:flex;align-items:center;gap:20px;margin-bottom:12px}
.course-lesson-filters .library-input-wrap{flex:1}
.course-lesson-filters input[type=search]{height:44px;border:1px solid #dce8e3;border-radius:11px;background:#fff;font-size:13px;color:#173b3c}
.course-remaining{font-size:12px;color:#59706e;display:flex;align-items:center;gap:8px;white-space:nowrap;min-height:44px;cursor:pointer}
.course-remaining input{width:17px;height:17px;accent-color:#176c50;margin:0}
.course-lesson-count{font-size:11px;color:#59706e;margin:0 0 15px;scroll-margin-top:90px}
#course-sections{display:grid;gap:11px}
.course-section{background:white;border:1px solid #dce8e3;border-radius:15px;overflow:hidden;min-width:0}
.course-section>summary{list-style:none;display:flex;align-items:center;gap:14px;padding:17px 19px;cursor:pointer;min-height:78px}
.course-section>summary::-webkit-details-marker{display:none}
.course-section>summary:hover{background:#f5faf7}
.course-section>summary>.course-icon{width:17px;height:17px;color:#59706e;transition:transform .15s}
.course-section[open]>summary{background:#edf7f1;border-bottom:1px solid #dce8e3}
.course-section[open]>summary>.course-icon{transform:rotate(180deg)}
.course-section-number{display:grid;place-items:center;width:39px;height:39px;border:1px solid #dce8e3;border-radius:10px;background:#f4f8f7;color:#176c50;font-size:12px;font-weight:750;flex:none}
.course-section-title{flex:1;min-width:0;display:grid;gap:4px}
.course-section-title strong{font-size:14px;line-height:1.5;color:#173b3c;overflow-wrap:anywhere}
.course-section-title small{font-size:10px;color:#59706e}
.course-section-status{font-size:11px;font-weight:750;color:#687f75;flex:none}
.course-section-status.complete{width:24px;height:24px;display:grid;place-items:center;border-radius:50%;background:#d4eedf;color:#176c50}
.course-section-status.complete .course-icon{width:16px;height:16px}
.course-lesson{display:flex;align-items:center;gap:14px;padding:16px 20px;color:#173b3c;border-bottom:1px solid #edf1ee;min-height:80px}
.course-lesson:last-child{border-bottom:0}
.course-lesson:hover{background:#f8fbf9;text-decoration:none}
.course-lesson-number{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#f0f4f2;color:#62776e;font-size:11px;font-weight:750;flex:none}
.course-lesson-number .course-icon{width:17px;height:17px}
.course-lesson-copy{flex:1;min-width:0;display:grid;gap:4px}
.course-lesson-copy strong{font-size:13px;font-weight:650;line-height:1.6;overflow-wrap:anywhere}
.course-lesson-subtitle{font-size:12px;color:#617873;line-height:1.55;overflow-wrap:anywhere}
.course-lesson-copy small{font-size:10px;color:#667a71}
.course-lesson>.course-icon{width:17px;height:17px;color:#9aafa4}
.course-lesson.is-complete .course-lesson-number{background:#e0f3eb;color:#176c50}
.course-lesson.is-next{background:#f3f9ff;box-shadow:inset 3px 0 #82b4da}
.course-lesson.is-next .course-lesson-number{background:#e7f0ff;color:#356b93}
.course-lesson.is-next .course-lesson-copy small{color:#356b93}
.course-lesson.is-locked .course-lesson-number{background:#fff0d3;color:#8f6a2d}
.course-more-lessons{width:100%;display:flex;align-items:center;justify-content:center;gap:7px;background:#fff;border:0;color:#176c50;min-height:48px;padding:12px;font-size:12px;font-weight:750}
.course-more-lessons span{font-size:11px;font-weight:400;color:#59706e}
.course-more-lessons:hover{background:#f3f9f5}
@media(min-width:1500px){.library-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.library-card .library-cover{height:172px}.library-grid-recent{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1100px){.library-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.library-groups{grid-template-columns:repeat(2,minmax(0,1fr))}.library-status-row{align-items:flex-start;flex-wrap:wrap}.library-scope-link{padding:0 2px;font-size:11px}.course-detail-hero{grid-template-columns:minmax(0,1fr) 195px;padding:23px;gap:23px}.course-next{gap:20px;padding:19px}.course-next-action{padding-left:20px;gap:12px;flex-wrap:wrap}.course-next-action .btn{min-width:142px}.course-next-action>div{min-width:150px}}
@media(max-width:700px){.library-hero{padding:20px;gap:12px;border-radius:20px}.library-hero-art{width:112px;height:106px;margin:0 -7px 0 0}.library-hero h1{font-size:28px}.library-hero p{font-size:12px;margin-bottom:12px}.library-hero-stats{gap:5px 13px;font-size:10px}.library-hero-stats strong{font-size:14px}.library-hero .eyebrow{font-size:9px;letter-spacing:1.1px}.library-resume{gap:10px;padding:12px 14px;border-radius:14px;margin:12px 0}.library-resume-copy strong{font-size:13px}.library-resume-copy small{font-size:8px}.library-resume-copy>span{font-size:10px}.library-resume-icon{width:36px;height:38px;border-radius:10px}.library-resume-action{font-size:11px;gap:5px}.library-resume-action .course-icon{width:17px}.library-tools{margin-top:17px}.library-filters{grid-template-columns:minmax(0,1fr) minmax(130px,.8fr);gap:10px}.library-filters label{font-size:10px;gap:5px}.library-filters input,.library-filters select{font-size:12px;min-height:44px;border-radius:10px}.library-input-wrap>.course-icon{left:11px;width:17px}.library-input-wrap input{padding-left:34px}.library-status-row{margin-top:10px;gap:9px}.library-status{gap:4px;flex-wrap:nowrap;width:100%}.library-status button{flex:1;justify-content:center;gap:5px;padding:8px 7px;font-size:11px;min-height:42px;border-radius:9px}.library-status button span{font-size:9px;min-width:15px;line-height:16px}.library-scope-link{display:none}.library-results-head{margin:15px 0 11px;gap:8px}#library-count{font-size:10px}.library-sort{gap:1px}.library-sort>span{display:none}.library-sort select{font-size:10px;min-height:35px;padding-left:5px;max-width:124px}.library-grid{gap:14px}.library-body{padding:15px}.library-body h3{font-size:16px}.library-category{font-size:9px}.library-japanese{font-size:11px}.library-card .library-cover{height:135px}.library-groups{gap:8px}.library-group{padding:12px;gap:9px}.library-group strong{font-size:11px}.library-group>.course-icon{display:none}.library-group-icon{width:29px;height:34px;font-size:15px}.library-group small{font-size:10px}.library-pager{gap:12px;font-size:11px;margin:20px 0}.library-pager .btn{padding:10px 12px;font-size:11px}.course-breadcrumb{margin-bottom:15px}.course-back{font-size:12px}.course-breadcrumb .btn{font-size:10px;padding:9px 10px}.course-detail-hero{padding:20px;gap:17px;grid-template-columns:minmax(0,1fr) 130px;border-radius:20px}.course-detail-hero h1{font-size:25px}.course-detail-subtitle{font-size:12px;line-height:1.65}.course-detail-art{min-height:132px;padding:8px;border-radius:12px}.course-detail-cover{height:115px}.course-detail-art>img:not(.course-detail-cover){width:115px;height:115px}.course-detail-facts{gap:7px 12px;font-size:10px;margin-top:12px}.course-detail-page .eyebrow{font-size:9px;letter-spacing:1px}.course-description{font-size:12px}.course-description summary{font-size:11px}.course-detail-caption{font-size:12px}.course-next{grid-template-columns:1fr;gap:15px;padding:17px 18px;margin:14px 0 25px;border-radius:16px}.course-next-action{border-left:0;border-top:1px solid #e3ebe6;padding:15px 0 0;flex-wrap:nowrap;gap:14px}.course-next-action>div{min-width:0}.course-next-action strong{font-size:12px}.course-next-action small{font-size:8px}.course-next-action .btn{min-width:125px;padding:10px 12px;font-size:11px}.course-curriculum-head{margin-bottom:15px}.course-curriculum-head h2{font-size:21px}.course-curriculum-head>span{font-size:10px}.course-lesson-filters{gap:12px}.course-lesson-filters input[type=search]{font-size:12px}.course-remaining{font-size:10px;gap:6px}.course-remaining input{width:16px;height:16px}.course-section>summary{padding:14px;gap:11px;min-height:74px}.course-section-title strong{font-size:13px}.course-section-number{width:33px;height:36px;font-size:11px}.course-section-status{font-size:10px}.course-section-title small{font-size:9px}.course-lesson{padding:15px;gap:11px}.course-lesson-number{width:30px;height:32px}.course-lesson-copy strong{font-size:12px}.course-lesson-subtitle{font-size:11px}.course-lesson-copy small{font-size:9px}.course-more-lessons{font-size:11px}.course-more-lessons span{font-size:10px}}
@media(max-width:480px){.library-hero{padding:18px}.library-hero-art{width:85px;height:89px;align-self:flex-start;margin-top:11px}.library-hero h1{font-size:26px;letter-spacing:-.8px;max-width:240px}.library-hero-stats{gap:6px 10px}.library-hero .eyebrow{font-size:8px;letter-spacing:1px}.library-hero p{max-width:190px;line-height:1.6}.library-hero-stats span:last-child{display:none}.library-grid,.library-grid-recent{grid-template-columns:1fr;gap:12px}.library-card.card{display:grid;grid-template-columns:103px minmax(0,1fr);border-radius:16px}.library-art{padding:10px 8px;align-self:stretch}.library-card .library-cover{height:128px;max-height:100%;border-radius:5px}.library-badge{top:10px;left:7px;font-size:8px;padding:4px 5px;max-width:89px}.library-body{padding:15px 14px;gap:6px;min-height:185px}.library-body h3{font-size:15px;line-height:1.5}.library-japanese{font-size:11px}.library-card-meta{font-size:10px;margin-top:3px;gap:5px}.library-state{font-size:9px}.library-card-progress>div{font-size:9px}.library-body .card-foot{font-size:11px;padding-top:9px;margin-top:5px}.library-card-spacer{min-height:0}.library-placeholder .course-icon{width:46px;height:46px}.library-status button{font-size:10px;gap:4px;padding:8px 5px}.course-detail-hero{grid-template-columns:minmax(0,1fr) 91px;padding:18px;gap:12px;align-items:start}.course-detail-hero h1{font-size:23px;line-height:1.35}.course-detail-art{min-height:108px;padding:7px;border-radius:10px;margin-top:8px}.course-detail-cover{height:94px}.course-detail-art>img:not(.course-detail-cover){width:80px;height:90px}.course-detail-subtitle{font-size:12px;margin-bottom:8px}.course-detail-hero .eyebrow{font-size:8px}.course-detail-facts{font-size:9px;gap:6px 10px}.course-detail-facts .course-icon{width:14px;height:14px}.course-next-action .btn{min-width:118px}.course-curriculum-head>span{font-size:9px}.course-lesson-filters{flex-wrap:wrap;gap:5px}.course-lesson-filters .library-input-wrap{flex-basis:100%}.course-remaining{min-height:33px;font-size:11px}.course-lesson-count{font-size:10px}.course-section>summary{gap:10px;padding:13px 12px}.course-section-title strong{font-size:12px}.course-section-number{width:30px;height:34px}.course-section>summary>.course-icon{width:14px}.course-lesson{padding:14px 12px;gap:10px}.course-lesson>.course-icon{width:14px}.course-lesson-number{width:27px;height:30px}.course-more-lessons{flex-wrap:wrap;gap:5px}.library-empty{padding:20px 14px}}
@media(prefers-reduced-motion:reduce){.library-card.card,.course-section>summary>.course-icon{transition:none}.library-card.card:hover{transform:none}}
/* Keep status filters fully tappable on narrow phones. */
@media(max-width:360px){.library-status{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.library-status button{min-width:0;min-height:44px;font-size:11px}.library-status button span{font-size:10px}}

/* English/Mandarin foundation charts; scoped so existing courses keep their layout. */
.foundation-chart{margin:24px 0;padding:22px;border:1px solid #d8e7e1;border-radius:22px;background:#f4f8f7}.foundation-chart>p{color:#536e6e}.foundation-chart details{background:white;border:1px solid #d8e7e1;border-radius:16px;margin:10px 0;padding:15px}.foundation-chart summary{font-weight:750;cursor:pointer;padding:8px 0;color:#173b3c}.foundation-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(75px,1fr));gap:10px;margin:15px 0}.foundation-grid a{border-radius:14px;background:#e7f0ff;padding:15px 8px;text-align:center;min-height:68px;display:flex;flex-direction:column;justify-content:center;gap:7px;color:#173b3c}.foundation-grid a:hover{background:#c4e8d7;text-decoration:none}.foundation-grid strong{font-size:26px;overflow-wrap:anywhere}.foundation-grid small{color:#315f91}.foundation-chart a:focus-visible,.foundation-chart summary:focus-visible{outline:3px solid #247e70;outline-offset:3px}@media(max-width:600px){.foundation-chart{padding:14px}.foundation-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.foundation-grid strong{font-size:22px}}

.foundation-overview{padding:18px;border-radius:18px;background:#e8f3ed;margin:16px 0}.foundation-overview p{color:#536e6e;line-height:1.6}.foundation-chart summary small{display:block;color:#536e6e;font-weight:400;font-size:13px;margin-top:7px}.foundation-actions{display:flex;flex-wrap:wrap;gap:10px}.foundation-chart [data-foundation-group][hidden]{display:none}.foundation-chart .library-input-wrap{max-width:100%}

.foundation-actions + .foundation-actions{margin-top:10px}

.foundation-stages{margin:20px 0}.foundation-stage-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.foundation-stage-grid button{padding:16px;min-height:125px;border-radius:16px;border:1px solid #d8e7e1;background:#fff;display:flex;flex-direction:column;gap:8px;text-align:left;color:#173b3c;cursor:pointer}.foundation-stage-grid button>span{font-size:26px;font-weight:700;color:#315f91}.foundation-stage-grid button small{color:#536e6e}.foundation-stage-grid button[aria-pressed=true]{background:#e0f3eb;border-color:#176c50}.foundation-stage-grid button:disabled{opacity:.5;cursor:default}.foundation-stage-grid button:focus-visible{outline:3px solid #247e70;outline-offset:3px}#foundation-stage-panel{padding:18px;background:#fff;border:1px solid #d8e7e1;border-radius:18px;margin-top:12px}.foundation-stage-lessons{display:grid;gap:8px;margin:14px 0}.foundation-stage-lesson{padding:12px;border-bottom:1px solid #e8efeb;color:#173b3c;min-height:44px}@media(max-width:600px){.foundation-stage-grid button{padding:10px;font-size:13px}}

.language-writing .language-copy-surface{display:block;width:100%;max-width:400px;min-width:0;aspect-ratio:1;background:#fff;border:1px solid #d8e7e1;border-radius:18px;touch-action:none;user-select:none;margin:16px auto}.language-writing h3{text-align:center;font-size:32px;color:#173b3c}.language-writing>p{line-height:1.6;color:#536e6e}
.language-writing .writing-glyphs{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.language-writing .writing-glyphs .btn{min-width:44px;min-height:44px}.language-writing .writing-glyphs [aria-pressed="true"]{background:#c4e8d7;color:#173b3c;border-color:#176c50}
