:root{--green:#164c39;--green-dark:#103c2e;--ink:#202b25;--muted:#758078;--border:#e4e8e1;--bg:#f7f8f4;--mint:#e6f1e8;--cream:#f0e7c9}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',sans-serif;font-size:14px}button,input,textarea{font:inherit}button,a,input,textarea{ -webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}button{border:0}button:disabled{cursor:wait;opacity:.6}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #a47f2e;outline-offset:4px}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:Manrope,sans-serif}button[hidden],[hidden]{display:none!important}.sidebar{width:250px;position:fixed;inset:0 auto 0 0;background:#fff;border-right:1px solid var(--border);display:flex;flex-direction:column;padding:32px 22px;z-index:5}.brand{display:flex;gap:10px;align-items:center;font-family:Manrope,sans-serif;font-size:21px;font-weight:800;letter-spacing:-1px}.brand-logo{display:block;width:100%;height:auto;object-fit:contain}.brand{min-height:44px;flex-shrink:0}.workspace-label{font-size:9px;letter-spacing:1.7px;color:#92988f;margin:49px 12px 17px}.nav-item{display:flex;align-items:center;gap:13px;width:100%;background:none;padding:14px 13px;margin:3px 0;color:#6b746e;border-radius:7px;font-weight:500;font-size:13px;text-align:left;white-space:nowrap}.nav-item>span:first-child{font-size:21px;width:23px;line-height:1}.nav-item.active{background:var(--mint);color:var(--green);font-weight:700}.nav-item:hover{background:#f1f5ef}.count{margin-left:auto;background:white;border-radius:4px;padding:2px 6px;font-size:10px}.sidebar-help{background:#f7f8f2;border:1px solid #eaedde;border-radius:10px;padding:18px 16px;margin-top:auto}.help-icon{font-size:28px;color:var(--green)}.sidebar-help h3{font-size:14px;line-height:1.6;margin:8px 0}.sidebar-help p{font-size:11px;line-height:1.8;color:var(--muted)}.sidebar-help a{display:flex;justify-content:space-between;color:var(--green);font-weight:700;font-size:12px;margin-top:16px}.back-site{font-size:10px;color:var(--muted);padding:23px 0 18px;text-align:center}.sidebar-bottom{border-top:1px solid var(--border);padding-top:20px;display:flex;align-items:center;gap:11px}.avatar{background:#e9dfc8;color:var(--green);display:grid;place-items:center;width:35px;height:35px;border-radius:50%;font-weight:700;flex-shrink:0}.sidebar-bottom strong{display:block;font-size:11px;max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-bottom small{display:block;font-size:9px;color:var(--muted);margin-top:5px}.app-shell{margin-left:250px}.topbar{height:89px;background:#fff;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;padding:0 42px;gap:15px}.eyebrow{font-size:9px;font-weight:700;letter-spacing:1.9px;color:var(--muted)}.topbar .eyebrow{font-size:8px;display:block;margin-bottom:6px}.topbar-title{font-size:13px;font-weight:600}.header-actions{display:flex;gap:20px;align-items:center}.local-label{font-size:10px;color:var(--muted)}.local-label:before{content:'';display:inline-block;width:5px;height:5px;border-radius:50%;background:#669276;margin-right:7px}.button{border:1px solid var(--border);background:white;border-radius:7px;padding:11px 17px;font-weight:600;font-size:12px;display:inline-flex;align-items:center;justify-content:center;gap:12px;transition:background .2s,transform .2s}.button:hover{transform:translateY(-1px);background:#f1f5ed}.google-g{font-family:Arial,sans-serif;font-size:18px;color:#4285f4}.button.primary{background:var(--green);color:#fff;border-color:var(--green)}.button.primary:hover{background:var(--green-dark)}.button.cream{background:var(--cream);border-color:var(--cream);color:var(--green-dark);padding:13px 20px;gap:30px}.button.subtle{background:transparent}.button.wide{width:100%}main{max-width:1530px;margin:0 auto;padding:35px 42px 0}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:27px}.page-heading .eyebrow{font-size:8px;margin-bottom:10px}h1{font-size:clamp(24px,2.25vw,35px);letter-spacing:-1.35px;font-weight:800;line-height:1.3}h1>span{color:#819e68}.page-heading p:last-child{font-size:12px;color:var(--muted);margin-top:10px}.date-chip{font-size:10px;white-space:nowrap;border:1px solid var(--border);border-radius:6px;padding:10px 12px;color:#657266;background:white}.hero{min-height:302px;background:var(--green);border-radius:14px;display:flex;overflow:hidden;position:relative;color:white}.hero-copy{padding:30px 34px;position:relative;z-index:1;flex:1}.hero-pill{font-size:8px;letter-spacing:1.6px;color:#dfebd6;display:inline-flex;gap:7px;align-items:center}.hero-pill>span{width:5px;height:5px;background:#ccdb9e;border-radius:50%}.hero h2{font-size:34px;line-height:1.23;letter-spacing:-.9px;margin:16px 0 12px;font-weight:600;color:#fbfcf4}.hero-copy>p{color:#bfd3c7;font-size:11px;line-height:1.8;margin-bottom:20px}.hero-footnote{font-size:9px;color:#bcd0bb;margin-top:21px}.hero-footnote>span{color:#d7c991;margin-right:6px}.hero-art{position:relative;width:41%;display:grid;place-items:center}.orbit{position:absolute;border:1px solid #ffffff16;border-radius:50%;width:390px;height:390px}.orbit-two{width:280px;height:280px}.art-card{background:#eee8d3;width:190px;height:224px;transform:rotate(-9deg);border-radius:7px;padding:25px 22px;color:var(--green-dark);position:relative;box-shadow:12px 15px 0 #0e3b2b55}.art-card-label{font-size:7px;letter-spacing:1.5px;font-weight:700}.art-word{display:block;font-family:Georgia,serif;font-size:85px;letter-spacing:-5px;margin-top:5px;line-height:1.1}.art-line{height:1px;background:#b6bba2;margin:10px 0 13px}.art-card p{font-size:10px;line-height:1.6}.art-arrow{position:absolute;right:19px;bottom:22px;font-size:27px}.art-spark{font-size:65px;position:absolute;right:30px;top:18px;color:#c8d5a4;transform:rotate(12deg)}.floating-tag{position:absolute;bottom:30px;right:16px;font-size:10px;background:#fffdf2;color:#36513b;padding:12px 16px;border-radius:6px;transform:rotate(5deg);box-shadow:0 7px 20px #103a2940}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin:22px 0 30px}.stat{background:#fff;border:1px solid var(--border);border-radius:9px;padding:20px 17px;display:flex;align-items:center;gap:13px}.stat-icon{width:39px;height:39px;border-radius:10px;display:grid;place-items:center;font-size:22px;color:var(--green);flex-shrink:0}.mint{background:#e7f1e8}.sand{background:#f6f0db}.lavender{background:#edeaf5;color:#7a6f9a}.peach{background:#f7eadd;color:#ac8265}.stat strong{display:block;font-family:Manrope,sans-serif;font-size:23px;line-height:1.1}.stat div>span{display:block;font-size:10px;color:var(--muted);margin-top:7px}.overview-grid{display:grid;grid-template-columns:1fr 260px;gap:24px;margin-bottom:33px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.section-heading h2{font-size:20px;letter-spacing:-.55px}.section-heading .eyebrow{font-size:8px;margin-bottom:7px}.text-button{background:none;color:var(--green);font-size:11px;font-weight:600;white-space:nowrap}.continue-card{background:white;border:1px solid var(--border);padding:17px;border-radius:9px;display:flex;gap:19px;align-items:center;margin-bottom:12px}.continue-card>img{width:105px;height:104px;object-fit:cover;border-radius:6px}.continue-info{flex:1;min-width:0}.continue-info h3{font-size:14px;margin:7px 0 10px}.continue-info .eyebrow{font-size:7px}.progress-label{display:flex;justify-content:space-between;font-size:9px;color:var(--muted);margin-bottom:7px;gap:10px}.progress-track{height:5px;background:#eef1e9;border-radius:6px;overflow:hidden}.progress-track>span{display:block;height:100%;background:var(--green);border-radius:6px}.continue-info .text-button{padding:10px 0 0;font-size:10px}.empty-learning{border:1px dashed #ccd5c8;border-radius:10px;padding:25px;background:#fff;display:flex;align-items:center;gap:18px;min-height:155px}.empty-learning .empty-icon{font-size:35px;color:#769679}.empty-learning h3{font-size:15px;margin-bottom:8px}.empty-learning p{font-size:11px;color:var(--muted);line-height:1.7;max-width:320px;margin-bottom:14px}.weekly-card{background:#eeefdf;border:1px solid #e3e5d2;border-radius:10px;padding:23px;position:relative;overflow:hidden}.weekly-card .eyebrow{font-size:7px}.weekly-card h3{font-size:20px;line-height:1.45;letter-spacing:-.4px;margin:10px 0 15px}.weekly-card p{font-size:10px;color:#737a60;line-height:1.8;max-width:175px}.milestone-graphic{position:absolute;right:12px;top:68px;font-size:64px;color:#bec697;transform:rotate(10deg)}.milestone-bottom{margin-top:22px;display:flex;justify-content:space-between;font-size:9px;font-weight:600;color:var(--green)}.course-total{color:var(--muted);font-size:10px}.catalog-toolbar{display:flex;justify-content:space-between;gap:16px;margin-bottom:21px;flex-wrap:wrap}.filters{display:flex;gap:7px;flex-wrap:wrap}.filter{padding:9px 15px;background:none;border:1px solid transparent;border-radius:6px;font-size:11px;color:#768071}.filter.active{background:var(--green);color:white}.filter:hover:not(.active){background:#e8ede1}.search{display:flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:6px;background:white;padding:7px 12px}.search>span{font-size:21px;line-height:1;color:var(--muted)}.search input{border:0;outline:0!important;width:150px;background:none;font-size:10px;color:var(--ink);padding:3px}.search:focus-within{outline:2px solid var(--green)}.course-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.course-card{border:1px solid var(--border);background:white;border-radius:10px;overflow:hidden;display:flex;flex-direction:column;transition:transform .2s,box-shadow .2s}.course-card:hover{transform:translateY(-4px);box-shadow:0 10px 25px #244e3110}.course-image{height:147px;position:relative;background:#e0e9df;overflow:hidden}.course-image img{height:100%;width:100%;object-fit:cover}.course-tag{position:absolute;top:12px;left:12px;background:#fffef6ed;color:var(--green);border-radius:4px;font-size:8px;font-weight:700;padding:5px 8px}.course-card-body{padding:18px;display:flex;flex-direction:column;flex:1}.course-category{font-size:7px;text-transform:uppercase;letter-spacing:1.5px;color:#829079;font-weight:700}.course-card h3{font-size:15px;line-height:1.5;letter-spacing:-.25px;margin:8px 0}.course-card p{font-size:10px;color:var(--muted);line-height:1.8;flex:1}.course-meta{display:flex;justify-content:space-between;gap:5px;font-size:9px;color:#76806f;margin:18px 0 15px}.course-card .button{font-size:10px;padding:10px 8px;background:#f4f7f0;color:var(--green);border-color:#e2e9dc;justify-content:space-between}.course-card .button:hover{background:var(--mint)}.course-card .progress-track{margin-bottom:12px}.resource-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.resource-card{padding:25px;background:white;border:1px solid var(--border);border-radius:10px}.resource-card h3{margin:15px 0 10px}.resource-card p{font-size:12px;color:var(--muted);line-height:1.8;margin-bottom:20px}.resource-card .resource-icon{color:var(--green);font-size:30px}.achievement-card{padding:28px 22px;background:white;border:1px solid var(--border);border-radius:10px}.achievement-card>span{font-size:35px;color:#9ba58d}.achievement-card.earned{background:#edf3e5;border-color:#c8d9ba}.achievement-card.earned>span{color:#718d46}.achievement-card h3{font-size:15px;margin:17px 0 10px}.achievement-card p,.achievement-note{font-size:11px;color:var(--muted);line-height:1.8}.achievement-card .progress-track{margin-top:18px}.achievement-note{margin-top:25px}.empty-state{background:white;border:1px dashed var(--border);padding:45px;text-align:center;border-radius:10px;color:var(--muted)}.app-footer{border-top:1px solid var(--border);padding:25px 0;margin-top:40px;display:flex;justify-content:space-between;gap:10px;font-size:9px;color:var(--muted)}.green{color:var(--green);margin-left:8px}dialog{border:1px solid var(--border);padding:28px;border-radius:15px;color:var(--ink);box-shadow:0 20px 80px #102c3340;max-height:90dvh;max-width:calc(100% - 28px)}dialog::backdrop{background:#102e24a6;backdrop-filter:blur(4px)}.course-dialog{width:1050px}.dialog-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.icon-button{background:#f1f4eb;width:33px;height:33px;border-radius:50%;font-size:15px;color:var(--green)}.dialog-heading h2{font-size:25px;letter-spacing:-.8px;margin:10px 0}.dialog-heading>p{font-size:12px;color:var(--muted);line-height:1.8;margin-bottom:20px}.player-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:22px}.video-frame{aspect-ratio:16/9;background:#122e24;border-radius:8px;overflow:hidden;display:grid;place-items:center;color:white;padding:0;text-align:center}.video-frame iframe{width:100%;height:100%;border:0}.video-frame p{padding:20px;font-size:13px;line-height:1.8}.lesson-title{font-size:16px;margin:16px 0;line-height:1.5}.lesson-actions{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:22px}.lesson-list{max-height:450px;overflow:auto;border:1px solid var(--border);border-radius:8px}.lesson-row{display:flex;align-items:flex-start;gap:10px;width:100%;padding:14px 12px;text-align:left;background:white;color:var(--ink);border-bottom:1px solid var(--border);line-height:1.6;font-size:11px}.lesson-row:last-child{border-bottom:0}.lesson-row.selected{background:#eaf0e3}.lesson-row>span:first-child{min-width:23px;height:23px;border:1px solid #d1d9cb;border-radius:50%;display:grid;place-items:center;font-size:10px;color:var(--green)}.lesson-row.done>span:first-child{background:var(--green);color:white}.lesson-row:hover{background:#f1f5ec}.notes-label{display:block;font-size:12px;font-weight:600;margin-bottom:10px}.notes-input{display:block;width:100%;height:105px;resize:vertical;border:1px solid var(--border);border-radius:8px;padding:12px;font-size:12px;line-height:1.8}.notes-hint{font-size:9px;color:var(--muted);margin-top:7px}.curriculum-header{display:flex;justify-content:space-between;font-size:12px;font-weight:700;margin:0 0 12px}.quiz{border-top:1px solid var(--border);margin-top:25px;padding-top:20px}.quiz h3{font-size:17px;margin-bottom:8px}.quiz>p{font-size:11px;color:var(--muted);margin-bottom:18px}.quiz fieldset{border:0;padding:0;margin:0 0 20px}.quiz legend{font-size:12px;font-weight:600;line-height:1.7;margin-bottom:10px}.quiz label{display:flex;align-items:center;gap:10px;font-size:12px;margin:8px 0;padding:11px;background:#f7f8f4;border-radius:5px;cursor:pointer}.quiz input{accent-color:var(--green)}.quiz-result{padding:15px;background:#eef3e7;border-radius:7px;color:var(--green);font-size:12px;line-height:1.9;margin-top:14px}.auth-dialog{width:430px;text-align:center;padding:40px}.close-auth{position:absolute;right:14px;top:14px}.auth-symbol{font-size:45px;color:var(--green)}.auth-dialog h2{font-size:26px;margin:15px 0}.auth-dialog p{color:var(--muted);font-size:13px;line-height:1.8}.auth-detail{font-size:11px!important;margin:15px 0 22px}.toast{position:fixed;bottom:25px;left:calc(50% + 100px);transform:translate(-50%,25px);background:var(--green-dark);border:1px solid #47745b;color:white;padding:14px 22px;border-radius:9px;z-index:20;opacity:0;transition:.25s;pointer-events:none;max-width:calc(100% - 40px);font-size:12px;line-height:1.6}.toast.show{opacity:1;transform:translate(-50%,0)}.skip-link{position:fixed;left:15px;top:-60px;z-index:100;background:white;color:var(--green);padding:15px}.skip-link:focus{top:15px}.noscript{position:fixed;bottom:0;background:#fff4c8;padding:20px;width:100%;z-index:20;text-align:center}
@media(min-width:1550px){.hero{min-height:340px}.hero-copy{padding:35px 40px}.hero h2{font-size:43px}.hero-art{width:45%}.art-card{width:220px;height:250px}.art-word{font-size:100px}.course-image{height:180px}.course-card h3{font-size:17px}.course-card p{font-size:12px}}
@media(max-width:1200px){.sidebar{width:215px;padding:27px 16px}.brand{font-size:19px}.brand small{font-size:5.5px}.app-shell{margin-left:215px}main{padding:28px 27px 0}.topbar{padding:0 27px}.course-grid{grid-template-columns:repeat(2,1fr)}.course-image{height:180px}.overview-grid{grid-template-columns:1fr 225px;gap:18px}.hero-art{width:38%}.art-card{width:155px;height:205px;padding:23px 17px}.art-word{font-size:70px}.art-spark{right:9px;font-size:45px}.floating-tag{font-size:8px;right:6px}.stat{padding:16px 12px;gap:10px}.stat-icon{width:31px;height:35px;font-size:19px}.stat div>span{font-size:9px}.stats{gap:10px}.local-label{display:none}.continue-card>img{width:75px;height:95px}.continue-card{gap:12px}.page-heading .date-chip{display:none}}
@media(max-width:900px){.sidebar{width:185px;padding:25px 12px}.brand{font-size:16px}.brand small{font-size:5px;letter-spacing:.7px}.nav-item{font-size:11px;gap:9px;padding:13px 10px}.app-shell{margin-left:185px}.sidebar-help{padding:15px 12px}.sidebar-bottom strong{max-width:105px}.overview-grid{grid-template-columns:1fr}.weekly-card{display:none}.stats{grid-template-columns:repeat(2,1fr)}.hero-copy{padding:27px}.hero h2{font-size:29px}.hero-art{width:34%}.art-card{width:135px;height:190px;padding:20px 14px}.art-word{font-size:60px}.art-card-label{font-size:5px}.floating-tag{bottom:25px;right:0;white-space:nowrap}.hero-footnote{font-size:8px}.hero-copy>p{font-size:10px}.hero-pill{font-size:6px}.topbar{height:75px}.google-button{font-size:10px;padding:10px}.header-actions{gap:10px}.topbar .eyebrow{font-size:6px}.topbar-title{font-size:11px}.app-footer{flex-direction:column}.player-layout{grid-template-columns:1fr}.lesson-list{max-height:230px}.resource-grid{grid-template-columns:1fr}}
@media(max-width:650px){.sidebar{position:relative;width:100%;padding:17px 18px 0;border-right:0;border-bottom:1px solid var(--border);gap:16px}.brand{font-size:20px}.brand small{font-size:6px}.workspace-label,.sidebar-help,.sidebar-bottom,.back-site{display:none}.sidebar nav{display:flex;gap:3px;overflow:auto;margin:0 -18px;padding:0 12px 8px}.nav-item{width:auto;font-size:10px;gap:5px;padding:10px 11px}.nav-item>span:first-child{font-size:16px;width:17px}.nav-item .count{display:none}.app-shell{margin-left:0}.topbar{padding:0 20px;height:64px}.topbar .eyebrow{font-size:6px}.google-button{font-size:10px;padding:9px 12px;gap:8px}.google-g{font-size:15px}main{padding:26px 20px 0}.page-heading{margin-bottom:22px}h1{font-size:28px;letter-spacing:-1px}.page-heading .eyebrow{font-size:6px}.page-heading p:last-child{font-size:11px;line-height:1.8;max-width:290px}.hero{min-height:285px}.hero-copy{padding:25px 21px}.hero h2{font-size:29px;margin-top:16px}.hero-art{width:29%;opacity:.95}.art-card{width:110px;height:165px;padding:17px 10px;transform:rotate(-9deg) translateX(15px)}.art-word{font-size:52px}.art-card-label{font-size:4.5px;letter-spacing:1px}.art-card p{font-size:8px}.art-arrow{font-size:18px;right:12px;bottom:13px}.art-spark{font-size:35px;right:0;top:17px}.floating-tag{display:none}.hero-copy>p{font-size:10px;max-width:235px}.hero-copy .button{font-size:10px;padding:12px 14px;gap:18px}.hero-footnote{font-size:7px;white-space:nowrap}.stats{margin:16px 0 28px;gap:10px}.stat{padding:17px 14px}.stat strong{font-size:23px}.stat div>span{font-size:10px}.course-grid{gap:13px}.course-image{height:130px}.course-card-body{padding:13px}.course-card h3{font-size:13px}.course-card p{font-size:10px}.course-meta{font-size:8px;flex-wrap:wrap;gap:5px}.course-category{font-size:6px}.course-card .button{font-size:9px}.course-tag{font-size:7px;left:9px;top:9px}.section-heading h2{font-size:19px}.section-heading .eyebrow{font-size:6px}.course-total{font-size:8px;max-width:90px;text-align:right}.filter{font-size:9px;padding:8px 10px}.filters{gap:3px}.catalog-toolbar{gap:12px}.search{width:100%}.search input{width:100%;font-size:12px}.continue-card>img{width:85px;height:95px}.continue-info h3{font-size:13px}.empty-learning{padding:20px}.empty-learning h3{font-size:14px}.empty-learning p{font-size:10px}.toast{left:50%;width:max-content}.course-dialog{padding:18px}.dialog-heading h2{font-size:21px}.lesson-actions .button{font-size:10px;padding:11px}.auth-dialog{padding:35px 25px}.achievement-card{padding:20px 15px}.achievement-card h3{font-size:13px}.app-footer{font-size:8px;line-height:1.8}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}
@media(max-width:450px){.hero-art{display:none}.hero{min-height:295px}.hero-copy{padding:26px}.hero h2{font-size:32px}.hero-copy>p{font-size:11px;max-width:none}.hero-footnote{font-size:8px}.hero-pill{font-size:7px}}
.lesson-reading{background:#f5f7ef;border:1px solid var(--border);border-radius:9px;padding:24px;margin-bottom:18px}.lesson-reading h3,.lesson-reading h2{font-size:20px;line-height:1.5;margin:12px 0}.lesson-reading>p,.practice-task p{font-size:13px;line-height:1.9;color:#59675a}.practice-task{background:#e7eddd;border-left:3px solid #849c69;border-radius:0 7px 7px 0;padding:16px;margin:19px 0}.practice-task strong{display:block;color:var(--green);font-size:12px;margin-bottom:7px}.lesson-reading .button{font-size:11px;white-space:normal}.guide-main{max-width:920px;margin:0 auto;padding:35px 24px 60px}.guide-header{margin:35px 0 20px}.guide-header h1{margin:12px 0}.guide-header>p:last-child{color:var(--muted);font-size:14px;line-height:1.8}.guide-intro{color:var(--green);font-size:12px;line-height:1.9;margin-bottom:25px}.guide-main>.button:last-of-type{margin-top:15px}

@media(max-width:650px){.brand{width:min(100%,310px);min-height:44px}}

/* Original KK Computers logo: preserve its proportions and readable tagline. */
.sidebar .brand{justify-content:center;width:100%;min-height:0}.sidebar .brand-logo{width:94px;height:auto;max-width:100%}
@media(max-width:650px){.sidebar .brand{justify-content:flex-start}.sidebar .brand-logo{width:68px}}

/* Workspace layout: consistent spacing, readable cards, and a compact identity block. */
.sidebar {
  padding: 22px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.sidebar > * { flex-shrink: 0; }
.sidebar .brand { flex-direction: column; gap: 12px; }
.sidebar .brand-logo { width: 76px; }
.brand-caption { text-align: center; letter-spacing: 0; }
.brand-caption strong { display: block; font-size: 14px; font-weight: 700; }
.brand-caption small { display: block; font-size: 10px; letter-spacing: .4px; color: var(--muted); margin-top: 5px; }
.workspace-label { margin: 26px 12px 12px; font-size: 10px; }
.nav-item { min-height: 44px; padding: 11px 12px; }
.sidebar-help { margin-top: 24px; padding: 15px; }
.sidebar-help .help-icon { font-size: 22px; }
.sidebar-help h3 { margin: 6px 0; font-size: 13px; }
.sidebar-help p { line-height: 1.65; }
.sidebar-help a { margin-top: 12px; }
.back-site { padding: 20px 0 16px; margin-top: auto; }
.sidebar-bottom { padding-top: 16px; }
.app-shell { min-width: 0; }
.topbar { min-height: 80px; height: auto; padding-top: 18px; padding-bottom: 18px; }
main { padding-top: 32px; }
.page-heading { margin-bottom: 28px; }
.page-heading p:last-child { font-size: 13px; line-height: 1.8; }
.hero-copy { padding: 32px 36px; min-width: 0; }
.hero-copy > p { font-size: 13px; }
.hero-footnote { line-height: 1.7; white-space: normal; }
.stats { margin: 24px 0 32px; }
.stat { min-width: 0; }
.stat div > span { font-size: 11px; line-height: 1.5; }
.overview-grid { align-items: stretch; margin-bottom: 36px; }
.continue-card:last-child { margin-bottom: 0; }
.continue-info h3 { line-height: 1.5; }
.weekly-card { display: flex; flex-direction: column; }
.weekly-card p { font-size: 12px; }
.milestone-bottom { margin-top: auto; padding-top: 24px; }
.section-heading h2 { font-size: 22px; line-height: 1.4; }
.catalog-toolbar { align-items: center; gap: 14px; }
.filters { gap: 6px; }
.filter { padding: 10px 13px; font-size: 12px; min-height: 40px; }
.search { min-height: 42px; flex: 1 1 190px; max-width: 280px; }
.search input { font-size: 12px; width: 100%; min-width: 0; }
.course-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; align-items: stretch; }
.course-card { min-width: 0; }
.course-image { height: auto; aspect-ratio: 16/9; background: #d7e2d4; overflow: hidden; }
.course-image img { display: block; object-fit: cover; width: 100%; height: 100%; transform: scale(1.01); transition: transform .35s ease; }
.course-card:hover .course-image img { transform: scale(1.05); }
.course-tag {
  font-size: 10px;
  padding: 7px 10px;
  backdrop-filter: blur(6px);
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 6px 16px rgba(16,40,28,.12);
}
.course-card-body { padding: 21px; }
.course-category { font-size: 9px; line-height: 1.6; }
.course-card h3 { font-size: 18px; margin: 9px 0 10px; }
.course-card p { font-size: 12px; line-height: 1.85; }
.course-meta { font-size: 11px; flex-wrap: wrap; margin: 20px 0 16px; row-gap: 8px; }
.course-card .button { font-size: 12px; padding: 12px 13px; min-height: 43px; }
.course-total { font-size: 12px; line-height: 1.6; }
.resource-card { display: flex; flex-direction: column; align-items: flex-start; }
.resource-card p { flex: 1; }
.resource-card .button { margin-top: auto; }
.achievement-card { display: flex; flex-direction: column; }
.achievement-card h3 { line-height: 1.6; }
.achievement-card p { flex: 1; }
.app-footer { font-size: 10px; line-height: 1.8; }
.player-layout > * { min-width: 0; }
@media (min-width: 651px) and (max-height: 820px) {
  .sidebar-help { display: none; }
  .back-site { padding-top: 24px; }
}
@media (max-width: 1200px) {
  .sidebar { padding: 22px 16px; }
  .course-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
  .catalog-toolbar { align-items: flex-start; flex-direction: column; }
  .search { width: 100%; max-width: none; flex: 0 1 auto; }
  .course-card-body { padding: 18px; }
  .course-card h3 { font-size: 17px; }
}
@media (max-width: 900px) {
  .sidebar { padding: 20px 12px; }
  .sidebar .brand-logo { width: 65px; }
  .workspace-label { margin-top: 22px; font-size: 9px; }
  .weekly-card { display: none; }
  .hero-art { display: none; }
  .hero { min-height: 0; }
  .hero-copy { padding: 28px; }
  .hero-copy > p { max-width: none; font-size: 12px; }
  .hero h2 { font-size: 32px; }
  .course-card-body { padding: 16px; }
  .course-card h3 { font-size: 16px; }
  .course-meta { font-size: 10px; }
  .course-tag { font-size: 9px; }
  .header-actions { flex-shrink: 0; }
}
@media (max-width: 650px) {
  .sidebar { padding: 14px 20px 0; overflow: visible; gap: 12px; }
  .sidebar .brand { flex-direction: row; gap: 15px; justify-content: flex-start; }
  .sidebar .brand-logo { width: 44px; }
  .brand-caption { text-align: left; }
  .brand-caption strong { font-size: 17px; }
  .brand-caption small { font-size: 11px; letter-spacing: .4px; }
  .sidebar nav { margin: 0 -20px; padding: 0 14px 10px; gap: 4px; }
  .nav-item { min-height: 42px; padding: 10px; font-size: 11px; margin: 0; flex-shrink: 0; }
  .topbar { min-height: 66px; padding: 12px 20px; gap: 12px; }
  .topbar .eyebrow { font-size: 7px; line-height: 1.6; letter-spacing: 1px; }
  .topbar-title { font-size: 12px; }
  .google-button { font-size: 11px; min-height: 40px; padding: 9px 11px; }
  main { padding: 24px 20px 0; }
  .page-heading p:last-child { font-size: 12px; max-width: none; }
  .page-heading .eyebrow { font-size: 8px; line-height: 1.8; }
  h1 { font-size: 28px; line-height: 1.35; }
  .hero-copy { padding: 26px; }
  .hero-pill { font-size: 7px; line-height: 1.8; letter-spacing: 1.4px; }
  .hero-copy > p { font-size: 12px; }
  .hero-footnote { font-size: 9px; }
  .hero-copy .button { font-size: 12px; min-height: 44px; }
  .stats { gap: 12px; margin: 20px 0 28px; }
  .stat { padding: 16px 12px; gap: 10px; }
  .stat div > span { font-size: 10px; }
  .stat strong { font-size: 23px; }
  .section-heading { gap: 12px; align-items: center; }
  .section-heading h2 { font-size: 20px; }
  .section-heading .eyebrow { font-size: 8px; line-height: 1.8; }
  .course-total { font-size: 10px; max-width: 105px; }
  .filters { gap: 5px; }
  .filter { font-size: 11px; padding: 9px 11px; }
  .course-grid { gap: 18px; }
  .course-category { font-size: 9px; }
  .course-card p { font-size: 12px; }
  .course-card .button { font-size: 12px; }
  .app-footer { font-size: 10px; margin-top: 30px; }
  .continue-card { padding: 15px; }
  .continue-info h3 { font-size: 14px; }
  .continue-info .text-button { font-size: 12px; min-height: 40px; }
}
@media (max-width: 580px) {
  .course-grid { grid-template-columns: minmax(0,1fr); }
  .course-card-body { padding: 20px; }
  .course-card h3 { font-size: 19px; }
  .course-card p { font-size: 13px; }
  .course-meta { font-size: 11px; }
  .course-tag { font-size: 10px; }
  .achievement-card h3 { font-size: 17px; }
  .achievement-card p { font-size: 12px; }
}
@media (max-width: 360px) {
  main { padding-left: 16px; padding-right: 16px; }
  .topbar { padding-left: 16px; padding-right: 16px; }
  .topbar .eyebrow { display: none; }
  .hero-copy { padding: 22px; }
  .hero h2 { font-size: 29px; }
  .hero-pill { letter-spacing: 1px; }
}
@media (max-width: 650px) {
  .sidebar nav {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    overflow: visible;
    gap: 3px;
    padding: 0 12px 10px;
  }
  .sidebar .nav-item {
    width: 100%;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 9px 3px;
    min-height: 62px;
    white-space: normal;
    text-align: center;
    font-size: 10px;
    line-height: 1.35;
  }
  .sidebar .nav-item > span:first-child { width: auto; font-size: 19px; }
}

/* Course workspace layout */
.course-dialog {
  width: min(1180px, calc(100% - 24px));
  padding: 0;
  max-height: 92dvh;
  overflow-y: auto;
  scrollbar-width: thin;
  border: 0;
  border-radius: 16px;
}
.course-dialog .dialog-top {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 0;
  padding: 14px 24px;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.dialog-top-copy { min-width: 0; }
.dialog-top-copy .eyebrow { display: block; margin-bottom: 4px; }
#dialog-course-title {
  display: block;
  font-family: Manrope, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(70vw, 720px);
}
#course-dialog-content { padding: 22px 24px 28px; }
.dialog-heading-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}
.course-dialog .dialog-heading h2 { font-size: 28px; line-height: 1.25; margin: 6px 0 0; letter-spacing: -.04em; }
.course-dialog .dialog-heading > p { max-width: 820px; font-size: 13px; line-height: 1.75; margin: 12px 0 14px; color: var(--muted); }
.course-overview-meta { display: flex; flex-wrap: wrap; gap: 8px; color: #61725e; font-size: 11px; line-height: 1.5; margin-bottom: 4px; }
.course-start-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 0 20px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.course-start-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.course-start-actions .button { min-height: 42px; }
.course-enrollment-status { color: var(--muted); font-size: 11px; line-height: 1.6; white-space: nowrap; }
.course-dialog .player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 22px;
  align-items: start;
}
.lesson-panel { min-width: 0; }
.lesson-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lesson-heading > span:last-child { font-size: 10px; color: var(--muted); white-space: nowrap; }
.course-dialog .lesson-title { font-size: 21px; line-height: 1.5; margin: 12px 0 18px; letter-spacing: -.35px; }
.course-dialog .lesson-reading { padding: 22px; margin-bottom: 18px; background: #f7f9f2; }
.course-dialog .lesson-reading > p { font-size: 14px; }
.course-dialog .practice-task { margin: 18px 0; padding: 17px; }
.course-dialog .practice-task p { font-size: 13px; }
.course-dialog .lesson-reading .button { min-height: 40px; }
.course-preview { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: #f7f9f2; margin-bottom: 18px; }
.course-preview img { width: 100%; height: 160px; object-fit: cover; display: block; }
.course-preview > div { padding: 19px 22px; }
.course-preview h4 { font: 700 16px/1.6 Manrope,sans-serif; margin: 0 0 8px; }
.course-preview p { font-size: 13px; line-height: 1.8; color: #61725e; }
.preview-hint { font-size: 11px; line-height: 1.8; color: var(--muted); }
.course-dialog .video-frame { margin-bottom: 18px; }
.strict-video { position: relative; background: #101611; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; }
.strict-video iframe, .strict-video #kk-strict-player { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-watch-hint { margin: -8px 0 18px; font-size: 12px; line-height: 1.7; color: #61725e; }
.quiz-dialog {
  width: min(720px, calc(100% - 28px));
  max-height: 90dvh;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(16, 36, 28, .28);
}
.quiz-dialog::backdrop { background: rgba(12, 28, 22, .55); }
.quiz-dialog .dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
#quiz-dialog-content { padding: 22px 24px 28px; overflow: auto; max-height: calc(90dvh - 70px); }
.quiz-dialog h2 { font-size: 24px; margin: 0 0 10px; }
.quiz-dialog-lead { font-size: 14px; line-height: 1.7; color: #61725e; margin-bottom: 8px; }
.quiz-dialog .quiz { margin: 18px 0 0; }
.quiz-dialog fieldset { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin: 0 0 14px; }
.quiz-dialog legend { padding: 0 6px; font-weight: 700; color: var(--green); }
.quiz-dialog label { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; font-size: 13px; line-height: 1.6; cursor: pointer; }
.quiz-dialog .quiz-result { margin-top: 14px; padding: 14px; border-radius: 10px; background: #f7f9f2; font-size: 13px; line-height: 1.8; }
.course-dialog .lesson-actions { align-items: center; margin: 0 0 22px; }
.course-dialog .lesson-actions .button { min-height: 42px; }
.lesson-notes { padding-top: 18px; border-top: 1px solid var(--border); }
.course-dialog .notes-input { min-height: 100px; }
.curriculum-panel {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  max-height: calc(92dvh - 120px);
  position: sticky;
  top: 68px;
}
.curriculum-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 12px; }
.curriculum-header h3 { font-size: 15px; line-height: 1.5; margin: 0; }
.curriculum-header > span { font-size: 12px; color: var(--green); font-weight: 700; }
.curriculum-hint { font-size: 11px; line-height: 1.7; margin: 10px 0 12px; color: var(--muted); }
.course-dialog .lesson-list {
  flex: 1 1 auto;
  min-height: 180px;
  max-height: none;
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}
.course-dialog .lesson-row { border: 0; border-radius: 6px; padding: 11px 10px; margin-bottom: 4px; font-size: 12px; gap: 10px; align-items: flex-start; }
.course-dialog .lesson-row > span:first-child { flex-shrink: 0; width: 24px; height: 24px; }
.course-dialog .lesson-row > span:nth-child(2) { flex: 1; min-width: 0; }
.course-dialog .lesson-row.selected { box-shadow: inset 3px 0 var(--green); }
.course-dialog .lesson-row.locked { opacity: .55; cursor: not-allowed; color: var(--muted); }
.course-dialog .lesson-row.locked:hover { background: transparent; }
.lesson-lock-label { font-size: 10px; color: var(--muted); white-space: nowrap; }
.lesson-current { color: var(--green); padding-top: 2px; }
#next-lesson:disabled, #go-quiz:disabled, #lesson-quiz:disabled { opacity: .5; cursor: not-allowed; }
.code-lab { margin: 0 0 20px; border: 1px solid var(--border); border-radius: 10px; background: #101611; color: #e8efe6; overflow: hidden; }
.code-lab-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; background: #163528; }
.code-lab-header h3 { margin: 0; font-size: 14px; color: #f3f7ef; }
.code-lab .notes-hint { margin: 0; padding: 0 16px 10px; color: #b7c4b5; }
.code-editor { display: block; width: 100%; min-height: 220px; border: 0; border-top: 1px solid #2a3d32; border-bottom: 1px solid #2a3d32; resize: vertical; padding: 14px 16px; background: #0d1410; color: #d7e6d4; font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.code-output, .web-preview { display: block; width: 100%; min-height: 140px; margin: 0; padding: 14px 16px; background: #0a100d; color: #cfe0cb; font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; border: 0; }
.web-preview { min-height: 260px; background: #fff; }
.curriculum-panel .notes-hint { border-top: 1px solid var(--border); padding-top: 12px; line-height: 1.8; font-size: 10px; }
.quiz-panel { margin-top: 26px; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.quiz-panel > summary { cursor: pointer; padding: 18px 20px; font-weight: 700; color: var(--green); font-size: 14px; background: #f7f9f2; line-height: 1.8; }
.quiz-panel > summary > span { font-weight: 400; font-size: 11px; margin-left: 12px; color: var(--muted); }
.quiz-panel .quiz { margin: 0; padding: 22px; }
@media (max-width: 900px) {
  .course-dialog .player-layout { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .course-dialog .lesson-list { max-height: 260px; }
  .course-dialog .dialog-heading h2 { font-size: 25px; }
}
@media (max-width: 650px) {
  .course-dialog { width: calc(100% - 20px); max-width: none; max-height: 94dvh; border-radius: 12px; }
  .course-dialog .dialog-top { padding: 12px 18px; }
  .course-dialog .dialog-top .eyebrow { font-size: 8px; letter-spacing: 1.3px; }
  #course-dialog-content { padding: 20px 18px; }
  .course-dialog .dialog-heading h2 { font-size: 24px; }
  .course-dialog .dialog-heading > p { font-size: 12px; }
  .course-overview-meta { font-size: 10px; gap: 8px 14px; }
  .course-start-bar { align-items: flex-start; gap: 12px; margin-bottom: 22px; padding: 16px 0 20px; }
  .course-start-actions { width: 100%; }
  .course-start-actions .button { flex: 1; font-size: 11px; padding: 11px 10px; }
  .course-dialog .lesson-title { font-size: 19px; }
  .course-dialog .lesson-reading { padding: 17px; }
  .course-dialog .lesson-reading > p { font-size: 13px; }
  .course-dialog .practice-task { padding: 14px; }
  .course-dialog .practice-task p { font-size: 12px; }
  .course-dialog .lesson-reading .button { width: 100%; font-size: 11px; }
  .course-dialog .lesson-actions .button { flex: 1 1 140px; }
  .course-preview img { height: 130px; }
  .course-preview > div { padding: 17px; }
  .curriculum-panel { padding: 16px; }
  .quiz-panel > summary { padding: 15px; }
  .quiz-panel > summary > span { display: block; margin: 3px 0 0 16px; }
  .quiz-panel .quiz { padding: 18px 15px; }
}
body:has(dialog[open]) { overflow: hidden; }
@media (min-width: 901px) {
  .course-dialog .lesson-list { max-height: 320px; }
}

/* Professional LMS finish: atmosphere, trust strip, richer cards & workspace */
:root {
  --green: #164c39;
  --green-dark: #0f3428;
  --ink: #18241e;
  --muted: #6a756e;
  --border: #dfe5dc;
  --bg: #f3f5f0;
  --surface: #ffffff;
  --mint: #e7f0e8;
  --cream: #efe6c8;
  --shadow: 0 18px 50px rgba(16, 44, 32, .08);
}
body {
  background:
    radial-gradient(1200px 500px at 10% -10%, #e7efe4 0%, transparent 55%),
    radial-gradient(900px 420px at 100% 0%, #e9e4d4 0%, transparent 50%),
    var(--bg);
  color: var(--ink);
}
.sidebar {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcf9 100%);
  box-shadow: 1px 0 0 var(--border);
}
.brand-caption strong { letter-spacing: -.02em; }
.nav-item.active {
  background: linear-gradient(90deg, #e8f1e8, #f3f7f1);
  box-shadow: inset 3px 0 0 var(--green);
}
.topbar {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
}
.button {
  border-radius: 8px;
  letter-spacing: .01em;
}
.button.primary {
  box-shadow: 0 8px 20px rgba(22, 76, 57, .18);
}
.hero {
  background:
    linear-gradient(135deg, #103c2e 0%, #164c39 48%, #1d5c45 100%);
  box-shadow: var(--shadow);
}
.hero h2 { font-weight: 700; letter-spacing: -.04em; }
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 8px;
}
.trust-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 16px 15px;
  min-height: 86px;
}
.trust-item strong {
  display: block;
  font-family: Manrope, sans-serif;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--green-dark);
}
.trust-item span {
  display: block;
  font-size: 11px;
  line-height: 1.65;
  color: var(--muted);
}
.stat, .course-card, .continue-card, .resource-card, .achievement-card, .weekly-card, .curriculum-panel {
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 10px 30px rgba(20, 48, 34, .04);
}
.course-card {
  border-radius: 12px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(20, 48, 34, .1);
}
.course-card .feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}
.feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  color: var(--green-dark);
  background: #eef4ec;
  border: 1px solid #d7e3d4;
  border-radius: 999px;
  padding: 5px 9px;
}
.course-careers, .course-careers-line {
  font-size: 12px;
  line-height: 1.65;
  color: #4f5d52;
  margin: 0 0 12px;
}
.course-careers strong, .course-careers-line strong { color: var(--green-dark); }
.course-dialog {
  width: min(1120px, calc(100% - 28px));
  border: 0;
  border-radius: 16px;
  box-shadow: 0 30px 90px rgba(8, 28, 20, .35);
}
.course-dialog .dialog-top {
  background: linear-gradient(180deg, #ffffff, #f8faf6);
}
.course-dialog .dialog-heading h2 {
  letter-spacing: -.045em;
}
.course-overview-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f2f5ef;
  border: 1px solid var(--border);
}
.lesson-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}
.strict-video {
  border: 1px solid #20362c;
  box-shadow: 0 16px 40px rgba(0,0,0,.22);
}
.code-lab {
  border-radius: 12px;
  box-shadow: 0 14px 36px rgba(8, 20, 14, .22);
}
.quiz-dialog {
  border-radius: 16px;
}
.quiz-dialog fieldset {
  background: #fbfcf9;
  transition: border-color .15s ease, background .15s ease;
}
.quiz-dialog fieldset:focus-within {
  border-color: #9bb89a;
  background: #fff;
}
.toast {
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(8, 28, 20, .28);
}
@media (max-width: 900px) {
  .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-dialog .player-layout { grid-template-columns: 1fr; }
  .curriculum-panel { position: static; max-height: none; }
  .course-dialog .lesson-list { max-height: 280px; }
  .dialog-heading-top { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 650px) {
  .trust-strip { grid-template-columns: 1fr; }
  .lesson-panel { padding: 14px; }
}

/* ── Professional redesign 2026-10-19i ── */
:root {
  --green: #0f3d30;
  --green-mid: #1a5c47;
  --green-dark: #0a2a21;
  --ink: #141a17;
  --muted: #5f6b64;
  --border: #e2e7e1;
  --bg: #eef1ec;
  --surface: #ffffff;
  --mint: #e4efe8;
  --cream: #e8dfc4;
  --brass: #9a7b45;
  --shadow: 0 20px 48px rgba(10, 36, 28, .07);
  --radius: 14px;
}
body {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  background:
    linear-gradient(180deg, #f7f8f5 0%, var(--bg) 40%, #e8ece5 100%);
  color: var(--ink);
}
h1, h2, h3 { font-family: Manrope, sans-serif; }

.sidebar {
  width: 248px;
  background: linear-gradient(180deg, #0d3328 0%, #0a2820 100%);
  border-right: 0;
  color: #d7e4dc;
  box-shadow: none;
}
.sidebar .brand-caption strong { color: #f4f7f4; }
.sidebar .brand-caption small { color: #9bb5a8; }
.workspace-label { color: #7f9a8c; }
.nav-item {
  color: #b7c9bf;
  border-radius: 10px;
  transition: background .18s ease, color .18s ease;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: #eef5f0; }
.nav-item.active {
  background: rgba(232, 223, 196, .14);
  color: #f3ead0;
  box-shadow: inset 3px 0 0 var(--cream);
  font-weight: 700;
}
.nav-item .count {
  background: rgba(255,255,255,.1);
  color: #e8f0ea;
}
.sidebar-help {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  color: #c5d6cc;
}
.sidebar-help h3 { color: #f2f6f3; }
.sidebar-help p { color: #9db0a6; }
.sidebar-help a { color: var(--cream); }
.help-icon { color: var(--cream); }
.back-site { color: #8aa295; }
.sidebar-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
}
.sidebar-bottom strong { color: #f2f6f3; }
.sidebar-bottom small { color: #8aa295; }
.avatar {
  background: var(--cream);
  color: var(--green-dark);
}

.app-shell { margin-left: 248px; }
.topbar {
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 231, 225, .9);
  min-height: 72px;
  padding: 14px 40px;
}
.topbar .eyebrow { color: var(--brass); letter-spacing: 1.6px; }
.topbar-title { font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.button {
  border-radius: 10px;
  font-weight: 600;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.button.primary {
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 10px 24px rgba(15, 61, 48, .22);
}
.button.cream {
  background: var(--cream);
  border-color: transparent;
  color: var(--green-dark);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}
.button.cream:hover { background: #f1e8cd; transform: translateY(-1px); }
.google-button {
  border-color: var(--border);
  background: #fff;
}

main { padding: 28px 40px 0; max-width: 1380px; }
.page-heading { margin-bottom: 22px; }
.page-heading .eyebrow { color: var(--brass); }
h1 {
  font-size: clamp(28px, 2.4vw, 38px);
  letter-spacing: -.045em;
  line-height: 1.15;
}
h1 > span { color: var(--brass); }
.page-heading p:last-child {
  font-size: 14px;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.7;
}
.date-chip {
  border-radius: 999px;
  border-color: var(--border);
  background: #fff;
  font-size: 11px;
  padding: 10px 14px;
}

.hero {
  min-height: 0;
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 0;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(680px 320px at 85% 20%, rgba(232,223,196,.16), transparent 55%),
    linear-gradient(135deg, #0a2a21 0%, #0f3d30 45%, #1a5c47 100%);
  box-shadow: var(--shadow);
  color: #f4f7f4;
}
.hero-copy {
  padding: 42px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-brand {
  font-family: Manrope, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--cream);
  margin: 0 0 16px;
}
.hero h2 {
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.12;
  letter-spacing: -.05em;
  font-weight: 800;
  color: #fbfcf8;
  margin: 0 0 14px;
}
.hero-copy > p {
  color: #c5d6cc;
  font-size: 15px;
  line-height: 1.7;
  max-width: 440px;
  margin: 0 0 26px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-note {
  font-size: 12px;
  color: #a8bfb4;
  letter-spacing: .02em;
}
.hero-panel {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  border-left: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.14);
}
.hero-metric {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 28px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.hero-metric:last-child { border-bottom: 0; }
.hero-metric strong {
  font-family: Manrope, sans-serif;
  font-size: 28px;
  letter-spacing: -.04em;
  color: #f7f3e6;
}
.hero-metric span {
  margin-top: 4px;
  font-size: 12px;
  color: #a8bfb4;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 28px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 16px;
  box-shadow: 0 8px 24px rgba(14, 40, 30, .03);
}
.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 18px;
}
.mint { background: #e4efe8; color: var(--green); }
.sand { background: #efe8d4; color: #7a6435; }
.slate { background: #e8ecea; color: #3d4d46; }
.brass { background: #f0e8d6; color: var(--brass); }
.stat strong {
  font-size: 24px;
  letter-spacing: -.03em;
}
.stat div > span { font-size: 12px; color: var(--muted); }

.overview-grid {
  grid-template-columns: 1fr 280px;
  gap: 20px;
  margin-bottom: 40px;
}
.section-heading h2 {
  font-size: 22px;
  letter-spacing: -.03em;
}
.section-heading .eyebrow { color: var(--brass); }
.continue-card {
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 22px rgba(14, 40, 30, .03);
  padding: 16px;
}
.continue-card > img {
  width: 112px;
  height: 84px;
  border-radius: 10px;
}
.empty-learning {
  border-radius: 14px;
  border: 1px dashed #c5d0c5;
  background: #fafbf8;
}
.weekly-card {
  background: linear-gradient(160deg, #f4efe3 0%, #ebe4d2 100%);
  border: 1px solid #e0d7c0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: none;
}
.weekly-card .eyebrow { color: var(--brass); }
.weekly-card h3 {
  font-size: 22px;
  letter-spacing: -.03em;
  margin: 10px 0 14px;
  color: var(--green-dark);
}
.weekly-card p {
  max-width: none;
  color: #6a6250;
  font-size: 13px;
  line-height: 1.7;
}
.milestone-bottom { color: var(--green); font-size: 12px; }

#catalog-section { margin-top: 8px; }
.catalog-toolbar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 22px;
  box-shadow: 0 8px 22px rgba(14, 40, 30, .03);
}
.filters { gap: 4px; }
.filter {
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid transparent;
}
.filter.active {
  background: var(--green);
  color: #fff;
  box-shadow: 0 6px 16px rgba(15, 61, 48, .2);
}
.filter:hover:not(.active) {
  background: var(--mint);
  color: var(--green);
}
.search {
  border-radius: 999px;
  border-color: var(--border);
  background: #f7f9f5;
  max-width: 240px;
}
.search:focus-within {
  outline: 2px solid rgba(15, 61, 48, .25);
  background: #fff;
}

.course-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.course-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(14, 40, 30, .04);
  overflow: hidden;
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(14, 40, 30, .1);
  border-color: #cfd9d1;
}
.course-image {
  aspect-ratio: 16 / 10;
  background: #d5e0d8;
}
.course-tag {
  top: 14px;
  left: 14px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 7px 11px;
  background: rgba(255,255,255,.95);
  color: var(--green-dark);
  border: 0;
  box-shadow: 0 8px 18px rgba(10, 30, 22, .14);
}
.course-card-body { padding: 20px 20px 18px; }
.course-category {
  color: var(--brass);
  font-size: 10px;
  letter-spacing: 1.4px;
}
.course-card h3 {
  font-size: 18px;
  letter-spacing: -.03em;
  line-height: 1.3;
  margin: 8px 0 8px;
  color: var(--ink);
}
.course-card p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}
.feature-chip {
  border-radius: 8px;
  background: #f2f5f1;
  border-color: transparent;
  color: #3f5248;
  font-size: 10px;
  padding: 5px 8px;
}
.course-careers {
  font-size: 12px;
  color: #4d5c54;
}
.course-meta {
  color: #66756c;
  font-size: 12px;
  margin: 14px 0 14px;
}
.course-card .button {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  border-radius: 10px;
  font-size: 13px;
  min-height: 44px;
  justify-content: space-between;
}
.course-card .button:hover {
  background: var(--green-mid);
  transform: none;
}

.resource-card, .achievement-card {
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(14, 40, 30, .03);
}
.achievement-card.earned {
  background: linear-gradient(160deg, #e8f1e8, #f4f8f3);
  border-color: #bfd4c4;
}
.app-footer {
  border-top: 1px solid var(--border);
  margin-top: 48px;
  padding: 28px 0 36px;
  font-size: 12px;
}

.course-dialog, .quiz-dialog { border-radius: 18px; }
.course-dialog .dialog-top {
  background: linear-gradient(180deg, #fff, #f6f8f4);
}
.toast { background: var(--green-dark); }

@media (max-width: 1200px) {
  .sidebar { width: 220px; }
  .app-shell { margin-left: 220px; }
  .hero { grid-template-columns: 1.3fr .85fr; }
  .hero-copy { padding: 32px; }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sidebar { width: 196px; }
  .app-shell { margin-left: 196px; }
  .hero { grid-template-columns: 1fr; }
  .hero-panel { grid-template-rows: none; grid-template-columns: repeat(3, 1fr); border-left: 0; border-top: 1px solid rgba(255,255,255,.1); }
  .hero-metric { border-bottom: 0; border-right: 1px solid rgba(255,255,255,.08); padding: 18px; }
  .hero-metric:last-child { border-right: 0; }
  .weekly-card { display: none; }
  .overview-grid { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .sidebar {
    width: 100%;
    background: #fff;
    color: var(--ink);
    box-shadow: none;
    border-bottom: 1px solid var(--border);
  }
  .sidebar .brand-caption strong { color: var(--ink); }
  .sidebar .brand-caption small { color: var(--muted); }
  .nav-item { color: var(--muted); }
  .nav-item.active {
    background: var(--mint);
    color: var(--green);
    box-shadow: inset 0 3px 0 var(--green);
  }
  .app-shell { margin-left: 0; }
  main { padding: 22px 18px 0; }
  .topbar { padding: 12px 18px; }
  .hero-copy { padding: 28px 22px; }
  .hero h2 { font-size: 30px; }
  .hero-panel { grid-template-columns: 1fr; }
  .hero-metric { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .hero-metric:last-child { border-bottom: 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-toolbar { padding: 10px; }
  .search { max-width: none; width: 100%; }
  .course-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .course-card, .button { transition: none !important; }
}

/* Nav + heading polish */
.sidebar .nav-item.active {
  background: rgba(232, 223, 196, .16) !important;
  color: #f6edd6 !important;
  box-shadow: inset 3px 0 0 #e8dfc4;
}
.page-heading > div { min-width: 0; flex: 1; }
.page-heading h1 {
  overflow-wrap: anywhere;
  white-space: normal;
}
.hero h2 { overflow-wrap: anywhere; }
@media (max-width: 1100px) {
  .page-heading .date-chip { display: none; }
}


/* ── Light professional redesign 2026-10-19k ── */
:root {
  --green: #1f6b52;
  --green-mid: #258562;
  --green-dark: #164c3a;
  --ink: #1c2420;
  --muted: #66736c;
  --border: #e6ebe7;
  --bg: #f5f7f6;
  --surface: #ffffff;
  --mint: #e8f3ee;
  --cream: #f3efe4;
  --brass: #8a7348;
  --shadow: 0 1px 2px rgba(20,40,30,.04), 0 12px 32px rgba(20,40,30,.05);
  --radius: 12px;
}
body {
  font-family: Inter, "Plus Jakarta Sans", sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
}
h1, h2, h3 { font-family: Manrope, sans-serif; }

/* Light sidebar */
.sidebar {
  width: 240px;
  background: #fff;
  border-right: 1px solid var(--border);
  color: var(--ink);
  box-shadow: none;
}
.sidebar .brand-caption strong { color: var(--ink); letter-spacing: -.02em; }
.sidebar .brand-caption small { color: var(--muted); }
.workspace-label {
  color: #8a958e;
  font-size: 10px;
  letter-spacing: 1.5px;
  margin: 28px 10px 10px;
}
.nav-item {
  color: #5d6a63;
  border-radius: 10px;
  font-weight: 500;
}
.nav-item:hover { background: #f3f6f4; color: var(--ink); }
.sidebar .nav-item.active,
.nav-item.active {
  background: var(--mint) !important;
  color: var(--green-dark) !important;
  box-shadow: none !important;
  font-weight: 700;
}
.nav-item .count {
  background: #eef2ef;
  color: var(--green-dark);
}
.sidebar-help {
  background: #f7f9f7;
  border: 1px solid var(--border);
  color: var(--ink);
}
.sidebar-help h3 { color: var(--ink); }
.sidebar-help p { color: var(--muted); }
.sidebar-help a { color: var(--green); }
.help-icon { color: var(--green); }
.back-site { color: var(--muted); }
.sidebar-bottom {
  border-top: 1px solid var(--border);
}
.sidebar-bottom strong { color: var(--ink); }
.sidebar-bottom small { color: var(--muted); }
.avatar {
  background: var(--mint);
  color: var(--green-dark);
  font-size: 12px;
}

.app-shell { margin-left: 240px; }
.topbar {
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  min-height: 64px;
  padding: 12px 36px;
}
.topbar .eyebrow {
  color: var(--muted);
  letter-spacing: 1.2px;
  font-size: 9px;
}
.topbar-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.local-label {
  display: none;
}
.button {
  border-radius: 10px;
  font-weight: 600;
}
.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: 0 8px 18px rgba(31, 107, 82, .18);
}
.button.primary:hover { background: var(--green-mid); }
.button.subtle {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--ink);
}
.button.subtle:hover { background: #f3f6f4; }
.button.cream {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

main {
  padding: 28px 36px 0;
  max-width: 1200px;
}
.page-heading { margin-bottom: 20px; }
.page-heading .eyebrow {
  color: var(--green);
  letter-spacing: 1.4px;
}
h1 {
  font-size: clamp(26px, 2.2vw, 34px);
  letter-spacing: -.04em;
  line-height: 1.2;
}
h1 > span { color: var(--green); }
.page-heading p:last-child {
  font-size: 14px;
  color: var(--muted);
  max-width: 520px;
}
.date-chip {
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}

/* Compact welcome strip — replaces heavy green hero */
.hero { display: none !important; }
.welcome-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.welcome-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green);
}
.welcome-copy h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -.035em;
  line-height: 1.2;
  color: var(--ink);
}
.welcome-copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 480px;
}
.welcome-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.welcome-actions .button { min-height: 44px; padding: 11px 18px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 28px;
}
.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: none;
  gap: 12px;
}
.stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  font-family: Manrope, sans-serif;
}
.mint { background: var(--mint); color: var(--green-dark); }
.sand { background: #f3efe4; color: #7a6435; }
.slate { background: #eef1ef; color: #4a5850; }
.brass { background: #f0ebe0; color: var(--brass); }
.stat strong {
  font-size: 22px;
  letter-spacing: -.03em;
}
.stat div > span {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.overview-grid {
  grid-template-columns: 1fr 260px;
  gap: 18px;
  margin-bottom: 36px;
}
.section-heading h2 {
  font-size: 20px;
  letter-spacing: -.025em;
}
.section-heading .eyebrow { color: var(--green); }
.text-button { color: var(--green); font-weight: 600; }
.continue-card {
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: none;
  background: #fff;
}
.continue-card > img {
  width: 108px;
  height: 78px;
  border-radius: 8px;
}
.empty-learning {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: none;
}
.weekly-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  box-shadow: none;
}
.weekly-card .eyebrow { color: var(--green); }
.weekly-card h3 {
  font-size: 20px;
  letter-spacing: -.03em;
  margin: 8px 0 12px;
  color: var(--ink);
}
.weekly-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  max-width: none;
}
.milestone-bottom { color: var(--green); font-size: 12px; }

.catalog-toolbar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 20px;
  box-shadow: none;
}
.filter {
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.filter.active {
  background: var(--green);
  color: #fff;
  box-shadow: none;
}
.filter:hover:not(.active) {
  background: var(--mint);
  color: var(--green-dark);
}
.search {
  border-radius: 8px;
  background: #f7f9f7;
  max-width: 220px;
}

.course-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.course-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}
.course-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #d5ddd8;
}
.course-image { aspect-ratio: 16 / 10; }
.course-tag {
  border-radius: 6px;
  font-size: 10px;
  background: rgba(255,255,255,.96);
  color: var(--green-dark);
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.course-category { color: var(--green); }
.course-card h3 {
  font-size: 17px;
  letter-spacing: -.025em;
}
.course-card p { font-size: 13px; }
.feature-chip {
  background: #f3f6f4;
  border: 0;
  border-radius: 6px;
  color: #4a5850;
}
.course-card .button {
  background: #fff;
  color: var(--green-dark);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.course-card .button:hover {
  background: var(--mint);
  border-color: #c5d9cf;
}

.resource-card, .achievement-card {
  border-radius: 12px;
  box-shadow: none;
}
.achievement-card.earned {
  background: var(--mint);
  border-color: #c5d9cf;
}
.app-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 24px 0 32px;
}

.course-dialog, .quiz-dialog { border-radius: 14px; }
.toast { background: var(--green-dark); }

@media (max-width: 1200px) {
  .sidebar { width: 220px; }
  .app-shell { margin-left: 220px; }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sidebar { width: 200px; }
  .app-shell { margin-left: 200px; }
  .welcome-bar { flex-direction: column; align-items: flex-start; }
  .weekly-card { display: none; }
  .overview-grid { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .sidebar {
    width: 100%;
    background: #fff;
  }
  .app-shell { margin-left: 0; }
  main { padding: 20px 16px 0; }
  .topbar { padding: 10px 16px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .course-grid { grid-template-columns: 1fr; }
  .search { max-width: none; width: 100%; }
  .welcome-actions { width: 100%; }
  .welcome-actions .button { flex: 1; }
}

/* Heading safety — never clip titles */
.page-heading, .welcome-bar, .welcome-copy, .welcome-copy h2, .page-heading h1 {
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
}
.page-heading {
  align-items: flex-start;
  gap: 16px;
}
.date-chip { flex-shrink: 0; }
.welcome-bar {
  align-items: flex-start;
}
.welcome-actions { margin-top: 4px; }
