:root{--background:#f7f8fa;--foreground:#172a2b;--card:#fff;--card-foreground:#172a2b;--popover:#fff;--popover-foreground:#172a2b;--primary:#08645b;--primary-foreground:#fff;--secondary:#eaf2ef;--secondary-foreground:#184e47;--muted:#f2f4f5;--muted-foreground:#677577;--accent:#eaf2ef;--accent-foreground:#08645b;--destructive:#be3340;--border:#e1e7e6;--input:#d9e1df;--ring:#208377;--radius:.65rem}
*{box-sizing:border-box}body{margin:0;background:var(--background);color:var(--foreground);font-family:Arial,Helvetica,sans-serif;font-size:16px}button,a,input,textarea{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.65}button:focus-visible,a:focus-visible{outline:3px solid #36ad99;outline-offset:4px}button{font:inherit}a{color:inherit;text-decoration:none}.topbar{height:84px;background:white;border-bottom:1px solid var(--border);padding:0 4.3%;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;font-size:25px;letter-spacing:-1px;font-weight:800}.brandmark{margin-right:11px;background:#0a645b;color:white;width:39px;height:42px;border-radius:11px;display:grid;place-items:center;transform:rotate(-5deg)}.brandlight{font-weight:400}.by{font-size:10px;letter-spacing:1.5px;border-left:1px solid #dce4e1;margin-left:18px;padding-left:18px;color:#71807c}.header-right{display:flex;gap:28px;align-items:center}.learning-label{font-size:13px;color:#72807e}.avatar{width:37px;height:37px;background:#e8efec;border:1px solid #d8e5df;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:bold}.subnav{padding:12px 4.3%;background:white;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center}.view-tabs{background:#f0f3f2!important;height:42px!important;padding:4px!important;gap:4px!important}.view-tabs [data-slot=tabs-trigger]{font-size:14px;padding:7px 15px;gap:8px;border-radius:6px}.view-tabs [data-state=active]{background:white!important;color:#076559!important;box-shadow:0 1px 4px #10282015!important}.small{font-size:12px;color:#768480;letter-spacing:.7px}.workspace{display:grid;grid-template-columns:265px minmax(0,1fr);max-width:1500px;margin:auto;min-height:calc(100vh - 151px)}.sidebar{padding:34px 22px 20px 28px;border-right:1px solid var(--border);background:#fcfdfd;display:flex;flex-direction:column}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.7px;color:#81908a}h1,h2,h3,p{margin:0}.sidebar h2{font-size:20px;margin:13px 0 25px}.sidebar h2 span{font-size:11px;font-weight:normal;margin-left:48px;background:#edf1ef;padding:4px 7px;border-radius:5px}.course-button{border:1px solid transparent;background:transparent;display:flex;align-items:center;gap:10px;width:100%;padding:14px 11px;text-align:left;border-radius:9px;font-size:14px}.course-button.selected{background:#e8f2ee;border-color:#d8e8e1;color:#076158}.course-button span{flex:1;font-weight:600}.course-button small{display:block;font-size:12px;font-weight:400;color:#6e847d;margin-top:8px}.sidebar-tip{margin-top:70px;padding:23px 17px;background:#f1f5f1;border:1px solid #e3eae3;border-radius:10px;color:#49695e}.sidebar-tip h3{font-size:15px;margin:13px 0 9px}.sidebar-tip p{font-size:13px;line-height:1.8;color:#7b8980}.sidebar-foot{margin-top:auto;padding-top:80px;font-size:10px;letter-spacing:1.2px;color:#8f9c96;display:flex;justify-content:space-between}.study{padding:28px 5.3% 20px;max-width:1100px;width:100%;margin:0 auto}.breadcrumb{display:flex;align-items:center;gap:10px;font-size:12px;color:#889590;margin-bottom:30px}.course-tag{display:inline-block;background:#e5efea;color:#2c6a57;font-size:10px;font-weight:bold;letter-spacing:1.3px;border-radius:4px;padding:6px 9px}h1{font-size:34px;letter-spacing:-1.2px;line-height:1.25;margin:13px 0 10px;font-weight:700}.course-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.course-heading p{font-size:14px;color:#71807d;line-height:1.6}.course-symbol{width:76px;height:76px;display:grid;place-items:center;background:#e9efed;border:1px solid #dae5de;border-radius:20px;color:#2c6e60;transform:rotate(-7deg);flex-shrink:0}.meta{display:flex;gap:23px;flex-wrap:wrap;margin:23px 0 27px;font-size:12px;color:#72807c}.meta span{display:flex;gap:7px;align-items:center}.race-card{background:#113f38;color:white;padding:24px 27px 18px;border-radius:12px;overflow:hidden}.race-top{display:flex;justify-content:space-between;gap:10px;align-items:center}.race-card .eyebrow{color:#b4d9ae;font-size:9px}.race-card h3{font-size:19px;letter-spacing:-.4px;margin-top:9px}.lap{font-size:10px;letter-spacing:1px;background:#ffffff12;border:1px solid #ffffff1c;padding:8px 10px;border-radius:6px;white-space:nowrap}.road{height:45px;margin:16px 0 9px;position:relative;border-bottom:2px dashed #65928780}.motorcycle{position:absolute;font-size:36px;bottom:-5px;transform:scaleX(-1);transition:left .8s cubic-bezier(.2,.8,.2,1)}.finish{position:absolute;right:0;bottom:8px;color:#d4e9db}.race-caption{display:flex;justify-content:space-between;font-size:8px;letter-spacing:1.6px;color:#98b8ad}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:32px 0 18px}.section-title h2{font-size:20px;font-weight:700;letter-spacing:-.4px}.section-title>span{font-size:12px;color:#7e8b85}.chapter{border:1px solid #dfe6e2;background:white;border-radius:11px;overflow:hidden;margin-bottom:17px}.chapter-heading{display:flex;align-items:center;gap:13px;padding:19px 21px;background:#fcfdfc}.chapter-number{width:40px;height:42px;display:grid;place-items:center;border:1px solid #dde6e1;border-radius:8px;font-size:14px;color:#456c5d}.chapter-heading small{font-size:8px;letter-spacing:1.5px;color:#86938b;font-weight:700}.chapter-heading h3{font-size:16px;font-weight:600;margin-top:4px}.topic-count{margin-left:auto;font-size:11px;color:#869188}.topic{border-top:1px solid #eaf0ec}.topic-toggle{width:100%;border:0;background:white;display:flex;align-items:center;gap:12px;text-align:left;padding:17px 22px;font-size:14px}.topic-toggle>span:nth-child(2){flex:1}.topic-toggle small{font-size:11px;color:#94a097}.topic-dot{width:6px;height:6px;border:1px solid #a2b5aa;border-radius:50%}.expand-icon{width:25px;height:25px;display:grid;place-items:center;border:1px solid #e1e8e2;border-radius:6px;color:#74887c}.expanded .topic-toggle{background:#f1f7f3;color:#176649;font-weight:600}.expanded .expand-icon{background:#10634e;color:white;border-color:#10634e}.expanded .topic-dot{background:#10634e;border-color:#10634e}.lesson-content{padding:25px 40px 20px;animation:reveal .35s ease-out}.lesson-kicker{font-size:9px;letter-spacing:1.5px;color:#81988c;font-weight:700}.lesson-content h3{font-size:22px;font-weight:600;letter-spacing:-.5px;margin:11px 0 17px}.content-text{white-space:pre-wrap;line-height:1.85;color:#5d7067;font-size:16px}.lesson-content img{width:100%;max-height:520px;object-fit:contain;border-radius:9px;background:#f4f6f5}.lesson-content figure{margin:25px 0}.lesson-content figcaption{font-size:13px;color:#708477;text-align:center;margin-top:9px}.lesson-bottom{border-top:1px solid #e7ece8;padding-top:17px;margin-top:24px;display:flex;justify-content:space-between;gap:20px;align-items:center}.lesson-bottom span{font-size:11px;color:#8a9a8e;display:flex;gap:6px;align-items:center}.lesson-bottom button{font-size:12px;display:flex;gap:8px;color:#12644b;align-items:center;border:0;background:transparent;font-weight:bold}.study-footer{display:flex;justify-content:space-between;padding:20px 0;font-size:11px;color:#93a095}.admin-main{max-width:1180px;margin:auto;padding:32px 40px 60px}.admin-intro{color:#708078;margin-bottom:30px;line-height:1.6}.admin-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px}.panel{background:white;border:1px solid #e0e7e2;border-radius:12px;padding:26px}.panel h2{font-size:20px;font-weight:600}.panel p{margin:12px 0 20px;line-height:1.7;color:#748379;font-size:14px}.editor .section-title{margin:0 0 24px}.editor label{display:flex;flex-direction:column;gap:9px;font-size:14px;font-weight:600;margin-bottom:20px}.editor input,.editor textarea{font-family:inherit;font-size:16px;line-height:1.6;font-weight:400;border:1px solid #d7e1da;border-radius:7px;padding:10px 12px;background:#fcfdfc;outline-color:#21846a;width:100%;color:#284d3d}.editor textarea{resize:vertical}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}.editor .upload{border:1px dashed #9bb6a7;border-radius:9px;align-items:center;padding:24px;color:#4e7963;background:#f8fbf8;font-size:14px}.upload span{font-size:12px;color:#8b9b90}.upload input{font-size:13px;max-width:300px}.primary{display:inline-flex;gap:10px;align-items:center;justify-content:center;background:#11614c;color:white;padding:12px 18px;border:0;border-radius:7px;font-size:14px;font-weight:600}.form-actions{display:flex;justify-content:flex-end;gap:20px;align-items:center}.published{align-self:start}.published>button{display:flex;gap:10px;align-items:center;border:0;border-top:1px solid #e5eae6;background:white;width:100%;text-align:left;padding:17px 0;font-size:14px}.published button span{flex:1}.published small{display:block;color:#84948a;font-size:12px;line-height:1.6;margin-top:6px}.publish-note{display:flex;gap:10px;font-size:12px;color:#6e8b79;background:#eff6f0;padding:14px;border-radius:7px;margin-top:25px;line-height:1.7}.publish-note svg{flex-shrink:0;margin-top:3px}.empty{text-align:center;color:#82988a;padding:35px 5px}.empty svg{margin:auto}.error{padding:14px;background:#fff1e9;border:1px solid #f1c8b4;border-radius:8px;font-size:14px;margin-top:18px;color:#9a5638}.error button{text-decoration:underline;margin-left:8px}.error small{display:block;margin-top:6px}@keyframes reveal{from{opacity:0;transform:translateX(-12px)}to{opacity:1;transform:translateX(0)}}@media(min-width:1450px){.study{padding-left:65px;padding-right:65px}}@media(max-width:900px){.workspace{grid-template-columns:220px 1fr}.sidebar{padding:28px 14px}.study{padding:25px}.course-symbol{display:none}.admin-grid{grid-template-columns:1fr}.published{order:2}.subnav>.small{display:none}h1{font-size:29px}.lesson-content{padding:23px}.race-card{padding:21px}.lesson-bottom>span{display:none}}@media(max-width:640px){.topbar{height:70px;padding:0 20px}.brand{font-size:22px}.by,.learning-label{display:none}.subnav{padding:12px 15px}.view-tabs{width:100%}.view-tabs [data-slot=tabs-trigger]{font-size:12px;flex:1;padding:6px 8px}.workspace{display:block}.sidebar{border:0;border-bottom:1px solid #e1e7e3;padding:16px 20px}.sidebar .eyebrow,.sidebar h2,.sidebar-tip,.sidebar-foot{display:none}.course-button{padding:8px}.course-button small{display:none}.study{padding:24px 19px}.breadcrumb{margin-bottom:23px;font-size:11px}.meta{gap:12px;font-size:10px}.race-card h3{font-size:17px}.race-card{padding:20px 17px}.lap{font-size:8px;padding:7px}.section-title h2{font-size:18px}.section-title>span{font-size:10px}.chapter-heading{padding:16px 14px}.chapter-heading h3{font-size:14px}.topic-toggle{padding:16px 14px;font-size:13px;gap:9px}.topic-toggle small{display:none}.topic-count{font-size:10px}.lesson-content{padding:22px}.content-text{font-size:16px}.admin-main{padding:24px 18px}.panel{padding:20px}.two-fields{grid-template-columns:1fr;gap:0}.study-footer{font-size:9px}.course-heading p{font-size:13px}.course-heading h1{font-size:28px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* Standalone PHP/JS controls: no framework or CDN required. */
[hidden]{display:none!important}button{border:0;background:transparent;color:inherit}input,textarea{font:inherit}h1,h2,h3{font-weight:700}.view-tabs{display:inline-flex;align-items:center;border-radius:9px}.view-tabs button{font-size:14px;padding:8px 16px;border-radius:6px;white-space:nowrap}.view-tabs button[aria-selected=true]{background:white;color:#076559;box-shadow:0 1px 4px #10282015}.flag{font-size:26px}.brandmark{font-size:27px}.course-symbol{font-size:57px}.course-button>span:first-child,.course-button>span:last-child{flex:0}.course-button>span:nth-child(2){flex:1}.expand-icon{font-size:20px;font-weight:400}.secondary{padding:9px 14px;border:1px solid #d8e2dc;border-radius:7px;background:white;font-size:14px}.login-panel{max-width:480px}.login-panel a{text-decoration:underline;color:#17664b}.admin-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;font-size:14px;color:#63816e}.published-item{display:flex;align-items:center;gap:10px;text-align:left;border-top:1px solid #e5eae6;padding:16px 0;width:100%;font-size:14px}.published-item>span:first-child{flex:1}.published-item:hover{color:#10634e}#image-preview{margin:0 0 20px}#preview-image{max-width:100%;max-height:260px;object-fit:contain;border-radius:8px}#image-note{font-size:13px;color:#718477;margin-top:8px}.notification{position:fixed;bottom:25px;right:25px;z-index:100;max-width:min(460px,calc(100vw - 40px));padding:17px 23px;border-radius:10px;background:#105a46;color:white;box-shadow:0 6px 30px #16372933;font-size:15px;line-height:1.6}.notification.is-error{background:#a53b32}.install-page{max-width:580px;margin:50px auto}.install-page h1{font-size:30px}.editor input:focus-visible,.editor textarea:focus-visible{outline:2px solid #27846a;outline-offset:2px}.meta,.breadcrumb,.topic-toggle small,.topic-count,.section-title>span,.lesson-bottom span,.study-footer,.course-button small{font-size:13px}.course-heading p{font-size:16px}.topic-toggle{font-size:16px}.sidebar-tip p{font-size:14px}.chapter-heading small,.eyebrow,.lesson-kicker,.race-caption,.race-card .eyebrow{font-size:12px}.topic-toggle:hover{background:#f3f8f5}@media(max-width:640px){.view-tabs{width:100%}.view-tabs button{font-size:13px;flex:1;padding:8px}.install-page{margin:20px 15px}.section-title>span{font-size:12px}.race-caption{font-size:10px}.topic-toggle{font-size:15px}.sidebar nav{display:flex;gap:7px;overflow:auto}.course-button{min-width:190px}.notification{right:20px;bottom:20px}}

/* Hindi / English language controls */
.language-switch{display:flex;gap:3px;padding:4px;background:#edf3ef;border:1px solid #d7e5dc;border-radius:9px;flex-shrink:0}.language-switch button{padding:7px 11px;border-radius:6px;font-size:14px;line-height:1.5}.language-switch button[aria-pressed="true"]{background:#11614c;color:#fff;box-shadow:0 1px 3px #173d2920}.language-note{font-size:13px;line-height:1.7;color:#6c8174;margin:0 0 18px}.language-switch button:focus-visible{outline:3px solid #32a684;outline-offset:2px}html[lang="hi"] body{font-family:"Nirmala UI","Mangal","Noto Sans Devanagari",Arial,sans-serif}html[lang="hi"] h1,html[lang="hi"] h2,html[lang="hi"] h3{letter-spacing:normal;line-height:1.6}html[lang="hi"] .eyebrow,html[lang="hi"] .course-tag,html[lang="hi"] .lesson-kicker,html[lang="hi"] .race-caption,html[lang="hi"] .small{letter-spacing:normal}html[lang="hi"] .topbar{min-height:84px;height:auto;padding-top:14px;padding-bottom:14px}html[lang="hi"] .view-tabs{height:auto!important;min-height:42px}.sidebar h2{display:flex;justify-content:space-between;gap:8px;align-items:center}.sidebar h2 span{margin-left:0}html[lang="hi"] .chapter-heading h3{line-height:1.7}.course-button>span:nth-child(2)>span{font-weight:600}@media(max-width:850px){.learning-label{display:none}.header-right{gap:12px}}@media(max-width:480px){.topbar{flex-wrap:wrap;height:auto;min-height:76px;gap:12px;padding:14px 16px}.brand{font-size:19px}.brandmark{width:30px;height:34px;margin-right:7px}.header-right{gap:6px}.header-right .avatar{display:none}.language-switch button{padding:5px 8px;font-size:13px}.view-tabs button{white-space:normal}.language-note{font-size:12px}.race-top{flex-wrap:wrap}.lap{font-size:11px}}
