:root{--bg:#0a0f1d;--panel:#111a2b;--panel2:#151f33;--line:#26344c;--text:#f0f4ff;--muted:#9aa8bf;--purple:#8c7bff;--cyan:#57d6d0;--green:#61d6a4;--radius:18px}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 75% -20%,#1a2850 0,transparent 40%),var(--bg);color:var(--text);font-family:'DM Sans',sans-serif;font-size:15px}a{color:inherit;text-decoration:none}button,input,textarea,select{font:inherit}.shell{min-height:100vh}.sidebar{width:248px;position:fixed;inset:0 auto 0 0;background:#0c1322;border-right:1px solid var(--line);padding:28px 18px;display:flex;flex-direction:column;z-index:5}.brand{display:flex;align-items:center;gap:11px;font:700 17px 'Space Grotesk';margin:0 0 50px 5px}.brand-mark,.auth-symbol{display:grid;place-items:center;width:39px;height:39px;border-radius:12px;background:linear-gradient(135deg,#8b7bff,#54d5cf);color:#0a1020;font-weight:800}.brand-muted{color:#94a3bd}.side-label,.eyebrow{font-size:10px;letter-spacing:1.6px;color:#8292ad;font-weight:700}.side-label{margin:0 0 14px 10px}.sidebar nav{display:grid;gap:7px;flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-right:4px;scrollbar-width:thin;scrollbar-color:#465575 transparent}.sidebar nav::-webkit-scrollbar{width:6px}.sidebar nav::-webkit-scrollbar-track{background:transparent}.sidebar nav::-webkit-scrollbar-thumb{background:#465575;border-radius:10px}.sidebar nav::-webkit-scrollbar-thumb:hover{background:#7183a8}.nav-link{display:flex;align-items:center;gap:13px;padding:12px 13px;border-radius:10px;color:#aab6ca;font-weight:600}.nav-link.active,.nav-link:hover{background:#1b2942;color:#fff}.nav-link.active{box-shadow:inset 3px 0 var(--purple)}.side-bottom{margin-top:auto}.user-mini{display:flex;gap:10px;align-items:center;padding:12px 8px 15px;border-bottom:1px solid var(--line)}.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#28385b;color:#c7c0ff;font-weight:700}.user-mini b,.user-mini small{display:block}.user-mini b{font-size:12px}.user-mini small{font-size:10px;color:var(--muted);max-width:150px;overflow:hidden;text-overflow:ellipsis}.logout-link{display:block;background:none;border:0;color:#aab6ca;padding:14px 8px;cursor:pointer;font-size:13px}.main{margin-left:248px;min-height:100vh;display:flex;flex-direction:column}.topbar{height:68px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 5%;background:#0c1322b8}.crumb{font-size:10px;letter-spacing:1.7px;color:#71819b;font-weight:700}.top-actions{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--muted)}.online-dot{color:var(--green);font-size:9px}.mobile-brand{display:none}.page{width:min(1160px,92%);margin:0 auto;padding:48px 0 70px;flex:1}footer{padding:22px 5%;border-top:1px solid var(--line);color:#71819b;font-size:11px}footer span{float:right}.button{display:inline-flex;align-items:center;justify-content:center;gap:13px;background:linear-gradient(110deg,#8b7bff,#5b9ce9);color:white;border:0;border-radius:10px;padding:12px 17px;font-weight:700;font-size:13px;cursor:pointer;box-shadow:0 8px 25px #635bff26}.button:hover{filter:brightness(1.1);transform:translateY(-1px)}.button:disabled{opacity:.55;cursor:default;transform:none}.button-ghost{background:#19243a;border:1px solid #35445e;box-shadow:none}.button-small{padding:8px 13px}.full-button{width:100%;margin-top:8px}.hero{padding:70px 2% 40px;position:relative;min-height:480px}.hero h1{font:700 clamp(42px,6vw,70px)/1.08 'Space Grotesk';letter-spacing:-3px;margin:22px 0}.gradient-text{background:linear-gradient(100deg,#a69aff,#5adbd0);background-clip:text;color:transparent}.hero-copy{color:#a8b4ca;line-height:1.8;max-width:540px;font-size:16px}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.hero-stats{display:flex;gap:42px;margin-top:54px}.hero-stats b,.hero-stats small{display:block}.hero-stats b{font:700 23px 'Space Grotesk'}.hero-stats small{font-size:11px;color:var(--muted);margin-top:4px}.hero-visual{position:absolute;right:1%;top:88px;width:43%;max-width:470px}.code-window{border:1px solid #35415e;background:#101a2b;border-radius:15px;overflow:hidden;box-shadow:0 30px 80px #0006;transform:rotate(1deg)}.window-bar{height:42px;background:#1a263b;border-bottom:1px solid #33405a;display:flex;align-items:center;gap:6px;padding:0 14px}.window-bar i,.ide-dots i{width:8px;height:8px;border-radius:50%;background:#ff7c86}.window-bar i:nth-child(2),.ide-dots i:nth-child(2){background:#f5c76b}.window-bar i:nth-child(3),.ide-dots i:nth-child(3){background:#64d6a3}.window-bar span{font-size:10px;color:#8796b0;margin-left:12px}.code-window pre{padding:25px 22px;color:#d5def0;font:12px/1.9 ui-monospace,monospace;white-space:pre-wrap}.code-purple{color:#c4a5ff}.code-blue{color:#72c8ff}.code-green{color:#a4e4b8}.code-comment{color:#71839e}.terminal-line{border-top:1px solid #2d3b54;padding:13px 18px;color:#94a4bc;font:11px ui-monospace}.terminal-line span:first-child{color:var(--green)}.cursor{color:#9a8aff}.float-card{position:absolute;right:-12px;bottom:-28px;background:#202e48;border:1px solid #405071;padding:13px 17px;border-radius:12px;display:flex;gap:11px;align-items:center;box-shadow:0 12px 30px #0005}.float-card>span{font-size:22px;color:#a89cff}.float-card b,.float-card small{display:block}.float-card b{font-size:12px}.float-card small{font-size:10px;color:var(--muted);margin-top:3px}.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:50px 0 20px}.feature-grid article,.lesson-tip,.editor-note{background:#111a2b;border:1px solid var(--line);border-radius:15px;padding:23px}.feature-icon{width:38px;height:38px;border-radius:11px;background:#26284a;color:#a99dff;display:grid;place-items:center;font-size:20px}.feature-grid h3,.lesson-tip h3,.editor-note h3{font:600 16px 'Space Grotesk';margin:17px 0 8px}.feature-grid p,.lesson-tip p,.editor-note p{color:var(--muted);font-size:12px;line-height:1.7;margin:0}.auth-wrap{min-height:68vh;display:grid;place-items:center}.auth-card{width:min(440px,100%);background:#111a2b;border:1px solid var(--line);padding:35px;border-radius:20px;box-shadow:0 25px 80px #0003}.auth-symbol{margin-bottom:24px}.auth-card h1,.page-heading h1,.editor-heading h1{font:700 32px 'Space Grotesk';letter-spacing:-1px;margin:12px 0}.auth-card>p,.page-heading p,.editor-heading p{color:var(--muted);font-size:13px;line-height:1.7}.stack-form{display:grid;gap:16px;margin-top:27px}.stack-form label{font-size:12px;font-weight:600;color:#c8d2e4}.stack-form input{display:block;width:100%;margin-top:8px;padding:12px 13px;background:#0b1322;border:1px solid #34435e;border-radius:9px;color:#fff;outline:none}.stack-form input:focus,.tutor-card textarea:focus{border-color:var(--purple)}.auth-switch{text-align:center;margin-top:22px;font-size:12px;color:var(--muted)}.auth-switch a,.text-link{color:#a99cff;font-weight:700}.muted-note{display:block;color:#75839c;font-size:10px;line-height:1.6;margin-top:17px}.flash-wrap{width:min(1160px,92%);margin:14px auto 0}.flash{padding:12px 15px;border-radius:9px;background:#1c3040;border:1px solid #355c63;color:#b9f0df;font-size:12px}.flash.error{background:#38212c;border-color:#734054;color:#ffc3ce}.page-heading,.editor-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}.page-heading h1{font-size:34px}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:30px 0 45px}.stat-card{background:#111a2b;border:1px solid var(--line);border-radius:14px;padding:18px}.stat-card>span{font-size:9px;letter-spacing:1px;color:#8796ae;font-weight:700}.stat-card strong{display:block;font:700 29px 'Space Grotesk';margin:14px 0 7px}.stat-card strong small{font:500 13px 'DM Sans';color:#7888a1}.stat-foot{font-size:10px;color:#8291aa}.progress-track{height:4px;background:#26334a;border-radius:8px;overflow:hidden}.progress-track i{display:block;height:100%;background:linear-gradient(90deg,var(--purple),var(--cyan))}.section-heading{display:flex;justify-content:space-between;align-items:end;margin:34px 0 17px}.section-heading h2{font:600 22px 'Space Grotesk';margin:7px 0 0}.text-link{font-size:11px}.course-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.course-card{display:block;background:#111a2b;border:1px solid var(--line);border-radius:14px;padding:19px;transition:.2s}.course-card:hover{border-color:#766be0;transform:translateY(-3px)}.course-top{display:flex;justify-content:space-between;align-items:center}.language-icon{width:35px;height:35px;border-radius:10px;background:#25294a;color:#b5aaff;display:grid;place-items:center;font:700 11px 'Space Grotesk'}.level-tag{font-size:9px;color:#a4b4ca;background:#1e2a40;padding:6px 8px;border-radius:20px}.course-card h3{font:600 16px 'Space Grotesk';margin:18px 0 7px}.course-card p{font-size:11px;color:var(--muted);line-height:1.6;min-height:53px}.course-bottom{border-top:1px solid #26334a;padding-top:13px;margin-top:15px;display:flex;justify-content:space-between;font-size:10px;color:#9caac0}.course-bottom span:last-child{color:#a99cff}.all-courses{margin-top:25px}.project-list,.lesson-list{border:1px solid var(--line);border-radius:14px;overflow:hidden}.project-row,.lesson-row{display:flex;align-items:center;gap:14px;padding:16px 18px;background:#111a2b;border-bottom:1px solid var(--line)}.project-row:last-child,.lesson-row:last-child{border-bottom:0}.project-file{color:#a99cff}.project-row b{font-size:12px}.project-row small,.project-date{font-size:10px;color:var(--muted)}.project-date{margin-left:auto}.empty-state{padding:28px;background:#111a2b;border:1px dashed #3b4963;border-radius:12px;color:var(--muted);font-size:12px}.back-link{display:inline-block;color:#a99cff;font-size:12px;margin-bottom:24px}.lesson-row:hover{background:#17243a}.lesson-number{font:600 14px 'Space Grotesk';color:#8e80ff}.lesson-row>div{flex:1}.lesson-row b,.lesson-row small{display:block}.lesson-row b{font-size:13px}.lesson-row small{font-size:10px;color:var(--muted);margin-top:5px}.lesson-status{font-size:10px;color:#9f91ff}.lesson-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:24px}.lesson-content{background:#111a2b;border:1px solid var(--line);border-radius:16px;padding:30px}.lesson-content h1{font:700 32px 'Space Grotesk';margin:12px 0}.lesson-explain{font-size:15px;line-height:1.8;color:#c0cbe0}.lesson-content h3{font:600 16px 'Space Grotesk';margin-top:28px}.lesson-code{padding:20px;background:#080e19;border:1px solid #27344c;border-radius:10px;overflow:auto;color:#c6d5ef;font:12px/1.7 ui-monospace;white-space:pre-wrap}.lesson-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:25px}.inline-message{color:var(--green);font-size:11px;margin-top:12px}.lesson-tip{align-self:start}.lesson-tip .feature-icon{margin-bottom:18px}.editor-heading{align-items:center}.editor-heading h1{margin-bottom:5px}.editor-actions{display:flex;gap:8px;flex-wrap:wrap}.ide{border:1px solid #34425d;border-radius:14px;overflow:hidden;background:#0e1625;box-shadow:0 20px 50px #0003}.ide-top{height:54px;display:flex;align-items:center;gap:12px;padding:0 15px;background:#172238;border-bottom:1px solid #34425d}.ide-dots{display:flex;gap:5px}.ide-dots i{display:block}.ide-top input{width:190px;background:transparent;border:0;color:#dbe5f6;outline:0;font-size:11px}.ide-top select{background:#202e47;border:1px solid #3b4a67;color:#cbd6e8;padding:7px 9px;border-radius:7px;font-size:10px;max-width:180px}.ide-top select:last-child{margin-left:auto}.ide-body{display:grid;grid-template-columns:180px 1fr;min-height:410px}.file-sidebar{background:#111b2d;border-right:1px solid #2c3b54;padding:14px 10px}.file-sidebar-title{font-size:9px;letter-spacing:1.2px;color:#8393ad;font-weight:700;padding:0 6px 12px;display:flex;justify-content:space-between}.file-sidebar-title button,.output-head button{background:none;border:0;color:#a99cff;cursor:pointer}.file-item{display:block;width:100%;text-align:left;background:none;border:0;color:#9eacc3;padding:8px 7px;border-radius:6px;font-size:10px;cursor:pointer}.file-item.selected,.file-item:hover{background:#25324b;color:#fff}.code-area{min-width:0;display:flex;flex-direction:column}.tab-strip{height:38px;display:flex;background:#121d30;border-bottom:1px solid #293851;overflow:auto}.file-tab{border:0;border-right:1px solid #293851;background:transparent;color:#8796ae;padding:0 15px;font-size:10px;white-space:nowrap;cursor:pointer}.file-tab.selected{background:#1a2941;color:#e5ebf6;border-top:2px solid var(--purple)}#editorMount{min-height:350px}.CodeMirror{height:350px!important;background:#0e1625!important;color:#d7e1f2!important;font:12px/1.7 ui-monospace,monospace}.CodeMirror-gutters{background:#111b2b!important;border-color:#26354d!important}.CodeMirror-linenumber{color:#60718e!important}.editor-status{height:25px;background:#263657;color:#d2d9ee;display:flex;justify-content:space-between;padding:5px 12px;font-size:9px}.output-panel{border-top:1px solid #34425d}.output-head{height:38px;display:flex;justify-content:space-between;align-items:center;padding:0 15px;background:#151f32}.output-head b{font-size:9px;letter-spacing:1.3px;color:#a8b5cb}.output-head button{font-size:10px}.output-panel pre{min-height:65px;max-height:180px;overflow:auto;margin:0;padding:14px 16px;color:#a8e2c5;font:11px/1.6 ui-monospace;white-space:pre-wrap}.editor-lower{display:grid;grid-template-columns:1.3fr 1fr;gap:15px;margin-top:18px}.tutor-card,.editor-note{background:#111a2b;border:1px solid var(--line);border-radius:14px;padding:21px}.tutor-card h2{font:600 19px 'Space Grotesk';margin:8px 0}.tutor-card p{font-size:11px;color:var(--muted)}.tutor-card textarea{width:100%;margin:10px 0;padding:12px;background:#0b1322;border:1px solid #35435c;border-radius:8px;color:#eef3ff;resize:vertical;font-size:11px;outline:0}.tutor-answer{margin-top:13px;padding:13px;background:#0b1322;border-radius:8px;color:#c3d1e8;font-size:11px;line-height:1.7;white-space:pre-wrap;max-height:260px;overflow:auto}.editor-note .feature-icon{margin-bottom:8px}.editor-note h3{margin-top:8px}
@media(max-width:1050px){.hero-visual{opacity:.45;right:-2%;width:46%}.hero{padding-top:60px}.course-grid{grid-template-columns:repeat(2,1fr)}.stats-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:760px){.sidebar{width:68px;padding:20px 9px}.brand{margin:0 auto 42px}.brand>span:last-child,.side-label,.nav-link span,.side-bottom .user-mini,.logout-link{display:none}.nav-link{justify-content:center;padding:13px 0;font-size:18px}.side-bottom{display:none}.main{margin-left:68px}.topbar{padding:0 4%;height:58px}.mobile-brand{display:block;font:700 14px 'Space Grotesk'}.crumb{display:none}.page{padding:30px 0 50px}.hero{padding:38px 0 20px;min-height:400px}.hero-visual{position:relative;right:auto;top:auto;width:90%;margin:38px auto 0;opacity:1}.hero h1{font-size:47px;letter-spacing:-2px}.hero-copy{font-size:13px}.hero-stats{gap:25px;margin-top:35px}.feature-grid{grid-template-columns:1fr;margin-top:45px}.page-heading,.editor-heading{align-items:flex-start;flex-direction:column}.page-heading h1,.editor-heading h1{font-size:29px}.course-grid{grid-template-columns:1fr}.stats-grid{gap:8px}.stat-card{padding:13px}.stat-card strong{font-size:23px}.lesson-layout{grid-template-columns:1fr}.editor-actions{width:100%}.editor-actions .button{flex:1;padding:10px 8px;font-size:10px}.ide-top{gap:6px;padding:0 8px}.ide-top input{width:90px}.ide-top select{max-width:95px;font-size:9px}.ide-body{grid-template-columns:105px 1fr}.file-sidebar{padding:12px 5px}.CodeMirror{font-size:11px}.editor-lower{grid-template-columns:1fr}.lesson-content{padding:20px}.project-row{gap:8px}.project-date{display:none}footer span{float:none;display:block;margin-top:5px}}@media(max-width:430px){.top-user{display:none}.hero-actions .button{width:100%}.auth-card{padding:25px 20px}.ide-top .ide-dots{display:none}.ide-top input{width:70px}.ide-top select{max-width:80px}.ide-body{grid-template-columns:86px 1fr}.file-item{font-size:9px;padding:7px 3px}.lesson-row{padding:13px 10px}.lesson-status{font-size:9px}}
.quiz-panel{margin-top:26px;padding:23px;background:#111a2b;border:1px solid var(--line);border-radius:14px}.quiz-panel h2{font:600 21px 'Space Grotesk';margin:8px 0}.quiz-panel>p{color:var(--muted);font-size:12px}.quiz-question{border:1px solid #30405a;border-radius:10px;margin:14px 0;padding:14px}.quiz-question legend{font-size:12px;font-weight:700;padding:0 5px}.quiz-option{display:block;padding:7px;color:#b9c6da;font-size:11px;cursor:pointer}.quiz-option input{accent-color:#9586ff}.quiz-correct,.quiz-incorrect{font-size:11px;line-height:1.6;padding:9px 12px;border-radius:7px;background:#142f2c;color:#a8e8d1}.quiz-incorrect{background:#382a24;color:#f4c5a7}
.quiz-panel{margin-top:26px;padding:23px;background:#111a2b;border:1px solid var(--line);border-radius:14px}.quiz-panel h2{font:600 21px 'Space Grotesk';margin:8px 0}.quiz-panel>p{color:var(--muted);font-size:12px}.quiz-question{border:1px solid #30405a;border-radius:10px;margin:14px 0;padding:14px}.quiz-question legend{font-size:12px;font-weight:700;padding:0 5px}.quiz-option{display:block;padding:7px;color:#b9c6da;font-size:11px;cursor:pointer}.quiz-option input{accent-color:#9586ff}.quiz-correct,.quiz-incorrect{font-size:11px;line-height:1.6;padding:9px 12px;border-radius:7px;background:#142f2c;color:#a8e8d1}.quiz-incorrect{background:#382a24;color:#f4c5a7}

/* Expanded teaching lesson layout */
.lesson-shell { display:grid; grid-template-columns:minmax(0, 1fr) 270px; gap:1.5rem; align-items:start; }
.lesson-expanded { min-width:0; }
.lesson-intro { color:var(--muted, #9aa7bd); font-size:1.02rem; line-height:1.7; margin-bottom:1.5rem; }
.lesson-section { padding:1.35rem 0; border-top:1px solid var(--border, rgba(148,163,184,.18)); }
.lesson-section-heading { display:flex; align-items:center; gap:.8rem; margin-bottom:1rem; }
.lesson-section-heading span { display:grid; place-items:center; width:2rem; height:2rem; border-radius:9px; background:rgba(59,130,246,.13); color:#60a5fa; font-size:.78rem; font-weight:800; }
.lesson-section-heading h2 { margin:0; font-size:1.12rem; }
.lesson-notes { white-space:pre-line; line-height:1.82; color:var(--text, #e5eaf3); font-size:.97rem; }
.lesson-notes::first-line { font-weight:800; }
.lesson-code { overflow:auto; padding:1.2rem; border:1px solid var(--border, rgba(148,163,184,.2)); border-radius:13px; background:#080d18; line-height:1.7; }
.lesson-code code { white-space:pre; }
.practice-section { background:rgba(59,130,246,.055); border:1px solid rgba(59,130,246,.18); border-radius:14px; padding:1.2rem; margin:1rem 0; }
.practice-section p { line-height:1.7; }
.lesson-tip { position:sticky; top:1.25rem; padding:1.2rem; border:1px solid var(--border, rgba(148,163,184,.18)); border-radius:15px; background:var(--panel, #111827); }
.lesson-tip h3 { margin:.6rem 0; }
.lesson-tip ol { padding-left:1.2rem; line-height:1.8; }
.lesson-tip li { margin:.35rem 0; }
.lesson-actions { display:flex; flex-wrap:wrap; gap:.75rem; margin-top:1.25rem; }
@media (max-width: 850px) { .lesson-shell { grid-template-columns:1fr; } .lesson-tip { position:static; } }
.lesson-notes p { margin:.45rem 0 1rem; color:#d1daea; line-height:1.8; }
.lesson-notes h3 { margin:1.35rem 0 .35rem; color:#a99cff; font:700 .78rem 'DM Sans',sans-serif; letter-spacing:1px; text-transform:uppercase; }
.lesson-notes h3:first-child { margin-top:0; }

/* Exercises, portfolio projects and final assessments */
.practice-actions{display:flex;gap:10px;flex-wrap:wrap;margin:22px 0}.practice-intro,.exam-callout{background:#111a2b;border:1px solid var(--line);border-radius:14px;padding:22px;margin:22px 0}.practice-intro b{font:600 16px 'Space Grotesk'}.practice-intro ol,.project-brief ol{color:#b9c6da;font-size:12px;line-height:1.9;padding-left:21px}.practice-section-title{margin:38px 0 17px}.practice-section-title h2,.exam-callout h2{font:600 24px 'Space Grotesk';margin:7px 0}.practice-section-title>p,.exam-callout p{font-size:12px;color:var(--muted);line-height:1.7}.practice-grid,.project-brief-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.practice-card,.project-brief{background:#111a2b;border:1px solid var(--line);border-radius:14px;padding:22px;min-width:0}.practice-card h3,.project-brief h3{font:600 18px 'Space Grotesk';margin:14px 0 9px}.practice-card>p,.project-brief>p{font-size:12px;color:#b9c6da;line-height:1.8}.practice-card details{border-top:1px solid #293750;padding:12px 0;color:#c7d2e5}.practice-card summary{cursor:pointer;color:#b8aaff;font-size:12px;font-weight:700}.practice-card details p{font-size:12px;color:#aebbd0;line-height:1.8;margin-bottom:0}.practice-card .button{margin-top:13px}.practice-number{font-size:9px;letter-spacing:1.2px;color:#a99cff;font-weight:800}.project-brief h4{font:600 12px 'Space Grotesk';margin:19px 0 7px;color:#dce5f5}.project-brief ol{font-size:11px}.project-brief .button{margin-top:12px}.exam-callout{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:34px}.exam-callout p{margin-bottom:0}.exam-callout .button{white-space:nowrap}
@media(max-width:760px){.practice-grid,.project-brief-grid{grid-template-columns:1fr}.exam-callout{align-items:flex-start;flex-direction:column}.practice-actions .button{flex:1}}

/* Multiple guided examples inside each lesson */
.worked-example-card{margin:1.1rem 0 1.35rem;padding:1rem;border:1px solid var(--border,rgba(148,163,184,.2));border-radius:14px;background:rgba(148,163,184,.035)}
.example-label{font-size:.7rem;font-weight:800;letter-spacing:.11em;color:var(--muted,#94a3b8);margin-bottom:.8rem}
.worked-example-card .lesson-code{margin:.7rem 0}
.worked-example-card>p{line-height:1.7}

/* FelixForge Academy learning upgrade: denser spacing with clearer teaching panels */
.page{padding-top:22px;padding-bottom:26px}
.page-heading{margin-bottom:18px;gap:12px}
.section-heading{margin:24px 0 12px}
.course-grid{gap:12px}
.course-card{padding:17px}
.lesson-list{gap:7px}
.lesson-row{padding:12px 14px}
.lesson-shell{gap:16px;grid-template-columns:minmax(0,1fr) 245px}
.lesson-content{padding:20px}
.lesson-section{padding:16px 0}
.lesson-section-heading{margin-bottom:9px;gap:9px}
.lesson-notes p{margin:.28rem 0 .65rem;line-height:1.68}
.lesson-notes h3{margin:1rem 0 .25rem}
.lesson-intro{margin-bottom:12px;line-height:1.6}
.worked-example-card{margin:10px 0 12px;padding:12px}
.lesson-code{padding:12px;line-height:1.55;margin:8px 0}
.lesson-tip{padding:14px}
.practice-grid,.project-brief-grid{gap:12px}
.practice-card,.project-brief{padding:16px}
.practice-section-title{margin:25px 0 12px}
.form-card{padding:18px}
.global-search{display:flex;align-items:center;max-width:330px;flex:1;margin:0 14px;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#101a2c}
.global-search input{width:100%;min-width:0;padding:9px 11px;background:transparent;border:0;color:var(--text);outline:none;font:inherit;font-size:12px}
.global-search button{padding:7px 12px;border:0;background:transparent;color:var(--text);font-size:20px;cursor:pointer}
.theme-toggle{border:1px solid var(--line);background:var(--panel);color:var(--text);border-radius:9px;padding:7px 10px;cursor:pointer}
.lesson-toolbar,.note-actions,.quick-links,.search-page-form{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.lesson-toolbar{margin:8px 0 4px}
.expected-result{padding:9px 11px;border-radius:9px;background:rgba(59,130,246,.07);border:1px solid rgba(59,130,246,.16);margin:8px 0}
.expected-result b{font-size:11px;color:#93c5fd}.expected-result p{font-size:12px;margin:4px 0 0;line-height:1.6;color:var(--muted)}
.walkthrough-details{margin-top:8px;border-top:1px solid var(--line);padding-top:9px}
.walkthrough-details summary{cursor:pointer;font-weight:700;font-size:12px;color:#a99cff}
.walkthrough-list{padding-left:22px;margin:10px 0}.walkthrough-list li{padding:6px 0;border-bottom:1px solid rgba(148,163,184,.12)}
.walkthrough-list code{display:block;white-space:pre-wrap;overflow-wrap:anywhere;background:#080d18;padding:7px 9px;border-radius:7px;color:#c4b5fd;font-size:11px}
.walkthrough-list p{font-size:12px;line-height:1.55;margin:5px 0;color:var(--muted)}
.lesson-note-input,.search-page-form input{width:100%;padding:11px;border-radius:9px;border:1px solid var(--line);background:var(--panel);color:var(--text);font:inherit;line-height:1.6}
.note-actions{margin-top:8px}.mastery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.mastery-grid>div,.checklist-panel,.reply-card{padding:12px;border:1px solid var(--line);border-radius:10px;background:rgba(148,163,184,.035)}
.mastery-grid b,.checklist-panel>b{font-size:12px}.mastery-grid p,.checklist-panel li{font-size:12px;line-height:1.6;color:var(--muted);margin:5px 0}
.checklist-panel{margin-top:10px}.checklist-panel ul{padding-left:18px;margin:7px 0 0}
.quick-links{margin:14px 0 20px}.quick-links a,.quick-links span{font-size:12px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;color:var(--muted)}
.search-page-form{max-width:650px;margin:14px 0 22px}.search-page-form input{flex:1}.search-results-heading{margin-top:25px}
.community-compose{margin:15px 0 22px}.community-message{white-space:pre-wrap;line-height:1.8}.reply-card{margin:8px 0}.reply-card p{white-space:pre-wrap;line-height:1.65}.reply-card small{color:var(--muted)}
.achievement-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.achievement-card{border:1px solid var(--line);border-radius:12px;padding:15px;background:var(--panel);opacity:.7}.achievement-card.earned{opacity:1;border-color:rgba(34,197,94,.5)}.achievement-icon{font-size:24px;color:#a99cff}.achievement-card p,.achievement-card span{font-size:12px;color:var(--muted)}
.certificate-wrap{max-width:850px;margin:15px auto;text-align:center}.certificate{padding:50px 30px;border:7px double #b69b55;background:#fffdf5;color:#26334a;text-align:center}.certificate h1{font:700 36px 'Space Grotesk';color:#8a6b28}.certificate h2{font:700 27px 'Space Grotesk'}.certificate p{line-height:1.8}.certificate-footer{margin-top:35px;font-size:12px}
.admin-course{border:1px solid var(--line);border-radius:10px;margin:9px 0;padding:12px}.admin-course summary{cursor:pointer;font-weight:700}.admin-edit-form{display:grid;gap:8px;padding:13px 0;border-top:1px solid var(--line);margin-top:10px}.admin-edit-form label,.form-card label{display:grid;gap:6px;font-size:12px;color:var(--muted)}.admin-edit-form input,.admin-edit-form textarea,.form-card input,.form-card textarea{width:100%;padding:10px;border:1px solid var(--line);border-radius:8px;background:#0c1424;color:var(--text);font:inherit}
.quiz-timer{position:sticky;top:5px;padding:8px 11px;background:#16243a;border:1px solid var(--line);border-radius:8px;font-weight:700;color:#fbbf24}
.light-theme{--bg:#f3f6fb;--panel:#fff;--text:#172033;--muted:#596579;--line:#d7dfeb;background:#f3f6fb;color:#172033}.light-theme .main{background:#f3f6fb}.light-theme .sidebar,.light-theme .topbar,.light-theme .course-card,.light-theme .lesson-content,.light-theme .lesson-tip,.light-theme .practice-card,.light-theme .project-brief,.light-theme .stat-card,.light-theme .form-card{background:#fff;color:#172033}.light-theme .lesson-notes p{color:#344054}.light-theme .global-search{background:#fff}.light-theme .global-search input,.light-theme .lesson-note-input{color:#172033}.light-theme .form-card input,.light-theme .form-card textarea,.light-theme .admin-edit-form input,.light-theme .admin-edit-form textarea{background:#fff;color:#172033}
@media(max-width:1000px){.lesson-shell{grid-template-columns:1fr}.lesson-tip{position:static}.global-search{max-width:250px}}
@media(max-width:760px){.achievement-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.global-search{max-width:none;margin:8px 0;width:100%;order:4}.topbar{flex-wrap:wrap;height:auto;padding:10px 14px}.top-actions{margin-left:auto}.mastery-grid{grid-template-columns:1fr}.lesson-content{padding:14px}.lesson-toolbar .button{flex:1}.certificate{padding:25px 15px}.certificate h1{font-size:25px}}
@media print{.sidebar,.topbar,footer,.button,.lesson-tip,.lesson-toolbar{display:none!important}.main{margin:0!important}.page{padding:0!important}.certificate{box-shadow:none}}
.deep-dive-section>p{font-size:13px;line-height:1.78;color:var(--text);margin:5px 0 12px}.deep-dive-section h3{font-size:12px;margin:14px 0 7px;color:#a99cff}.deep-dive-list{padding-left:19px;margin:6px 0 10px}.deep-dive-list li{font-size:12px;line-height:1.7;color:var(--muted);padding:3px 0}.mistakes-list li::marker{color:#f59e0b}.checklist-panel p{font-size:12px;line-height:1.65;color:var(--muted);margin:6px 0 0}
.notification-card{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:13px 15px;margin:8px 0;border:1px solid var(--line);border-radius:10px;background:var(--panel)}.notification-card.unread{border-color:rgba(59,130,246,.55);background:rgba(59,130,246,.07)}.notification-card p{font-size:12px;line-height:1.6;color:var(--muted);margin:5px 0}.notification-card small{font-size:10px;color:var(--muted)}

/* Suggestions and compact administration layouts */
.suggestion-layout{display:grid;grid-template-columns:minmax(280px,.9fr) minmax(320px,1.1fr);gap:1rem;align-items:start}
.suggestion-form,.suggestion-history{min-width:0}
.suggestion-history h2{margin:0 0 .75rem}
.suggestion-card{border:1px solid var(--border,rgba(148,163,184,.22));background:var(--panel,rgba(255,255,255,.025));border-radius:12px;padding:1rem;margin-bottom:.75rem}
.suggestion-card h3{margin:.45rem 0;font-size:1rem}
.suggestion-card p{white-space:pre-wrap;line-height:1.55;margin:.4rem 0 .65rem}
.suggestion-meta{display:flex;justify-content:space-between;gap:.5rem;flex-wrap:wrap;color:var(--muted,#94a3b8);font-size:.78rem}
.status-pill{border-radius:999px;padding:.2rem .55rem;background:rgba(59,130,246,.12);color:var(--accent,#60a5fa)}
.admin-note{border-left:3px solid var(--accent,#60a5fa);padding:.35rem .75rem;margin-top:.75rem;background:rgba(59,130,246,.06)}
.admin-note p{margin:.25rem 0}
.suggestion-admin-form{display:grid;gap:.65rem;margin-top:.75rem;padding-top:.75rem;border-top:1px solid var(--border,rgba(148,163,184,.2))}
.suggestion-admin-form label{display:grid;gap:.35rem}
.admin-stats{grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:.65rem}
.admin-edit-form{display:grid;gap:.7rem;padding:1rem 0;border-bottom:1px solid var(--border,rgba(148,163,184,.2))}
.admin-edit-form label{display:grid;gap:.35rem}
@media(max-width:850px){.suggestion-layout{grid-template-columns:1fr}}

.admin-table-wrap{width:100%;overflow-x:auto;margin:14px 0 34px;border:1px solid var(--line);border-radius:12px;background:#111a2b}.admin-table{width:100%;border-collapse:collapse;min-width:760px;text-align:left}.admin-table th,.admin-table td{padding:13px 14px;border-bottom:1px solid var(--line);font-size:11px;vertical-align:top}.admin-table th{font-size:9px;letter-spacing:.8px;color:#94a3bd;text-transform:uppercase;background:#151f33}.admin-table td{color:#dbe4f4}.admin-table td small{display:block;color:var(--muted);font-size:9px;margin-top:4px}.admin-table tr:last-child td{border-bottom:0}.feature-grid article form{margin-top:18px}.feature-grid article .button{margin-top:0}


/* =========================================================
   FELIXFORGE ACADEMY BRAND + PREMIUM ADVANCED COURSES
========================================================= */
:root { --brand-violet:#8b5cf6; --brand-blue:#3b82f6; --brand-cyan:#22d3ee; }
.brand { letter-spacing:-.45px; }
.brand-muted { color:#b7a7ff; }
.mobile-brand { display:none; }
.advanced-nav-link { position:relative; gap:10px; margin:3px 0; border:1px solid rgba(168,85,247,.26); border-radius:11px; background:linear-gradient(110deg,rgba(124,58,237,.19),rgba(59,130,246,.07)); transition:transform .2s ease,border-color .2s ease,background .2s ease,box-shadow .2s ease; }
.advanced-nav-link:hover { transform:translateX(3px); border-color:rgba(192,132,252,.7); background:linear-gradient(110deg,rgba(124,58,237,.3),rgba(59,130,246,.13)); box-shadow:0 7px 20px rgba(124,58,237,.12); }
.advanced-icon { display:inline-block; font-weight:500; color:#d8b4fe; font-size:17px; filter:drop-shadow(0 0 7px rgba(192,132,252,.7)); }
.advanced-badge { margin-left:auto; padding:3px 7px; border-radius:5px; background:linear-gradient(135deg,#7c3aed,#a855f7); color:#fff; font-size:9px; line-height:1.2; font-weight:800; letter-spacing:.7px; }
.advanced-nav-link.active { border-color:#a78bfa; background:linear-gradient(110deg,rgba(124,58,237,.42),rgba(59,130,246,.16)); box-shadow:0 0 0 1px rgba(167,139,250,.12),0 8px 24px rgba(124,58,237,.16); color:#fff; }
.advanced-nav-link.active .advanced-icon { color:#f3e8ff; }
.advanced-hero { position:relative; overflow:hidden; display:grid; grid-template-columns:minmax(0,1.3fr) minmax(210px,.7fr); gap:25px; align-items:center; padding:32px; border:1px solid rgba(139,92,246,.3); border-radius:22px; background:radial-gradient(circle at 85% 20%,rgba(124,58,237,.25),transparent 35%),linear-gradient(120deg,#121a31,#171d3b 58%,#132c43); box-shadow:0 18px 45px rgba(0,0,0,.15); }
.advanced-hero-copy { position:relative; z-index:1; }
.advanced-hero .eyebrow { color:#c4b5fd; }
.advanced-spark { color:#f0abfc; margin-right:6px; }
.advanced-hero h1 { max-width:650px; margin:12px 0; font:700 clamp(30px,4vw,46px)/1.08 'Space Grotesk',sans-serif; letter-spacing:-1.5px; color:#f8fafc; }
.advanced-hero h1 span { background:linear-gradient(90deg,#c4b5fd,#67e8f9); -webkit-background-clip:text; background-clip:text; color:transparent; }
.advanced-hero p { max-width:650px; color:#c3cde0; font-size:13px; line-height:1.8; }
.advanced-hero-tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:19px; }
.advanced-hero-tags span { border:1px solid rgba(196,181,253,.2); border-radius:999px; padding:7px 10px; color:#e4e8f5; background:rgba(255,255,255,.055); font-size:10px; }
.advanced-hero-mark { position:relative; width:210px; height:210px; margin:auto; display:grid; place-items:center; }
.advanced-orbit { position:absolute; border:1px solid rgba(196,181,253,.36); border-radius:50%; transform:rotate(-28deg); }
.orbit-one { width:190px; height:100px; }
.orbit-two { width:140px; height:190px; transform:rotate(42deg); border-color:rgba(103,232,249,.3); }
.advanced-mark-core { display:grid; place-items:center; width:92px; height:92px; border:1px solid rgba(255,255,255,.35); border-radius:25px; background:linear-gradient(135deg,#8b5cf6,#2563eb); color:#fff; font:700 25px 'Space Grotesk'; box-shadow:0 0 45px rgba(139,92,246,.5); }
.orbit-label { position:absolute; font-size:9px; letter-spacing:2px; font-weight:800; color:#c4b5fd; }
.label-top { top:4px; right:23px; }.label-bottom { bottom:5px; left:18px; color:#67e8f9; }
.premium-status { display:flex; align-items:center; gap:13px; margin:18px 0 28px; padding:14px 17px; border:1px solid var(--line); border-radius:13px; background:var(--panel); }
.premium-status>span:first-child { display:grid; place-items:center; width:34px; height:34px; border-radius:10px; background:rgba(139,92,246,.14); color:#a78bfa; font-size:17px; }
.premium-status>div { display:grid; gap:3px; flex:1; }.premium-status b { font-size:12px; }.premium-status small { color:var(--muted); font-size:11px; line-height:1.5; }
.premium-status.unlocked { border-color:rgba(16,185,129,.35); }.premium-status.unlocked>span:first-child { background:rgba(16,185,129,.12); color:#10b981; }
.premium-status.locked { border-color:rgba(245,158,11,.28); }.status-chip { padding:5px 8px; border-radius:6px; color:#6ee7b7; background:rgba(16,185,129,.12); font-size:9px; font-weight:800; letter-spacing:.7px; }
.advanced-section-heading { display:flex; align-items:end; justify-content:space-between; gap:15px; margin:22px 0 14px; }.advanced-section-heading h2 { margin:6px 0; font:650 24px 'Space Grotesk'; }.advanced-section-heading p { margin:0; color:var(--muted); font-size:12px; }.advanced-count { padding:7px 9px; border:1px solid var(--line); border-radius:7px; color:var(--muted); font-size:9px; font-weight:800; letter-spacing:1px; white-space:nowrap; }
.advanced-course-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; }
.advanced-course-card { min-width:0; display:flex; flex-direction:column; padding:18px; border:1px solid var(--line); border-radius:15px; background:var(--panel); transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
.advanced-course-card:hover { transform:translateY(-3px); border-color:rgba(139,92,246,.65); box-shadow:0 12px 28px rgba(79,70,229,.1); }
.advanced-card-top { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.advanced-course-icon { display:grid; place-items:center; min-width:38px; height:36px; padding:0 7px; border-radius:10px; background:linear-gradient(135deg,rgba(139,92,246,.2),rgba(34,211,238,.12)); color:#c4b5fd; font:700 11px 'Space Grotesk'; }
.advanced-level { padding:5px 8px; border-radius:99px; background:rgba(139,92,246,.12); color:#c4b5fd; font-size:9px; font-weight:700; }
.advanced-course-card h3 { margin:15px 0 7px; font:650 16px/1.35 'Space Grotesk'; color:var(--text); }
.advanced-course-card>p { flex:1; min-height:72px; margin:0; color:var(--muted); font-size:11px; line-height:1.7; }
.advanced-card-meta { display:flex; flex-wrap:wrap; gap:8px 14px; margin:13px 0; padding-top:11px; border-top:1px solid var(--line); color:var(--muted); font-size:10px; }
.advanced-course-action { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:10px 12px; border-radius:9px; background:linear-gradient(100deg,#6d45d8,#4267d5); color:#fff; font-size:11px; font-weight:700; transition:filter .2s ease; }
.advanced-course-action:hover { filter:brightness(1.12); }.advanced-course-action span { font-size:15px; }.locked-action { background:rgba(139,92,246,.12); color:#c4b5fd; border:1px solid rgba(139,92,246,.22); }
.locked-course-hero { padding:28px; margin-bottom:16px; border:1px solid rgba(139,92,246,.3); border-radius:18px; background:radial-gradient(circle at 90% 5%,rgba(139,92,246,.2),transparent 36%),var(--panel); }
.locked-course-label { display:inline-block; margin-top:14px; padding:6px 9px; border-radius:7px; background:rgba(139,92,246,.14); color:#a78bfa; font-size:9px; font-weight:800; letter-spacing:.8px; }
.locked-course-hero h1 { margin:12px 0 8px; font:700 clamp(27px,4vw,39px) 'Space Grotesk'; color:var(--text); }.locked-course-hero>p { max-width:760px; color:var(--muted); font-size:13px; line-height:1.8; }
.locked-content-panel { display:grid; grid-template-columns:58px minmax(0,1fr); gap:17px; padding:24px; border:1px solid var(--line); border-radius:16px; background:var(--panel); }
.locked-content-icon { display:grid; place-items:center; width:48px; height:48px; border-radius:14px; background:linear-gradient(135deg,#7c3aed,#2563eb); color:white; font-size:22px; }
.locked-content-panel h2 { margin:5px 0 8px; font:650 22px 'Space Grotesk'; }.locked-content-panel p { color:var(--muted); font-size:12px; line-height:1.8; }
.locked-benefits { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin:15px 0; color:var(--text); font-size:11px; }
.locked-benefits span::first-letter { color:#10b981; }.locked-prices { display:flex; flex-wrap:wrap; gap:10px; margin:17px 0; }.locked-prices>div { display:grid; gap:5px; min-width:150px; padding:12px 14px; border:1px solid var(--line); border-radius:10px; background:var(--bg); }.locked-prices small { color:var(--muted); font-size:9px; letter-spacing:.8px; }.locked-prices b { font:700 20px 'Space Grotesk'; color:var(--text); }

/* A complete, higher-contrast light palette for the existing components. */
body.light-theme { --bg:#f4f7fc; --panel:#ffffff; --panel2:#edf2fa; --line:#dbe3ef; --text:#172033; --muted:#58677e; --purple:#6941c6; --cyan:#087e8b; --green:#087f5b; background:#f4f7fc; color:#172033; }
body.light-theme .main { background:#f4f7fc; color:#172033; }
body.light-theme .sidebar { background:#ffffff; border-color:#dbe3ef; box-shadow:5px 0 24px rgba(26,42,68,.035); }
body.light-theme .brand { color:#172033; } body.light-theme .brand-muted { color:#6941c6; }
body.light-theme .side-label, body.light-theme .eyebrow { color:#68778e; }
body.light-theme .nav-link { color:#46546b; } body.light-theme .nav-link:hover { background:#f0edff; color:#4c3295; }
body.light-theme .nav-link.active { background:#eeeaff; color:#4c3295; }
body.light-theme .advanced-nav-link { color:#5736a5; border-color:#ddd0ff; background:linear-gradient(110deg,#f0eaff,#f1f6ff); }
body.light-theme .advanced-nav-link:hover, body.light-theme .advanced-nav-link.active { color:#482b91; border-color:#bba5f5; background:linear-gradient(110deg,#e8ddff,#e8f2ff); box-shadow:0 8px 20px rgba(108,75,190,.1); }
body.light-theme .advanced-icon { color:#7045c6; filter:none; } body.light-theme .advanced-badge { color:#fff; }
body.light-theme .topbar { background:rgba(255,255,255,.92); border-color:#dbe3ef; }
body.light-theme .crumb, body.light-theme footer { color:#65738a; }
body.light-theme .global-search { background:#f7f9fd; border-color:#d5deeb; }
body.light-theme .global-search input, body.light-theme .global-search button { color:#172033; }
body.light-theme .theme-toggle { background:#fff; color:#51369a; border-color:#d7dcef; }
body.light-theme .course-card, body.light-theme .lesson-content, body.light-theme .lesson-tip, body.light-theme .practice-card, body.light-theme .project-brief, body.light-theme .stat-card, body.light-theme .form-card, body.light-theme .tutor-card, body.light-theme .editor-note, body.light-theme .quiz-panel, body.light-theme .practice-intro, body.light-theme .exam-callout, body.light-theme .notification-card, body.light-theme .suggestion-card, body.light-theme .advanced-course-card, body.light-theme .locked-course-hero, body.light-theme .locked-content-panel { background:#fff; color:#172033; border-color:#dbe3ef; box-shadow:0 5px 18px rgba(30,50,80,.035); }
body.light-theme .course-card h3, body.light-theme .advanced-course-card h3, body.light-theme .lesson-content h1, body.light-theme .lesson-content h2, body.light-theme .lesson-content h3, body.light-theme .stat-card strong, body.light-theme .project-row b { color:#172033; }
body.light-theme .course-card p, body.light-theme .advanced-course-card>p, body.light-theme .lesson-explain, body.light-theme .lesson-notes, body.light-theme .practice-card>p, body.light-theme .project-brief>p, body.light-theme .practice-intro ol, body.light-theme .project-brief ol { color:#48566d; }
body.light-theme .course-bottom, body.light-theme .advanced-card-meta { border-color:#e3e9f2; color:#68778e; }
body.light-theme .level-tag { background:#f0edff; color:#563b9d; }
body.light-theme .language-icon, body.light-theme .feature-icon { background:#eeeaff; color:#5a3da7; }
body.light-theme .project-list, body.light-theme .lesson-list { border-color:#dbe3ef; }
body.light-theme .project-row, body.light-theme .lesson-row { background:#fff; color:#172033; border-color:#e5eaf2; }
body.light-theme .lesson-row:hover { background:#f5f3ff; }
body.light-theme .lesson-row b, body.light-theme .project-row b { color:#172033; }
body.light-theme .lesson-row small, body.light-theme .project-row small, body.light-theme .project-date { color:#68778e; }
body.light-theme .empty-state { background:#fff; color:#58677e; border-color:#cbd5e1; }
body.light-theme .form-card input, body.light-theme .form-card textarea, body.light-theme .admin-edit-form input, body.light-theme .admin-edit-form textarea, body.light-theme .lesson-note-input, body.light-theme .search-page-form input, body.light-theme .tutor-card textarea { background:#fff; color:#172033; border-color:#cbd5e1; }
body.light-theme .lesson-code, body.light-theme .walkthrough-list code { background:#111827; color:#e5e7eb; border-color:#273449; }
body.light-theme .ide { background:#fff; border-color:#cbd5e1; } body.light-theme .ide-top, body.light-theme .file-sidebar, body.light-theme .tab-strip, body.light-theme .output-head { background:#eef2f8; border-color:#d5deeb; }
body.light-theme .ide-top input, body.light-theme .ide-top select, body.light-theme .file-item { color:#263449; }
body.light-theme .file-item.selected, body.light-theme .file-item:hover { background:#e4e9f5; color:#172033; }
body.light-theme .tutor-answer { background:#f1f5fb; color:#263449; }
body.light-theme .walkthrough-details summary, body.light-theme .lesson-section-heading h2 { color:#573b9c; }
body.light-theme .lesson-notes h3, body.light-theme .deep-dive-section h3 { color:#6545ad; }
body.light-theme .mastery-grid>div, body.light-theme .checklist-panel, body.light-theme .reply-card { background:#f8faff; border-color:#dbe3ef; }
body.light-theme .quiz-question { border-color:#d4ddeb; } body.light-theme .quiz-option { color:#35445a; }
body.light-theme .quiz-timer { background:#fff8e6; color:#8a5b00; border-color:#f0d99d; }
body.light-theme .notification-card.unread { background:#eff6ff; border-color:#93c5fd; }
body.light-theme .admin-course { border-color:#dbe3ef; }
body.light-theme .advanced-hero { background:radial-gradient(circle at 85% 20%,rgba(139,92,246,.17),transparent 35%),linear-gradient(120deg,#ffffff,#f2f0ff 58%,#edfaff); border-color:#d9cef7; box-shadow:0 15px 40px rgba(44,40,80,.07); }
body.light-theme .advanced-hero h1 { color:#172033; } body.light-theme .advanced-hero p { color:#536178; }
body.light-theme .advanced-hero-tags span { color:#46546b; background:rgba(255,255,255,.8); border-color:#d9d5eb; }
body.light-theme .advanced-mark-core { box-shadow:0 0 35px rgba(139,92,246,.22); }
body.light-theme .premium-status { background:#fff; border-color:#dbe3ef; }
body.light-theme .premium-status small { color:#58677e; }
body.light-theme .locked-prices>div { background:#f8faff; }
body.light-theme .locked-course-hero { background:radial-gradient(circle at 90% 5%,rgba(139,92,246,.12),transparent 36%),#fff; }
body.light-theme .locked-course-hero h1, body.light-theme .locked-content-panel h2 { color:#172033; }
body.light-theme .locked-course-hero>p, body.light-theme .locked-content-panel p { color:#58677e; }
body.light-theme .back-link, body.light-theme .text-link { color:#6042ad; }
body.light-theme .button { box-shadow:0 4px 12px rgba(79,70,229,.12); }
body.light-theme .flash { box-shadow:0 4px 14px rgba(30,50,80,.06); }
body.light-theme .certificate { background:#fffdf5; color:#26334a; }

@media(max-width:1050px){ .advanced-course-grid{grid-template-columns:repeat(2,minmax(0,1fr));} }
@media(max-width:760px){ .mobile-brand{display:block;} .advanced-nav-link{justify-content:center;} .advanced-nav-link .advanced-icon{display:inline-block;} .advanced-hero{grid-template-columns:1fr;padding:23px}.advanced-hero-mark{width:150px;height:150px;transform:scale(.85);margin:0 auto -10px}.advanced-orbit.orbit-one{width:150px}.advanced-orbit.orbit-two{height:150px}.advanced-course-grid{grid-template-columns:1fr}.advanced-section-heading{align-items:flex-start;flex-direction:column}.premium-status{align-items:flex-start;flex-wrap:wrap}.premium-status .button{margin-left:47px}.locked-content-panel{grid-template-columns:1fr}.locked-benefits{grid-template-columns:1fr}.advanced-nav-link .advanced-badge{display:none} }


/* =========================================================
   FELIXFORGE ACADEMY BRAND + PREMIUM ADVANCED COURSES
========================================================= */
:root { --brand-violet:#8b5cf6; --brand-blue:#3b82f6; --brand-cyan:#22d3ee; }
.brand { letter-spacing:-.45px; }
.brand-muted { color:#b7a7ff; }
.mobile-brand { display:none; }
.advanced-nav-link { position:relative; gap:10px; margin:3px 0; border:1px solid rgba(168,85,247,.26); border-radius:11px; background:linear-gradient(110deg,rgba(124,58,237,.19),rgba(59,130,246,.07)); transition:transform .2s ease,border-color .2s ease,background .2s ease,box-shadow .2s ease; }
.advanced-nav-link:hover { transform:translateX(3px); border-color:rgba(192,132,252,.7); background:linear-gradient(110deg,rgba(124,58,237,.3),rgba(59,130,246,.13)); box-shadow:0 7px 20px rgba(124,58,237,.12); }
.advanced-icon { display:inline-block; font-weight:500; color:#d8b4fe; font-size:17px; filter:drop-shadow(0 0 7px rgba(192,132,252,.7)); }
.advanced-badge { margin-left:auto; padding:3px 7px; border-radius:5px; background:linear-gradient(135deg,#7c3aed,#a855f7); color:#fff; font-size:9px; line-height:1.2; font-weight:800; letter-spacing:.7px; }
.advanced-nav-link.active { border-color:#a78bfa; background:linear-gradient(110deg,rgba(124,58,237,.42),rgba(59,130,246,.16)); box-shadow:0 0 0 1px rgba(167,139,250,.12),0 8px 24px rgba(124,58,237,.16); color:#fff; }
.advanced-nav-link.active .advanced-icon { color:#f3e8ff; }
.advanced-hero { position:relative; overflow:hidden; display:grid; grid-template-columns:minmax(0,1.3fr) minmax(210px,.7fr); gap:25px; align-items:center; padding:32px; border:1px solid rgba(139,92,246,.3); border-radius:22px; background:radial-gradient(circle at 85% 20%,rgba(124,58,237,.25),transparent 35%),linear-gradient(120deg,#121a31,#171d3b 58%,#132c43); box-shadow:0 18px 45px rgba(0,0,0,.15); }
.advanced-hero-copy { position:relative; z-index:1; }
.advanced-hero .eyebrow { color:#c4b5fd; }
.advanced-spark { color:#f0abfc; margin-right:6px; }
.advanced-hero h1 { max-width:650px; margin:12px 0; font:700 clamp(30px,4vw,46px)/1.08 'Space Grotesk',sans-serif; letter-spacing:-1.5px; color:#f8fafc; }
.advanced-hero h1 span { background:linear-gradient(90deg,#c4b5fd,#67e8f9); -webkit-background-clip:text; background-clip:text; color:transparent; }
.advanced-hero p { max-width:650px; color:#c3cde0; font-size:13px; line-height:1.8; }
.advanced-hero-tags { display:flex; flex-wrap:wrap; gap:8px; margin-top:19px; }
.advanced-hero-tags span { border:1px solid rgba(196,181,253,.2); border-radius:999px; padding:7px 10px; color:#e4e8f5; background:rgba(255,255,255,.055); font-size:10px; }
.advanced-hero-mark { position:relative; width:210px; height:210px; margin:auto; display:grid; place-items:center; }
.advanced-orbit { position:absolute; border:1px solid rgba(196,181,253,.36); border-radius:50%; transform:rotate(-28deg); }
.orbit-one { width:190px; height:100px; }
.orbit-two { width:140px; height:190px; transform:rotate(42deg); border-color:rgba(103,232,249,.3); }
.advanced-mark-core { display:grid; place-items:center; width:92px; height:92px; border:1px solid rgba(255,255,255,.35); border-radius:25px; background:linear-gradient(135deg,#8b5cf6,#2563eb); color:#fff; font:700 25px 'Space Grotesk'; box-shadow:0 0 45px rgba(139,92,246,.5); }
.orbit-label { position:absolute; font-size:9px; letter-spacing:2px; font-weight:800; color:#c4b5fd; }
.label-top { top:4px; right:23px; }.label-bottom { bottom:5px; left:18px; color:#67e8f9; }
.premium-status { display:flex; align-items:center; gap:13px; margin:18px 0 28px; padding:14px 17px; border:1px solid var(--line); border-radius:13px; background:var(--panel); }
.premium-status>span:first-child { display:grid; place-items:center; width:34px; height:34px; border-radius:10px; background:rgba(139,92,246,.14); color:#a78bfa; font-size:17px; }
.premium-status>div { display:grid; gap:3px; flex:1; }.premium-status b { font-size:12px; }.premium-status small { color:var(--muted); font-size:11px; line-height:1.5; }
.premium-status.unlocked { border-color:rgba(16,185,129,.35); }.premium-status.unlocked>span:first-child { background:rgba(16,185,129,.12); color:#10b981; }
.premium-status.locked { border-color:rgba(245,158,11,.28); }.status-chip { padding:5px 8px; border-radius:6px; color:#6ee7b7; background:rgba(16,185,129,.12); font-size:9px; font-weight:800; letter-spacing:.7px; }
.advanced-section-heading { display:flex; align-items:end; justify-content:space-between; gap:15px; margin:22px 0 14px; }.advanced-section-heading h2 { margin:6px 0; font:650 24px 'Space Grotesk'; }.advanced-section-heading p { margin:0; color:var(--muted); font-size:12px; }.advanced-count { padding:7px 9px; border:1px solid var(--line); border-radius:7px; color:var(--muted); font-size:9px; font-weight:800; letter-spacing:1px; white-space:nowrap; }
.advanced-course-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; }
.advanced-course-card { min-width:0; display:flex; flex-direction:column; padding:18px; border:1px solid var(--line); border-radius:15px; background:var(--panel); transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease; }
.advanced-course-card:hover { transform:translateY(-3px); border-color:rgba(139,92,246,.65); box-shadow:0 12px 28px rgba(79,70,229,.1); }
.advanced-card-top { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.advanced-course-icon { display:grid; place-items:center; min-width:38px; height:36px; padding:0 7px; border-radius:10px; background:linear-gradient(135deg,rgba(139,92,246,.2),rgba(34,211,238,.12)); color:#c4b5fd; font:700 11px 'Space Grotesk'; }
.advanced-level { padding:5px 8px; border-radius:99px; background:rgba(139,92,246,.12); color:#c4b5fd; font-size:9px; font-weight:700; }
.advanced-course-card h3 { margin:15px 0 7px; font:650 16px/1.35 'Space Grotesk'; color:var(--text); }
.advanced-course-card>p { flex:1; min-height:72px; margin:0; color:var(--muted); font-size:11px; line-height:1.7; }
.advanced-card-meta { display:flex; flex-wrap:wrap; gap:8px 14px; margin:13px 0; padding-top:11px; border-top:1px solid var(--line); color:var(--muted); font-size:10px; }
.advanced-course-action { display:flex; justify-content:space-between; align-items:center; gap:8px; padding:10px 12px; border-radius:9px; background:linear-gradient(100deg,#6d45d8,#4267d5); color:#fff; font-size:11px; font-weight:700; transition:filter .2s ease; }
.advanced-course-action:hover { filter:brightness(1.12); }.advanced-course-action span { font-size:15px; }.locked-action { background:rgba(139,92,246,.12); color:#c4b5fd; border:1px solid rgba(139,92,246,.22); }
.locked-course-hero { padding:28px; margin-bottom:16px; border:1px solid rgba(139,92,246,.3); border-radius:18px; background:radial-gradient(circle at 90% 5%,rgba(139,92,246,.2),transparent 36%),var(--panel); }
.locked-course-label { display:inline-block; margin-top:14px; padding:6px 9px; border-radius:7px; background:rgba(139,92,246,.14); color:#a78bfa; font-size:9px; font-weight:800; letter-spacing:.8px; }
.locked-course-hero h1 { margin:12px 0 8px; font:700 clamp(27px,4vw,39px) 'Space Grotesk'; color:var(--text); }.locked-course-hero>p { max-width:760px; color:var(--muted); font-size:13px; line-height:1.8; }
.locked-content-panel { display:grid; grid-template-columns:58px minmax(0,1fr); gap:17px; padding:24px; border:1px solid var(--line); border-radius:16px; background:var(--panel); }
.locked-content-icon { display:grid; place-items:center; width:48px; height:48px; border-radius:14px; background:linear-gradient(135deg,#7c3aed,#2563eb); color:white; font-size:22px; }
.locked-content-panel h2 { margin:5px 0 8px; font:650 22px 'Space Grotesk'; }.locked-content-panel p { color:var(--muted); font-size:12px; line-height:1.8; }
.locked-benefits { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin:15px 0; color:var(--text); font-size:11px; }
.locked-benefits span::first-letter { color:#10b981; }.locked-prices { display:flex; flex-wrap:wrap; gap:10px; margin:17px 0; }.locked-prices>div { display:grid; gap:5px; min-width:150px; padding:12px 14px; border:1px solid var(--line); border-radius:10px; background:var(--bg); }.locked-prices small { color:var(--muted); font-size:9px; letter-spacing:.8px; }.locked-prices b { font:700 20px 'Space Grotesk'; color:var(--text); }

/* A complete, higher-contrast light palette for the existing components. */
body.light-theme { --bg:#f4f7fc; --panel:#ffffff; --panel2:#edf2fa; --line:#dbe3ef; --text:#172033; --muted:#58677e; --purple:#6941c6; --cyan:#087e8b; --green:#087f5b; background:#f4f7fc; color:#172033; }
body.light-theme .main { background:#f4f7fc; color:#172033; }
body.light-theme .sidebar { background:#ffffff; border-color:#dbe3ef; box-shadow:5px 0 24px rgba(26,42,68,.035); }
body.light-theme .brand { color:#172033; } body.light-theme .brand-muted { color:#6941c6; }
body.light-theme .side-label, body.light-theme .eyebrow { color:#68778e; }
body.light-theme .nav-link { color:#46546b; } body.light-theme .nav-link:hover { background:#f0edff; color:#4c3295; }
body.light-theme .nav-link.active { background:#eeeaff; color:#4c3295; }
body.light-theme .advanced-nav-link { color:#5736a5; border-color:#ddd0ff; background:linear-gradient(110deg,#f0eaff,#f1f6ff); }
body.light-theme .advanced-nav-link:hover, body.light-theme .advanced-nav-link.active { color:#482b91; border-color:#bba5f5; background:linear-gradient(110deg,#e8ddff,#e8f2ff); box-shadow:0 8px 20px rgba(108,75,190,.1); }
body.light-theme .advanced-icon { color:#7045c6; filter:none; } body.light-theme .advanced-badge { color:#fff; }
body.light-theme .topbar { background:rgba(255,255,255,.92); border-color:#dbe3ef; }
body.light-theme .crumb, body.light-theme footer { color:#65738a; }
body.light-theme .global-search { background:#f7f9fd; border-color:#d5deeb; }
body.light-theme .global-search input, body.light-theme .global-search button { color:#172033; }
body.light-theme .theme-toggle { background:#fff; color:#51369a; border-color:#d7dcef; }
body.light-theme .course-card, body.light-theme .lesson-content, body.light-theme .lesson-tip, body.light-theme .practice-card, body.light-theme .project-brief, body.light-theme .stat-card, body.light-theme .form-card, body.light-theme .tutor-card, body.light-theme .editor-note, body.light-theme .quiz-panel, body.light-theme .practice-intro, body.light-theme .exam-callout, body.light-theme .notification-card, body.light-theme .suggestion-card, body.light-theme .advanced-course-card, body.light-theme .locked-course-hero, body.light-theme .locked-content-panel { background:#fff; color:#172033; border-color:#dbe3ef; box-shadow:0 5px 18px rgba(30,50,80,.035); }
body.light-theme .course-card h3, body.light-theme .advanced-course-card h3, body.light-theme .lesson-content h1, body.light-theme .lesson-content h2, body.light-theme .lesson-content h3, body.light-theme .stat-card strong, body.light-theme .project-row b { color:#172033; }
body.light-theme .course-card p, body.light-theme .advanced-course-card>p, body.light-theme .lesson-explain, body.light-theme .lesson-notes, body.light-theme .practice-card>p, body.light-theme .project-brief>p, body.light-theme .practice-intro ol, body.light-theme .project-brief ol { color:#48566d; }
body.light-theme .course-bottom, body.light-theme .advanced-card-meta { border-color:#e3e9f2; color:#68778e; }
body.light-theme .level-tag { background:#f0edff; color:#563b9d; }
body.light-theme .language-icon, body.light-theme .feature-icon { background:#eeeaff; color:#5a3da7; }
body.light-theme .project-list, body.light-theme .lesson-list { border-color:#dbe3ef; }
body.light-theme .project-row, body.light-theme .lesson-row { background:#fff; color:#172033; border-color:#e5eaf2; }
body.light-theme .lesson-row:hover { background:#f5f3ff; }
body.light-theme .lesson-row b, body.light-theme .project-row b { color:#172033; }
body.light-theme .lesson-row small, body.light-theme .project-row small, body.light-theme .project-date { color:#68778e; }
body.light-theme .empty-state { background:#fff; color:#58677e; border-color:#cbd5e1; }
body.light-theme .form-card input, body.light-theme .form-card textarea, body.light-theme .admin-edit-form input, body.light-theme .admin-edit-form textarea, body.light-theme .lesson-note-input, body.light-theme .search-page-form input, body.light-theme .tutor-card textarea { background:#fff; color:#172033; border-color:#cbd5e1; }
body.light-theme .lesson-code, body.light-theme .walkthrough-list code { background:#111827; color:#e5e7eb; border-color:#273449; }
body.light-theme .ide { background:#fff; border-color:#cbd5e1; } body.light-theme .ide-top, body.light-theme .file-sidebar, body.light-theme .tab-strip, body.light-theme .output-head { background:#eef2f8; border-color:#d5deeb; }
body.light-theme .ide-top input, body.light-theme .ide-top select, body.light-theme .file-item { color:#263449; }
body.light-theme .file-item.selected, body.light-theme .file-item:hover { background:#e4e9f5; color:#172033; }
body.light-theme .tutor-answer { background:#f1f5fb; color:#263449; }
body.light-theme .walkthrough-details summary, body.light-theme .lesson-section-heading h2 { color:#573b9c; }
body.light-theme .lesson-notes h3, body.light-theme .deep-dive-section h3 { color:#6545ad; }
body.light-theme .mastery-grid>div, body.light-theme .checklist-panel, body.light-theme .reply-card { background:#f8faff; border-color:#dbe3ef; }
body.light-theme .quiz-question { border-color:#d4ddeb; } body.light-theme .quiz-option { color:#35445a; }
body.light-theme .quiz-timer { background:#fff8e6; color:#8a5b00; border-color:#f0d99d; }
body.light-theme .notification-card.unread { background:#eff6ff; border-color:#93c5fd; }
body.light-theme .admin-course { border-color:#dbe3ef; }
body.light-theme .advanced-hero { background:radial-gradient(circle at 85% 20%,rgba(139,92,246,.17),transparent 35%),linear-gradient(120deg,#ffffff,#f2f0ff 58%,#edfaff); border-color:#d9cef7; box-shadow:0 15px 40px rgba(44,40,80,.07); }
body.light-theme .advanced-hero h1 { color:#172033; } body.light-theme .advanced-hero p { color:#536178; }
body.light-theme .advanced-hero-tags span { color:#46546b; background:rgba(255,255,255,.8); border-color:#d9d5eb; }
body.light-theme .advanced-mark-core { box-shadow:0 0 35px rgba(139,92,246,.22); }
body.light-theme .premium-status { background:#fff; border-color:#dbe3ef; }
body.light-theme .premium-status small { color:#58677e; }
body.light-theme .locked-prices>div { background:#f8faff; }
body.light-theme .locked-course-hero { background:radial-gradient(circle at 90% 5%,rgba(139,92,246,.12),transparent 36%),#fff; }
body.light-theme .locked-course-hero h1, body.light-theme .locked-content-panel h2 { color:#172033; }
body.light-theme .locked-course-hero>p, body.light-theme .locked-content-panel p { color:#58677e; }
body.light-theme .back-link, body.light-theme .text-link { color:#6042ad; }
body.light-theme .button { box-shadow:0 4px 12px rgba(79,70,229,.12); }
body.light-theme .flash { box-shadow:0 4px 14px rgba(30,50,80,.06); }
body.light-theme .certificate { background:#fffdf5; color:#26334a; }

@media(max-width:1050px){ .advanced-course-grid{grid-template-columns:repeat(2,minmax(0,1fr));} }
@media(max-width:760px){ .mobile-brand{display:block;} .advanced-nav-link{justify-content:center;} .advanced-nav-link .advanced-icon{display:inline-block;} .advanced-hero{grid-template-columns:1fr;padding:23px}.advanced-hero-mark{width:150px;height:150px;transform:scale(.85);margin:0 auto -10px}.advanced-orbit.orbit-one{width:150px}.advanced-orbit.orbit-two{height:150px}.advanced-course-grid{grid-template-columns:1fr}.advanced-section-heading{align-items:flex-start;flex-direction:column}.premium-status{align-items:flex-start;flex-wrap:wrap}.premium-status .button{margin-left:47px}.locked-content-panel{grid-template-columns:1fr}.locked-benefits{grid-template-columns:1fr}.advanced-nav-link .advanced-badge{display:none} }

/* Light-theme polish for landing, authentication, and remaining shared controls. */
body.light-theme .hero h1,
body.light-theme .page-heading h1,
body.light-theme .auth-card h1,
body.light-theme .editor-heading h1 { color:#172033; }
body.light-theme .hero-copy { color:#536178; }
body.light-theme .hero-stats small { color:#65738a; }
body.light-theme .auth-card { background:#fff; color:#172033; border-color:#dbe3ef; box-shadow:0 18px 55px rgba(30,50,80,.09); }
body.light-theme .auth-card>p { color:#58677e; }
body.light-theme .stack-form label { color:#35445a; }
body.light-theme .stack-form input { background:#fff; color:#172033; border-color:#cbd5e1; }
body.light-theme .stack-form input::placeholder { color:#8a97aa; }
body.light-theme .auth-switch, body.light-theme .muted-note { color:#58677e; }
body.light-theme .button-ghost { background:#fff; color:#51369a; border:1px solid #d8d2eb; }
body.light-theme .logout-link { color:#536178; }
body.light-theme .quiz-correct { background:#e8f8f0; color:#176344; }
body.light-theme .quiz-incorrect { background:#fff1e8; color:#8a3e17; }
body.light-theme .lesson-section { border-color:#e1e7f0; }
body.light-theme .practice-section { background:#f2f7ff; border-color:#d8e6ff; }
body.light-theme .expected-result { background:#eff6ff; border-color:#dbeafe; }
body.light-theme .expected-result b { color:#2459a6; }
body.light-theme .expected-result p { color:#536178; }
body.light-theme .side-bottom { border-color:#e1e7f0; }
body.light-theme .feature-grid article,
body.light-theme .float-card,
body.light-theme .achievement-card,
body.light-theme .admin-course,
body.light-theme .worked-example-card,
body.light-theme .checklist-panel,
body.light-theme .reply-card,
body.light-theme .suggestion-form,
body.light-theme .suggestion-history { background:#fff; color:#172033; border-color:#dbe3ef; }
body.light-theme .feature-grid h3,
body.light-theme .achievement-card b,
body.light-theme .float-card b { color:#172033; }
body.light-theme .feature-grid p,
body.light-theme .achievement-card p,
body.light-theme .achievement-card span,
body.light-theme .float-card small { color:#58677e; }
body.light-theme .admin-note { background:#eff6ff; border-color:#3b82f6; }

/* FelixForge Academy brand and responsive logo */
.brand-logo{display:block;width:42px;height:42px;flex:0 0 42px;border-radius:12px}
.mobile-brand{align-items:center;gap:9px;text-decoration:none;font:700 15px 'Space Grotesk';color:var(--text)}
.mobile-brand img{display:block;width:32px;height:32px;border-radius:9px}
@media(max-width:900px){.mobile-brand{display:flex}}


/* Accessible password visibility and confirmation controls. */
.password-field{display:flex;align-items:stretch;gap:8px;width:100%}
.password-field input{flex:1;min-width:0}
.password-toggle{flex:0 0 auto;min-width:62px;padding:0 12px;border:1px solid var(--line);border-radius:10px;background:var(--panel2);color:var(--text);font:inherit;font-size:.88rem;font-weight:600;cursor:pointer}
.password-toggle:hover{border-color:var(--purple)}
.password-toggle:focus-visible{outline:2px solid var(--purple);outline-offset:2px}
.password-feedback{margin:-5px 0 2px;font-size:.86rem;color:var(--muted)}
.password-feedback.is-match{color:var(--green)}
.password-feedback.is-error{color:#f0a18e}
.stack-form .full-button:disabled{opacity:.5;cursor:not-allowed;filter:saturate(.5)}
body.light-theme .password-toggle{background:#f3f6fb;color:#26334a;border-color:#cbd5e1}
body.light-theme .password-feedback{color:#65738a}
body.light-theme .password-feedback.is-match{color:#176344}
body.light-theme .password-feedback.is-error{color:#a13b27}


/* Keep logout immediately accessible in the compact mobile header. */
.mobile-logout-form{display:none;margin:0}.mobile-logout{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:36px;padding:7px 10px;border:1px solid rgba(248,113,113,.38);border-radius:9px;background:rgba(239,68,68,.10);color:#ffb4b4;font-size:12px;font-weight:700;cursor:pointer}.mobile-logout:hover{background:rgba(239,68,68,.18);border-color:rgba(248,113,113,.65)}body.light-theme .mobile-logout{color:#b42318;background:#fff1f0;border-color:#f2b8b5}
@media(max-width:760px){.mobile-logout-form{display:block}.top-actions{gap:7px}.mobile-logout{min-height:34px;padding:6px 8px}.mobile-logout span{display:inline}}
@media(max-width:430px){.mobile-logout{font-size:11px;padding:6px 7px}.top-actions{gap:5px}}

/* Expandable navigation */
.sidebar{transition:width .22s ease,padding .22s ease}.sidebar-toggle{position:absolute;right:-13px;top:78px;width:27px;height:27px;border-radius:50%;border:1px solid var(--line);background:#202d46;color:#eaf0ff;cursor:pointer;z-index:8;font-size:19px;line-height:1}.sidebar-collapsed .sidebar{width:78px;padding-left:12px;padding-right:12px}.sidebar-collapsed .main{margin-left:78px}.sidebar-collapsed .brand{justify-content:center;margin-left:0}.sidebar-collapsed .brand>span:last-child,.sidebar-collapsed .side-label,.sidebar-collapsed .nav-link span,.sidebar-collapsed .user-mini>div:last-child,.sidebar-collapsed .logout-link{display:none}.sidebar-collapsed .nav-link{justify-content:center;padding-left:0;padding-right:0}.sidebar-collapsed .side-bottom .user-mini{justify-content:center}.sidebar-collapsed .sidebar-toggle{right:-13px}
.community-post-row{border-bottom:1px solid var(--line);padding-bottom:7px;margin-bottom:8px}.community-post-link{border:0}.community-moderation-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:4px 15px 9px}.community-moderation-actions form{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.community-moderation-actions select,.community-moderation-actions textarea,.admin-inline-form input{background:#0b1322;color:var(--text);border:1px solid var(--line);border-radius:7px;padding:7px;font-size:11px;max-width:210px}.text-action{background:none;border:0;color:#a99cff;cursor:pointer;font-size:11px;font-weight:700}.danger-text{color:#ff929f}.community-blocked{max-width:700px;margin:35px auto;text-align:center;padding:36px}.community-blocked h1{font:700 30px 'Space Grotesk'}.community-blocked p{color:var(--muted);line-height:1.8}.blocked-symbol{font-size:44px;margin:20px}.admin-inline-form{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
@media(max-width:760px){
.sidebar{width:68px;padding:20px 9px;z-index:20;box-shadow:8px 0 28px rgba(0,0,0,.22)}
.sidebar .brand>span:last-child,.sidebar .side-label,.sidebar .nav-link span,.sidebar .side-bottom .user-mini,.sidebar .logout-link{display:none}
.sidebar .brand{margin:0 auto 42px}
.sidebar .nav-link{justify-content:center;padding:13px 0}
.sidebar .side-bottom{display:none}
.sidebar-toggle{display:block;top:74px;right:-13px}
.main{margin-left:68px}
.mobile-sidebar-expanded .sidebar{width:min(245px,78vw);padding:20px 15px}
.mobile-sidebar-expanded .sidebar .brand{justify-content:flex-start;margin:0 0 42px 5px}
.mobile-sidebar-expanded .sidebar .brand>span:last-child,.mobile-sidebar-expanded .sidebar .side-label,.mobile-sidebar-expanded .sidebar .nav-link span{display:inline}
.mobile-sidebar-expanded .sidebar .side-label{display:block}
.mobile-sidebar-expanded .sidebar .nav-link{justify-content:flex-start;padding:13px}
.mobile-sidebar-expanded .sidebar .sidebar-toggle{right:-13px}
.community-blocked{padding:24px 16px}
}



/* Lesson foundations: vocabulary and running code outside the hosted editor. */
.term-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}.term-card,.local-run-grid>div{padding:13px;border:1px solid var(--line);border-radius:10px;background:rgba(120,140,180,.055)}.term-card b,.local-run-grid b{display:block;color:var(--text);font-size:12px;margin-bottom:6px}.term-card p{margin:0;color:var(--muted);font-size:12px;line-height:1.65}.local-run-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}.local-run-grid code{display:block;margin-top:6px;padding:9px;border-radius:7px;background:#0b1220;color:#c8dcff;white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px}.lesson-actions{flex-wrap:wrap}.lesson-actions .button{margin:3px}
.certificate{position:relative;padding:22px;border:1px solid #b99a54;background:#fffdf5;color:#24324a;box-shadow:0 18px 50px rgba(25,35,55,.12);text-align:center}.certificate-inner{position:relative;border:5px double #b99a54;padding:42px 36px 26px;min-height:560px;background:radial-gradient(circle at 50% 0%,rgba(211,185,120,.13),transparent 42%),#fffdf7}.certificate-brand{display:flex;justify-content:center;align-items:center;gap:10px;letter-spacing:.2em;font-size:11px;font-weight:800;color:#79602d}.certificate-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;border:1px solid #b99a54;font:700 12px Georgia,serif;letter-spacing:0}.certificate-kicker{margin-top:34px;color:#98783c;font-size:10px;font-weight:800;letter-spacing:.28em}.certificate h1{margin:8px 0 12px;font:700 38px Georgia,serif;color:#253754}.certificate-rule{display:flex;align-items:center;gap:12px;max-width:250px;margin:0 auto 26px;color:#b18d45}.certificate-rule:before,.certificate-rule:after{content:'';height:1px;flex:1;background:#c9ae72}.certificate-recipient-label{font-size:9px;letter-spacing:.2em;font-weight:800;color:#8a754b}.certificate-name{font:italic 34px Georgia,serif!important;color:#8a682e!important;margin:15px 0 9px}.certificate-copy{font-size:13px;line-height:1.8;color:#536078}.certificate-course{font:700 25px Georgia,serif!important;color:#253754!important;margin:10px 0 14px}.certificate-bottom{display:flex;align-items:end;justify-content:space-between;gap:16px;margin:38px auto 12px;max-width:620px}.certificate-signature-line,.certificate-date{min-width:150px;border-top:1px solid #9b8a66;padding-top:8px;text-align:center;font-size:9px;letter-spacing:.08em;color:#48556b}.certificate-signature-line small,.certificate-date small{display:block;margin-top:4px;font-size:8px;letter-spacing:.12em;color:#8a8d91}.certificate-seal{width:76px;height:76px;border:3px double #b99a54;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#947337;transform:rotate(-8deg)}.certificate-seal span{font:700 18px Georgia,serif}.certificate-seal small{font-size:6px;line-height:1.3;letter-spacing:.12em}.certificate-disclaimer{margin-top:18px!important;font-size:8px!important;color:#858585!important}
@media(max-width:760px){.term-grid,.local-run-grid{grid-template-columns:1fr}.certificate-inner{padding:25px 14px;min-height:auto}.certificate h1{font-size:27px}.certificate-name{font-size:27px!important}.certificate-bottom{gap:8px}.certificate-seal{width:58px;height:58px;flex-shrink:0}.certificate-signature-line,.certificate-date{min-width:0;flex:1}}
@media print{
  @page{size:A4 landscape;margin:8mm}
  html,body{background:#fff!important;margin:0!important;padding:0!important}
  body *{visibility:hidden!important}
  #printableCertificate,#printableCertificate *{visibility:visible!important}
  #printableCertificate{position:absolute!important;left:0!important;top:0!important;width:100%!important;max-width:none!important;margin:0!important;padding:5mm!important;box-shadow:none!important;break-inside:avoid!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  #printableCertificate .certificate-inner{min-height:150mm;padding:8mm 14mm 6mm!important}
  .certificate-wrap{max-width:none!important;margin:0!important;padding:0!important}
}
