/* ---- generated from style.css ---- */
:root[data-theme="dark"] .brand .code { color: #e5e7eb; }
:root[data-theme="dark"] .main-nav { color: #d4d8e3; }
:root[data-theme="dark"] .login-link { color: #d4d8e3; }
:root[data-theme="dark"] .btn-ghost { color: #d4d8e3; border: 1.5px solid #3a3f54; }
:root[data-theme="dark"] .hero h1 { color: #eceef4; }
:root[data-theme="dark"] .hero p { color: #d4d8e3; }
:root[data-theme="dark"] .section-title p { color: #c3c8d4; }
:root[data-theme="dark"] .level { background: #332c58; }
:root[data-theme="dark"] .course-body p { color: #c3c8d4; }
:root[data-theme="dark"] .feature p { color: #c3c8d4; }
/* ---- generated from lesson.css ---- */
:root[data-theme="dark"] .progress { background: #262a3a; }
:root[data-theme="dark"] .lesson-nav select { background: #1b1e2c; }
:root[data-theme="dark"] .icon-btn { color: #d4d8e3; }
:root[data-theme="dark"] .lesson-body { color: #d4d8e3; }
:root[data-theme="dark"] code { background: #232637; color: #a5b4fc; }
:root[data-theme="dark"] .task-head { color: #a5b4fc; }
:root[data-theme="dark"] .ai-dot { box-shadow: 0 0 0 4px #143823; }
:root[data-theme="dark"] .msg { background: #1d2030; }
:root[data-theme="dark"] .msg.user { background: #252947; color: #b4bffd; }
:root[data-theme="dark"] .msg.ok { background: #12291c; border: 1px solid #1f5135; }
:root[data-theme="dark"] .msg.tip { background: #2f2610; }
:root[data-theme="dark"] .msg.event { background: #2a2547; }
:root[data-theme="dark"] .msg.err { border: 1px solid #6b2a2e; }
:root[data-theme="dark"] .msg.err .err-title { background: #331a1d; }
:root[data-theme="dark"] .msg.logic .err-title { background: #2f2212; }
:root[data-theme="dark"] .err-sec { border-top: 1px solid #262a3a; }
:root[data-theme="dark"] .err-sec.why h4 { color: #c4b5fd; }
:root[data-theme="dark"] .fix-line pre { background: #12291c; color: #86efac; }
:root[data-theme="dark"] .ai-ask input { background: #1b1e2c; }
:root[data-theme="dark"] .ai-ask input:focus { outline: 2px solid #454b85; border-color: #5a61a8; }
:root[data-theme="dark"] .file-tab { background: #1d2030; color: #d4d8e3; }
:root[data-theme="dark"] .tool-btn { color: #d4d8e3; }
:root[data-theme="dark"] .tool-btn:hover { border-color: #5a61a8; color: #a5b4fc; }
:root[data-theme="dark"] .tool-btn.active { background: #252947; border-color: #5a61a8; color: #a5b4fc; }
:root[data-theme="dark"] .switch { color: #d4d8e3; }
:root[data-theme="dark"] .switch .slider { background: #3a3f54; }
:root[data-theme="dark"] .gutter { border-right: 1px solid #262a3a; }
:root[data-theme="dark"] .gutter div.err { color: #f87171; }
:root[data-theme="dark"] .gutter div.exec { color: #4ade80; }
:root[data-theme="dark"] .gutter div.exec::before { color: #4ade80; }
:root[data-theme="dark"] #code { caret-color: #a5b4fc; }
:root[data-theme="dark"] .backdrop .ln.exec { background: #12291c; }
:root[data-theme="dark"] .backdrop .ln.err { background: #331a1d; }
:root[data-theme="dark"] .backdrop .ln.err-hint { background: repeating-linear-gradient(90deg, transparent 0 6px, #3d1c20 6px 8px) bottom/100% 2px no-repeat; }
:root[data-theme="dark"] .bad { background: #3d1c20; color: #fca5a5 !important; }
:root[data-theme="dark"] .bad-ws { background: #6b2a2e; }
:root[data-theme="dark"] .k-kw { color: #c4b5fd; }
:root[data-theme="dark"] .k-fn { color: #7aa7ff; }
:root[data-theme="dark"] .k-cm { color: #8790a3; }
:root[data-theme="dark"] .k-bool { color: #fbbf24; }
:root[data-theme="dark"] .match-bar { background: #262a3a; }
:root[data-theme="dark"] .live-status.warn { color: #fbbf24; }
:root[data-theme="dark"] .live-status.ok { color: #4ade80; }
:root[data-theme="dark"] .console-head { color: #d4d8e3; }
:root[data-theme="dark"] .console { color: #e5e7eb; }
:root[data-theme="dark"] .console .c-err { color: #f87171; }
:root[data-theme="dark"] .console .c-ok { color: #4ade80; }
:root[data-theme="dark"] .console .c-dim { color: #8790a3; }
:root[data-theme="dark"] .fb { border: 1.5px solid #2e3244; }
:root[data-theme="dark"] .fb-code { color: #d4d8e3; }
:root[data-theme="dark"] .fb-val { background: #262a3a; color: #d4d8e3; }
:root[data-theme="dark"] .fb-print { border-color: #1f5135; }
:root[data-theme="dark"] .fb-print .fb-kind { color: #86efac; }
:root[data-theme="dark"] .fb-print .fb-val { background: #12291c; color: #86efac; }
:root[data-theme="dark"] .fb-if { border-color: #4b4380; }
:root[data-theme="dark"] .fb-if > .fb-row .fb-kind { color: #c4b5fd; }
:root[data-theme="dark"] .fb-loop > .fb-row .fb-kind { color: #67e8f9; }
:root[data-theme="dark"] .pill.true { background: #143823; color: #86efac; }
:root[data-theme="dark"] .pill.false { background: #3d1c20; color: #fca5a5; }
:root[data-theme="dark"] .pill.loop { color: #67e8f9; }
:root[data-theme="dark"] .pill.idle { background: #262a3a; color: #9aa3b5; }
:root[data-theme="dark"] .branch { border: 1.5px dashed #4b4380; }
:root[data-theme="dark"] .branch-label { color: #c4b5fd; }
:root[data-theme="dark"] .loop-iter { color: #67e8f9; }
:root[data-theme="dark"] .graph .gnode .nextbox { fill: #252947; }
:root[data-theme="dark"] .graph .edge-label { fill: #6f78d6; }
:root[data-theme="dark"] .oop-title { color: #8790a3; }
:root[data-theme="dark"] .cls-head { color: #eceef4; }
:root[data-theme="dark"] .inh { background: #262a3a; color: #aeb6c6; }
:root[data-theme="dark"] .cls-methods .m { color: #cfd5e1; }
:root[data-theme="dark"] .cls-methods .m i { color: #8790a3; }
:root[data-theme="dark"] .cls-count { color: #9aa3b5; }
:root[data-theme="dark"] .obj-empty { border: 1.5px dashed #2e3244; }
:root[data-theme="dark"] .obj-head small { color: #8790a3; }
:root[data-theme="dark"] .oa span { color: #9aa3b5; }
:root[data-theme="dark"] .oa b { color: #eceef4; }
:root[data-theme="dark"] .oa.changed { background: #143823; }
:root[data-theme="dark"] .frame-note { color: #cfd5e1; background: #12291c; border: 1px solid #1f5135; }
:root[data-theme="dark"] .locals { background: #12291c; }
:root[data-theme="dark"] .locals-head { color: #86efac; }
:root[data-theme="dark"] .var.local { border-color: #1f5135; }
:root[data-theme="dark"] .var.local .vn { background: #143823; color: #86efac; }
:root[data-theme="dark"] .var { border: 1.5px solid #323765; }
:root[data-theme="dark"] .var .vn { background: #252947; color: #a5b4fc; }
:root[data-theme="dark"] .var .vv { color: #eceef4; }
:root[data-theme="dark"] .var.changed { box-shadow: 0 0 0 3px #143823; }
:root[data-theme="dark"] .muted { color: #8790a3; }
:root[data-theme="dark"] .coming-soon p { color: #c3c8d4; }
/* ---- generated from ui.css ---- */
:root[data-theme="dark"] .ghost-btn { color: #d4d8e3; }
:root[data-theme="dark"] .ghost-btn:hover { border-color: #5a61a8; color: #a5b4fc; }
:root[data-theme="dark"] .icon-btn:hover:not(:disabled) { background: #20233a; }
:root[data-theme="dark"] .menu-trigger:hover, :root[data-theme="dark"] .menu-trigger[data-popup-open] { background: #232637; }
:root[data-theme="dark"] .menu-item[data-highlighted] { background: #232637; }
:root[data-theme="dark"] .menu-item.current { background: #252947; color: #a5b4fc; }
:root[data-theme="dark"] .select-trigger { background: #1b1e2c; }
:root[data-theme="dark"] .select-trigger:hover, :root[data-theme="dark"] .select-trigger[data-popup-open] { border-color: #5a61a8; }
:root[data-theme="dark"] .select-item[data-highlighted] { background: #232637; }
:root[data-theme="dark"] .select-item[data-selected] { color: #a5b4fc; }
:root[data-theme="dark"] .select-num { background: #232637; color: #9aa3b5; }
:root[data-theme="dark"] .select-num.done { background: #143823; color: #86efac; }
:root[data-theme="dark"] .select-ind { color: #a5b4fc; }
:root[data-theme="dark"] .switch-field { color: #d4d8e3; }
:root[data-theme="dark"] .switch { background: #3a3f54; }
:root[data-theme="dark"] .slider-track { background: #2e3244; }
:root[data-theme="dark"] .progress-track { background: #262a3a; }
:root[data-theme="dark"] .match-track { background: #262a3a; }
:root[data-theme="dark"] .lesson-kicker { background: #252947; }
:root[data-theme="dark"] .dlg-desc { color: #c3c8d4; }
:root[data-theme="dark"] .help-list { color: #d4d8e3; }
:root[data-theme="dark"] kbd { background: #232637; border: 1px solid #2e3244; }
:root[data-theme="dark"] .t-close { color: #8790a3; }
:root[data-theme="dark"] .login-link:hover { background: #232637; }
:root[data-theme="dark"] .main-nav .menu-trigger { color: #d4d8e3; }
:root[data-theme="dark"] .hero-badge { color: #a5b4fc; border: 1px solid #323765; }
:root[data-theme="dark"] .seg { background: #232637; }
:root[data-theme="dark"] .seg-tab { color: #9aa3b5; }
:root[data-theme="dark"] .seg-tab[data-active] { color: #c7d2fe; }
:root[data-theme="dark"] .card-track { background: #262a3a; }
:root[data-theme="dark"] .faq-item[data-open] { border-color: #454b85; }
:root[data-theme="dark"] .faq-panel p { color: #c3c8d4; }
:root[data-theme="dark"] .lesson-page #code { caret-color: #a5b4fc; }
:root[data-theme="dark"] .editor-card.focused { border-color: #5a61a8; }
:root[data-theme="dark"] .boot-error { color: #d4d8e3; }
:root[data-theme="dark"] .boot-error b { color: #fca5a5; }
:root[data-theme="dark"] .task.question { background: linear-gradient(135deg, #2a2547, #eef6ff); border-color: #4b4380; }
:root[data-theme="dark"] .q-text { color: #e5e7eb; }
:root[data-theme="dark"] .q-text b[dir="ltr"] { border: 1px solid #323765; color: #b4bffd; }
:root[data-theme="dark"] .q-btn { border: 1px solid #454b85; color: #b4bffd; }
:root[data-theme="dark"] .q-btn:hover { background: #252947; border-color: #5a61a8; }
:root[data-theme="dark"] .q-btn.on { background: #252947; border-color: #6f78d6; }
:root[data-theme="dark"] .q-star { background: #2f2a10; }
:root[data-theme="dark"] .resizer::after { background: #5a61a8; }
:root[data-theme="dark"] .panel-x { color: #9aa3b5; }
:root[data-theme="dark"] .panel-x:hover { background: #232637; color: #a5b4fc; border-color: #323765; }
:root[data-theme="dark"] .task.question { border: 1px solid #323765; }
:root[data-theme="dark"] .lesson-page .editor-card.focused { box-shadow: inset 0 2px 0 #6f78d6; }
:root[data-theme="dark"] .lesson-page .editor-toolbar { border-bottom: 1px solid #262a3a; }
:root[data-theme="dark"] .ghost-chip { color: #a5b4fc; background: #252947; }
:root[data-theme="dark"] .lesson-page .gutter { border-right-color: #262a3a; }
:root[data-theme="dark"] .lesson-page .viz-head { border-bottom: 1px solid #262a3a; }
:root[data-theme="dark"] .lesson-page .viz-stage { background: radial-gradient(circle at 1px 1px, #262a3a 1px, transparent 0) 0 0 / 22px 22px, var(--paper); }
:root[data-theme="dark"] .rail-btn { color: #aeb6c6; }
:root[data-theme="dark"] .rail-btn:hover:not(:disabled) { background: #20233a; color: #a5b4fc; }
:root[data-theme="dark"] .rail-btn.active { background: #252947; color: #a5b4fc; border-color: #454b85; }
:root[data-theme="dark"] .rail-btn.rail-ai.active .rail-ai-ic { box-shadow: 0 0 0 3px #454b85; }
:root[data-theme="dark"] .auth-switch { background: #232637; }
:root[data-theme="dark"] .auth-switch button { color: #9aa3b5; }
:root[data-theme="dark"] .auth-switch button.on { color: #c7d2fe; }
:root[data-theme="dark"] .field { color: #d4d8e3; }
:root[data-theme="dark"] .field input { border: 1.5px solid #3a3f54; }
:root[data-theme="dark"] .form-error { color: #fca5a5; }
:root[data-theme="dark"] .form-note { color: #86efac; background: #12291c; border: 1px solid #1f5135; }
:root[data-theme="dark"] .demo-note { background: #2f2610; color: #fcd34d; }
:root[data-theme="dark"] .season-pill.running { background: #143823; color: #86efac; }
:root[data-theme="dark"] .season-pill.upcoming { background: #323765; color: #b4bffd; }
:root[data-theme="dark"] .season-pill.ended { background: #262a3a; color: #d4d8e3; }
:root[data-theme="dark"] .season-count b { color: #a5b4fc; }
:root[data-theme="dark"] .season-track { background: #262a3a; }
:root[data-theme="dark"] .winner-banner { color: #fcd34d; }
:root[data-theme="dark"] .podium-block { background: #262a3a; }
:root[data-theme="dark"] .p2 .podium-block { background: linear-gradient(180deg, #2e3244, #3a3f54); }
:root[data-theme="dark"] .podium-spot.me .podium-name { color: #a5b4fc; }
:root[data-theme="dark"] .my-rank { background: #252947; border: 1px solid #454b85; color: #c7d2fe; }
:root[data-theme="dark"] .board-row.me { background: #252947; }
:root[data-theme="dark"] .board-row .rank { color: #9aa3b5; }
:root[data-theme="dark"] .board-row .solved, :root[data-theme="dark"] .board-row .stars { color: #c3c8d4; }
:root[data-theme="dark"] .board-msg.err { color: #fca5a5; }
:root[data-theme="dark"] .rules { border: 1px dashed #3a3f54; }
:root[data-theme="dark"] .rules ul { color: #d4d8e3; }
:root[data-theme="dark"] .rail-btn.rail-ai { background: linear-gradient(160deg, #252947, #2a2547); border-color: #454b85; color: #a5b4fc; }
:root[data-theme="dark"] .rail-btn.rail-ai:hover { background: linear-gradient(160deg, #323765, #332c58); }
:root[data-theme="dark"] .rail-btn.rail-ai.active { background: #323765; border-color: #6f78d6; }
:root[data-theme="dark"] .rail-btn.rail-ai.new .rail-ai-ic::after { border: 2px solid #6f78d6; }
:root[data-theme="dark"] .help-dlg-link { color: #a5b4fc; }
:root[data-theme="dark"] .field select, :root[data-theme="dark"] .field textarea, :root[data-theme="dark"] .reply-box textarea, :root[data-theme="dark"] .reply-actions select { border: 1.5px solid #3a3f54; }
:root[data-theme="dark"] .field-error { color: #fca5a5; }
:root[data-theme="dark"] .ticket-sent-ic { background: #143823; color: #4ade80; }
:root[data-theme="dark"] .ticket-sent a { color: #a5b4fc; }
:root[data-theme="dark"] .contact-side > div { border: 1px dashed #3a3f54; }
:root[data-theme="dark"] .contact-side a { color: #a5b4fc; }
:root[data-theme="dark"] .muted-box { background: #20233a; }
:root[data-theme="dark"] .ticket-status.open { color: #fcd34d; }
:root[data-theme="dark"] .ticket-status.answered { background: #143823; color: #86efac; }
:root[data-theme="dark"] .ticket-status.closed { background: #262a3a; color: #c3c8d4; }
:root[data-theme="dark"] .ticket-msg { color: #d4d8e3; }
:root[data-theme="dark"] .ticket-reply { background: #252947; }
:root[data-theme="dark"] .ticket-reply span { color: #a5b4fc; }
:root[data-theme="dark"] .reply-meta a { color: #a5b4fc; }
