:root{color-scheme:light;--bg:#f7f7f2;--surface:#fff;--soft:#efefe9;--ink:#283a32;--muted:#69736c;--line:#e1e5dc;--green:#305848;--green-hover:#244637;--sage:#e6eddf;--lime:#dcecaf;--lavender:#eae6f7;--peach:#f7e6d5;--success:#287348;--error:#ad4e3c;--shadow:0 16px 40px #26382a0a;--code:#202e29;--code-ink:#e2eddc;--radius:22px}
[data-theme=dark]{color-scheme:dark;--bg:#101827;--surface:#182438;--soft:#20304a;--ink:#e8eff9;--muted:#a8b9d1;--line:#32445e;--green:#a8caff;--green-hover:#c3daff;--sage:#243b59;--lime:#b8d4ff;--lavender:#30334f;--peach:#3d3040;--success:#a6d7ce;--error:#ffb8ad;--shadow:0 16px 40px #030b192b;--code:#0b1425;--code-ink:#deebff}
*{box-sizing:border-box}body{margin:0;font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink);background:var(--bg);font-size:15px;line-height:1.55}button,input,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}a{color:inherit}button{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #a088dc;outline-offset:4px}button{color:inherit}h1,h2,h3,p{margin-top:0}h1,h2,h3{line-height:1.15;letter-spacing:-.035em}h1{font-size:clamp(30px,3.4vw,46px);font-weight:650}h2{font-size:28px;font-weight:650}h3{font-size:19px}p{margin-bottom:14px}small{font-size:12px}code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.9em;background:var(--soft);padding:2px 5px;border-radius:4px}pre{white-space:pre-wrap;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}pre code{padding:0;background:none}
.skip-link{position:fixed;top:-80px;left:20px;z-index:100;background:var(--surface);padding:12px}.skip-link:focus{top:10px}.app-shell{display:flex;min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:252px;background:var(--surface);border-right:1px solid var(--line);display:flex;flex-direction:column;padding:30px 20px 20px;z-index:30;overflow:auto}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-size:26px;letter-spacing:-1.5px;font-weight:750;padding:0 9px}.brand-light{font-weight:350}.brand small{display:block;font-size:8px;letter-spacing:2px;font-weight:650;color:var(--muted);margin-top:0}.nav-home{display:flex;align-items:center;gap:12px;background:var(--soft);border:0;border-radius:12px;padding:12px 15px;margin:35px 0 28px;font-size:13px;font-weight:650;text-align:left}.nav-home span{font-size:21px}.sidebar-caption{font-size:10px;letter-spacing:1.5px;color:var(--muted);font-weight:650;margin:0 10px 15px}.module-nav{display:flex;gap:10px;font-size:13px;font-weight:650;padding:0 8px 15px}.module-nav small{display:block;color:var(--muted);font-weight:400;margin-top:2px}.module-dot{border:1px solid var(--line);width:27px;height:27px;border-radius:9px;display:grid;place-items:center;font-size:12px}.lesson-nav-item{display:flex;align-items:center;gap:10px;width:100%;background:none;border:0;padding:10px 9px;border-radius:10px;font-size:12px;text-align:left;line-height:1.4;margin-bottom:3px;min-height:42px}.lesson-nav-item:hover:not(:disabled){background:var(--soft)}.lesson-nav-item.active{background:var(--sage);font-weight:650}.lesson-nav-item:disabled{opacity:.7}.lesson-nav-item .nav-number{display:grid;place-items:center;flex-shrink:0;width:23px;height:23px;border:1px solid var(--line);border-radius:50%;font-size:10px;color:var(--muted)}.lesson-nav-item.done .nav-number{background:var(--green);color:var(--surface);border-color:var(--green)}.nav-case-label{font-size:9px;color:var(--muted);letter-spacing:1.5px;padding:16px 10px 7px}.sidebar-bottom{margin-top:auto;padding:25px 9px 0}.mini-progress-label{font-size:11px;display:flex;justify-content:space-between;margin-bottom:8px}.progress-track{height:7px;border-radius:20px;overflow:hidden;background:var(--line)}.progress-track>div{height:100%;width:0;background:var(--green);border-radius:inherit;transition:width .65s ease}.sidebar-bottom p{font-size:12px;color:var(--muted);margin:18px 0 7px}.text-button{border:0;background:none;color:var(--green);font-size:12px;font-weight:650;padding:8px 0}.main-shell{margin-left:252px;flex:1;min-width:0}.topbar{height:84px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 38px;gap:16px}.topbar-left,.topbar-actions{display:flex;align-items:center;gap:22px}.breadcrumb{font-size:12px;color:var(--muted)}.breadcrumb span{margin:0 12px;color:var(--line)}.breadcrumb strong{color:var(--ink);font-weight:500}.save-label{font-size:10px;color:var(--muted)}.theme-button{border:1px solid var(--line);background:var(--surface);padding:8px 12px;border-radius:30px;display:flex;gap:8px;align-items:center;font-size:11px;min-height:38px}.theme-button span:first-child{font-size:19px}.profile-button{background:none;border:0;display:flex;align-items:center;gap:8px;font-size:12px}.avatar{width:32px;height:32px;border-radius:50%;background:var(--lavender);display:grid;place-items:center;font-weight:650}.icon-button{background:none;border:0;font-size:22px;min-height:44px;min-width:44px;border-radius:10px}.menu-toggle{display:none}main{max-width:1500px;margin:auto;padding:35px 38px 25px}.page-footer{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:10px;padding:15px 38px 24px}.eyebrow{display:block;font-size:10px;letter-spacing:2px;font-weight:700;margin-bottom:13px;color:var(--muted)}.greeting{display:flex;justify-content:space-between;align-items:end;margin-bottom:24px}.greeting h1{font-size:28px;margin:0 0 5px}.greeting p{color:var(--muted);font-size:13px;margin:0}.pill{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--line);border-radius:30px;font-size:10px;padding:6px 10px;white-space:nowrap}.pill .status-dot{height:6px;width:6px;background:#84aa63;border-radius:50%}.hero{background:#29493c;border-radius:26px;color:#f7f8eb;padding:34px 36px;display:grid;grid-template-columns:1.3fr 1fr;gap:22px;overflow:hidden;position:relative}.hero .eyebrow{color:#c6d5bf}.hero h1{margin:0 0 15px;max-width:470px}.hero p{color:#d2ded0;max-width:410px;font-size:13px;line-height:1.7}.hero-tags{display:flex;gap:14px;flex-wrap:wrap;font-size:10px;color:#d3decf;margin-bottom:24px}.hero .primary{background:#dcecaf;color:#2c4534}.hero .primary:hover{background:#e6f4c5}.hero-art{display:flex;align-items:center;justify-content:center;position:relative;min-height:260px}.hero-art svg{width:100%;max-width:320px}.hero-floating{position:absolute;bottom:6px;right:0;background:#eae6f7;color:#514263;font-size:11px;font-weight:550;padding:9px 15px;border-radius:25px;transform:rotate(-5deg)}.button{display:inline-flex;justify-content:center;align-items:center;gap:8px;border-radius:12px;padding:12px 20px;min-height:45px;border:1px solid var(--line);font-size:13px;font-weight:650;background:var(--surface);text-decoration:none}.button.primary{background:var(--green);color:var(--surface);border-color:transparent}.button.primary:hover:not(:disabled){background:var(--green-hover)}.button.secondary{background:var(--soft)}.button.small{padding:9px 13px;min-height:39px;font-size:11px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:18px 0 30px}.stat{display:flex;gap:12px;align-items:center;border:1px solid var(--line);background:var(--surface);border-radius:16px;padding:16px 18px}.stat-icon{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:var(--lavender);font-size:19px}.stat:nth-child(2) .stat-icon{background:var(--sage)}.stat:nth-child(3) .stat-icon{background:var(--peach)}.stat strong{display:block;font-size:16px;letter-spacing:-.5px}.stat small{color:var(--muted);font-size:10px}.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.section-head h2{font-size:21px;margin:0 0 4px}.section-head p{font-size:12px;color:var(--muted);margin:0}.section-head .section-progress{width:155px;font-size:10px;color:var(--muted)}.section-progress .progress-track{margin-top:7px}.lesson-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.lesson-card{position:relative;border:1px solid var(--line);background:var(--surface);padding:18px 16px;border-radius:17px;text-align:left;min-height:165px;display:flex;flex-direction:column;transition:transform .18s,border-color .18s}.lesson-card:not(:disabled):hover{transform:translateY(-4px);border-color:var(--green);box-shadow:var(--shadow)}.lesson-card.current{border-color:var(--green)}.lesson-card .card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.card-number{font-size:11px;color:var(--muted);font-family:ui-monospace,monospace}.card-status{font-size:11px;color:var(--muted)}.lesson-card h3{font-size:15px;letter-spacing:-.02em;margin:0 0 5px}.lesson-card p{font-size:10px;color:var(--muted);margin-bottom:12px}.card-bottom{font-size:10px;color:var(--muted);display:flex;justify-content:space-between;margin-top:auto}.lesson-card.current .card-status,.lesson-card.completed .card-status{color:var(--success)}.lesson-card:disabled{opacity:.65}.case-section{margin-top:30px}.case-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.case-card{background:var(--lavender);border:1px solid var(--line);border-radius:18px;text-align:left;padding:20px;display:flex;align-items:center;gap:17px}.case-card:nth-child(2){background:var(--peach)}.case-card h3{font-size:17px;margin:0 0 5px}.case-card p{font-size:11px;color:var(--muted);margin:0}.case-icon{font-size:29px}.case-card .case-arrow{margin-left:auto}.case-card:disabled{opacity:.65}.pilot-note{font-size:11px;color:var(--muted);margin:24px 0 0;display:flex;gap:8px;align-items:start}.lesson-header{display:flex;align-items:start;justify-content:space-between;gap:20px;margin-bottom:25px}.lesson-header h1{font-size:32px;margin-bottom:10px}.lesson-header p{font-size:12px;color:var(--muted);margin:0}.back-button{background:none;border:0;color:var(--muted);font-size:11px;padding:0;margin-bottom:20px;min-height:24px}.lesson-header .eyebrow{margin-bottom:10px}.lesson-local-progress{min-width:150px;max-width:180px;padding-top:12px}.lesson-local-progress small{font-size:11px;color:var(--muted);display:block;margin-bottom:8px}.workspace{display:grid;grid-template-columns:minmax(290px,.88fr) minmax(340px,1.12fr);gap:20px;align-items:start}.lesson-reading{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:26px;box-shadow:var(--shadow)}.reading-label{display:flex;align-items:center;gap:9px;font-size:10px;letter-spacing:1.5px;color:var(--muted);font-weight:650;margin-bottom:16px}.reading-label span{background:var(--lavender);padding:4px 8px;border-radius:8px;font-size:15px;letter-spacing:0}.lesson-reading p{font-size:13px;line-height:1.8}.example-label{font-size:10px;color:var(--muted);margin:20px 0 8px}.example-code{border:1px solid var(--line);background:var(--soft);border-radius:12px;padding:16px;font-size:12px;margin:0 0 12px;line-height:1.9;color:var(--green);overflow:auto}.read-translation{border-left:2px solid var(--line);padding-left:12px;color:var(--muted);font-size:12px!important}.remember{background:var(--sage);border-radius:12px;padding:14px;margin-top:20px;font-size:12px;line-height:1.7}.remember strong{display:block;font-size:11px;margin-bottom:4px}.practice-panel{min-width:0}.task-tabs{display:flex;gap:8px;margin-bottom:13px;flex-wrap:wrap}.task-tab{border:1px solid var(--line);background:var(--surface);padding:8px 13px;font-size:11px;border-radius:30px;min-height:37px}.task-tab.active{background:var(--sage);border-color:var(--green)}.task-tab.done{color:var(--success)}.task-heading{padding:0 2px 2px}.task-heading h2{font-size:20px;margin:0 0 10px}.task-heading p{font-size:12px;line-height:1.75;min-height:42px}.editor{background:var(--code);border-radius:17px;overflow:hidden;border:1px solid var(--line)}.editor-toolbar{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;color:#a9b9ad;font-size:10px;border-bottom:1px solid #ffffff14}.editor-dots{display:inline-flex;gap:5px;margin-right:10px}.editor-dots i{width:6px;height:6px;border-radius:50%;background:#97b088}.editor-dots i:nth-child(2){background:#cbb498}.editor-dots i:nth-child(3){background:#b2a5cb}.editor-name{display:flex;align-items:center}.editor-shortcut{font-size:9px}.code-area{display:flex;min-height:155px}.line-numbers{padding:16px 0 15px 16px;width:40px;color:#637c6c;font:12px/1.9 ui-monospace,SFMono-Regular,Consolas,monospace;user-select:none;text-align:right}.code-area textarea{width:100%;min-height:155px;resize:vertical;background:none;border:0;color:var(--code-ink);padding:16px 18px 15px 14px;outline-offset:-4px;font:13px/1.75 ui-monospace,SFMono-Regular,Consolas,monospace;tab-size:2;caret-color:#dcecaf;-webkit-text-size-adjust:100%;border-radius:0}.code-area textarea::placeholder{color:#7f9689}.editor-bottom{display:flex;align-items:center;justify-content:space-between;padding:10px 13px;border-top:1px solid #ffffff14;gap:10px}.editor-reset{background:none;border:0;color:#b2c0b5;font-size:10px;min-height:36px}.editor .primary{background:#dcecaf;color:#2c4534;font-size:11px;padding:10px 15px;min-height:39px}.editor .primary:hover{background:#e6f4c5}.hint-area{margin-top:12px}.hint-heading{display:flex;justify-content:space-between;align-items:center}.hint-count{font-size:10px;color:var(--muted)}.hint-box{font-size:12px;line-height:1.7;padding:12px 15px;border:1px solid var(--line);border-radius:12px;background:var(--surface);margin-top:8px}.feedback{margin-top:13px;padding:14px 16px;border-radius:13px;font-size:12px;line-height:1.65;border:1px solid var(--line)}.feedback.success{background:var(--sage);color:var(--success)}.feedback.error{background:var(--peach);color:var(--error)}.feedback strong{display:block;font-size:13px;margin-bottom:3px}.feedback .button{margin-top:11px}.results-panel{margin-top:18px;border:1px solid var(--line);border-radius:16px;background:var(--surface);overflow:hidden}.results-header{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-bottom:1px solid var(--line);font-size:11px;font-weight:650}.results-header small{font-size:10px;font-weight:400;color:var(--muted)}.table-scroll{overflow:auto;max-height:280px}.data-table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:11px;text-align:left}.data-table th{color:var(--muted);background:var(--soft);font-size:10px;font-weight:550;position:sticky;top:0}.data-table th,.data-table td{padding:10px 14px;border-bottom:1px solid var(--line)}.data-table tr:last-child td{border-bottom:0}.results-empty{padding:28px 16px;color:var(--muted);font-size:12px;text-align:center}.data-explorer{margin-top:25px;border:1px solid var(--line);border-radius:17px;background:var(--surface);overflow:hidden}.data-explorer summary{padding:16px 20px;cursor:pointer;font-size:12px;font-weight:600;min-height:48px}.explorer-tabs{display:flex;gap:9px;padding:0 20px 14px}.explorer-note{font-size:11px;color:var(--muted);padding:0 20px;margin-bottom:14px}.schema-grid{padding:0 20px 20px;display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.schema-cell{padding:12px;background:var(--soft);border-radius:10px;font-size:11px}.schema-cell strong{font-family:ui-monospace,monospace;font-size:11px}.schema-cell small{float:right;font-size:9px;color:var(--muted)}.schema-cell p{font-size:10px;color:var(--muted);margin:5px 0 0}.schema-cell:first-child{background:var(--sage)}.module-complete-banner{margin-bottom:24px;border:1px solid var(--line);background:var(--sage);padding:18px 20px;border-radius:16px;font-size:13px}.module-complete-banner strong{display:block;margin-bottom:4px}
/* Dialogs, accounts and celebration */
dialog{color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:25px;padding:30px;width:calc(100% - 32px);max-height:90dvh;box-shadow:0 30px 100px #0004}dialog::backdrop{background:#10251abb;backdrop-filter:blur(5px)}.celebration-dialog{max-width:450px;padding:0;text-align:center;overflow:auto}.celebration-content{padding:35px 35px 28px;background:radial-gradient(ellipse at 50% 0,var(--sage),transparent 65%)}.reward-orbit{width:105px;height:105px;border:1px dashed var(--green);border-radius:50%;margin:0 auto 20px;display:grid;place-items:center;animation:reward-pop .6s ease}.reward-icon{width:79px;height:79px;background:var(--lime);border-radius:50%;display:grid;place-items:center;font-size:48px;color:#305848;box-shadow:0 0 0 9px var(--sage)}.celebration-content h2{font-size:32px;margin-bottom:14px}.celebration-content p{font-size:14px;line-height:1.7;color:var(--muted)}.reward-badge{display:inline-block;background:var(--lavender);font-size:12px;border-radius:25px;padding:8px 16px;margin:5px auto 20px;font-weight:650}.celebration-progress{font-size:11px;color:var(--muted);margin-bottom:24px}.celebration-progress .progress-track{margin-top:10px;height:9px}.celebration-content .primary{width:100%;margin-bottom:8px}.confetti{position:fixed;top:-20px;width:10px;height:16px;z-index:100;pointer-events:none;border-radius:3px;animation:confetti-fall 2.5s ease-in forwards}.account-dialog{max-width:440px}.dialog-close{position:absolute;right:12px;top:10px}.account-dialog h2{margin:16px 0}.account-dialog p{font-size:13px;color:var(--muted)}.account-form{display:flex;flex-direction:column;gap:15px}.account-form label{font-size:12px}.account-form input{display:block;width:100%;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--bg);margin-top:5px;font-size:16px;color:var(--ink)}.account-message{font-size:12px;color:var(--error);min-height:16px}.account-note{font-size:11px!important;border:1px solid var(--line);border-radius:12px;padding:12px}.roadmap-dialog{max-width:700px}.roadmap-dialog p{font-size:13px;color:var(--muted)}#roadmap-list{padding:0;list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:10px}#roadmap-list li{padding:13px;background:var(--soft);border-radius:12px;font-size:12px;display:flex;gap:10px;align-items:center}#roadmap-list li:first-child{background:var(--sage)}#roadmap-list li span{font-family:ui-monospace,monospace;color:var(--muted);font-size:10px}#roadmap-list li small{display:block;font-size:9px;color:var(--muted)}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:12px 20px;background:var(--ink);color:var(--bg);border-radius:15px;z-index:110;box-shadow:var(--shadow);font-size:12px;max-width:90vw}.sidebar-scrim{position:fixed;inset:0;background:#10251a88;z-index:29}body.nav-open{overflow:hidden}.preparing-note{padding:12px;border:1px solid var(--line);border-radius:12px;font-size:12px}.form-actions{display:flex;gap:10px;margin-top:15px;flex-wrap:wrap}.preferences{border-top:1px solid var(--line);margin-top:20px;padding-top:15px}.preferences label{font-size:12px;display:flex;gap:10px;align-items:center}.preferences input{width:18px;height:18px;accent-color:var(--green)}
@keyframes confetti-fall{to{transform:translate(var(--drift),105vh) rotate(var(--rotation));opacity:.15}}@keyframes reward-pop{0%{transform:scale(.6);opacity:0}70%{transform:scale(1.1)}100%{transform:scale(1);opacity:1}}
@media(min-width:1600px){.hero{padding:45px}.lesson-grid{gap:18px}.lesson-card{min-height:180px}}@media(max-width:1200px){.sidebar{width:220px;padding-left:14px;padding-right:14px}.main-shell{margin-left:220px}.topbar{padding:0 25px}.save-label{display:none}main{padding:28px 25px}.hero{padding:28px}.hero h1{font-size:36px}.lesson-grid{grid-template-columns:repeat(2,1fr)}.lesson-card{min-height:145px}.workspace{grid-template-columns:minmax(240px,.85fr) minmax(310px,1.15fr);gap:15px}.lesson-reading{padding:20px}.page-footer{padding:15px 25px}.hero-art{min-height:225px}.hero-tags{gap:9px}}@media(max-width:1000px){.sidebar{transform:translateX(-100%);transition:transform .2s;width:252px}.nav-open .sidebar{transform:translateX(0)}.main-shell{margin-left:0}.menu-toggle{display:block}.topbar-left{gap:9px}.workspace{grid-template-columns:minmax(280px,.88fr) minmax(340px,1.12fr)}.hero h1{font-size:40px}.hero-art{min-height:250px}}@media(max-width:760px){.topbar{height:70px;padding:0 18px}.topbar-actions{gap:10px}.breadcrumb{font-size:11px}.breadcrumb span{margin:0 6px}main{padding:24px 18px}.greeting{align-items:start;gap:10px}.greeting h1{font-size:25px}.greeting .pill{display:none}.hero{grid-template-columns:1fr;padding:26px;gap:0}.hero h1{font-size:36px;max-width:420px}.hero-art{display:none}.hero p{font-size:13px}.stats{gap:8px;margin-top:12px}.stat{padding:12px 10px;gap:8px}.stat-icon{display:none}.stat strong{font-size:14px}.stat small{font-size:9px}.lesson-grid{gap:10px}.lesson-card{padding:16px 13px;min-height:155px}.section-head .section-progress{width:100px}.section-head h2{font-size:19px}.section-head p{font-size:11px}.case-grid{grid-template-columns:1fr}.case-card{padding:18px}.workspace{grid-template-columns:1fr}.lesson-header h1{font-size:28px}.lesson-header{display:block}.lesson-local-progress{max-width:none;padding-top:18px}.lesson-reading{padding:23px}.task-heading p{min-height:0}.practice-panel{margin-top:5px}.code-area textarea{font-size:16px;min-height:165px}.line-numbers{font-size:14px}.editor-shortcut{display:none}.page-footer{padding:12px 18px;flex-wrap:wrap}.schema-grid{grid-template-columns:1fr}.lesson-reading p{font-size:14px}.task-heading p{font-size:14px}.theme-button{padding:5px 9px;min-width:40px}.theme-button #theme-text{display:none}.profile-button #profile-name{display:none}.topbar{position:sticky;top:0;background:var(--bg);z-index:20}.lesson-header .eyebrow{font-size:9px}.editor .primary{font-size:12px;min-height:44px}.editor-reset{min-height:44px}.hint-heading .text-button{min-height:44px}.data-table{font-size:12px}.celebration-content{padding:30px 22px}.celebration-content h2{font-size:28px}#roadmap-list{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.confetti{display:none}}[data-motion=reduce] *,[data-motion=reduce] *::before,[data-motion=reduce] *::after{animation:none!important;transition:none!important}[data-motion=reduce] .confetti{display:none}[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.installer{max-width:650px;padding:40px 24px}.installer>.brand{display:inline-flex}.installer>.theme-button{float:right}.installer-card{background:var(--surface);border:1px solid var(--line);border-radius:24px;padding:32px;margin-top:30px}.installer-card h1{font-size:34px}.installer-card h2{font-size:20px;margin:16px 0 0}.installer-card>p{font-size:13px;color:var(--muted)}.installer-checks{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.installer-small{font-size:11px!important;color:var(--muted);margin-top:20px}.install-grid{display:grid;grid-template-columns:2fr 1fr;gap:10px}
.hero .button.primary{background:#dcecaf;color:#2c4534}.hero .button.primary:hover{background:#e6f4c5}
@media(pointer:coarse){.code-area textarea{font-size:16px}.task-tab{min-height:44px}.lesson-nav-item{min-height:44px}.theme-button{min-height:44px}.button.small{min-height:44px}.profile-button{min-height:44px}.text-button{min-height:44px}}
.celebration-content{position:relative;overflow:hidden}.celebration-content>.confetti.in-celebration{position:absolute;z-index:0}.celebration-content>:not(.confetti){position:relative;z-index:1}

/* Explanation first, practice immediately below, on every screen size. */
.workspace{grid-template-columns:minmax(0,1fr);gap:24px}
.lesson-reading{padding:28px 30px}
.lesson-reading>p,.lesson-reading>.remember{max-width:100ch}
.practice-panel{padding:26px 30px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.task-heading p{min-height:0;max-width:100ch}
.platform-guide{list-style:none;padding:0;margin:20px 0;display:flex;flex-direction:column;gap:14px;max-width:100ch}
.platform-guide li{display:flex;gap:12px;align-items:start}
.guide-number{flex-shrink:0;width:26px;height:26px;display:grid;place-items:center;background:var(--lavender);border-radius:9px;font-size:11px;font-weight:650}
.platform-guide strong{font-size:13px}.platform-guide p{font-size:12px;color:var(--muted);margin:4px 0 0;line-height:1.7}
.explorer-note{max-width:115ch;line-height:1.8}.explorer-tabs .button[aria-pressed=true]{background:var(--sage);border-color:var(--green)}
[data-theme=dark] .hero{background:#1b3152;color:#eef4ff}
[data-theme=dark] .hero p,[data-theme=dark] .hero-tags{color:#c3d4ed}
[data-theme=dark] .hero .eyebrow{color:#b9cfee}
[data-theme=dark] .hero .button.primary,[data-theme=dark] .editor .primary{background:#b8d4ff;color:#162b49}
[data-theme=dark] .hero .button.primary:hover,[data-theme=dark] .editor .primary:hover{background:#d2e4ff}
[data-theme=dark] .editor-toolbar{color:#9fb6d6}
[data-theme=dark] .editor-reset{color:#b3c9e5}
[data-theme=dark] .line-numbers{color:#718aa9}
[data-theme=dark] .code-area textarea{caret-color:#b8d4ff}
[data-theme=dark] .code-area textarea::placeholder{color:#8098bb}
[data-theme=dark] .editor-dots i{background:#8faed8}
[data-theme=dark] .reward-icon{color:#244b82}
@media(max-width:760px){.lesson-reading,.practice-panel{padding:22px 18px}.workspace{gap:18px}.platform-guide p{font-size:13px}}
.data-explorer .table-scroll{max-height:none}
/* Four collapsible stages and personal reward vouchers. */
.sidebar{width:280px;padding-left:17px;padding-right:17px}.main-shell{margin-left:280px}.sidebar-caption{margin-bottom:10px}
.stage-group{border-bottom:1px solid var(--line);padding:8px 0}.stage-group>summary,.module-group>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:9px;min-height:50px;padding:8px 6px;border-radius:10px}.stage-group>summary::-webkit-details-marker,.module-group>summary::-webkit-details-marker{display:none}.stage-group>summary:hover,.module-group>summary:hover{background:var(--soft)}
.stage-index{display:grid;place-items:center;flex-shrink:0;width:27px;height:29px;background:var(--lavender);border-radius:9px;font-size:11px;font-weight:700}.stage-heading{font-size:12px;font-weight:650;line-height:1.4}.stage-heading small,.module-group summary small{display:block;font-size:9px;font-weight:400;color:var(--muted);margin-top:3px}.fold-chevron{margin-left:auto;font-size:20px;color:var(--muted);transition:transform .18s;line-height:1}.stage-group[open]>summary>.fold-chevron,.module-group[open]>summary>.fold-chevron{transform:rotate(90deg)}.stage-modules{padding:4px 0 0 5px}.module-group>summary{font-size:11px;font-weight:650;min-height:48px}.module-index{font:10px ui-monospace,monospace;color:var(--muted);flex-shrink:0;width:21px}.future-module{display:flex;gap:8px;align-items:start;padding:11px 7px;font-size:11px;line-height:1.4}.future-module small{display:block;font-size:9px;color:var(--muted);margin-top:3px}.module-lessons{padding-left:9px}.module-lessons .lesson-nav-item{font-size:11px;padding-left:6px}.module-lessons .nav-number{width:20px;height:20px;font-size:9px}.stage-surprise{display:flex;align-items:center;gap:8px;width:calc(100% - 12px);margin:9px 6px 4px;background:var(--sage);border:1px dashed var(--line);border-radius:11px;text-align:left;padding:10px;font-size:10px;color:var(--green);min-height:47px}.stage-surprise>span:first-child{font-size:21px}.stage-surprise small{display:block;font-size:9px;color:var(--muted);margin-top:3px}.stage-surprise.earned{border-style:solid;border-color:var(--green)}.sidebar-bottom{padding-top:20px}.sidebar-bottom>.text-button{display:block;font-size:10px}.sidebar-bottom p{margin-top:12px;font-size:11px}.journey-rewards{margin-top:32px}.journey-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.journey-card{border:1px solid var(--line);background:var(--surface);border-radius:19px;text-align:left;padding:20px 16px;min-width:0;display:flex;flex-direction:column;align-items:start}.journey-card:hover{border-color:var(--green);box-shadow:var(--shadow)}.journey-medal{display:block;height:64px;margin-bottom:16px}.stage-medal{width:105px;height:122px}.stage-medal.small{width:54px;height:63px}.locked .stage-medal{filter:grayscale(.8);opacity:.45}.journey-card .eyebrow{font-size:8px;letter-spacing:1px;margin-bottom:9px}.journey-card h3{font-size:17px;min-height:39px;margin-bottom:8px}.journey-card p{font-size:11px;color:var(--muted);line-height:1.6;min-height:36px}.journey-progress{width:100%;font-size:9px;color:var(--muted);margin-top:auto}.journey-progress .progress-track{margin-top:7px;height:5px}.journey-action{font-size:10px;color:var(--green);margin-top:15px;line-height:1.6}.journey-note{color:var(--muted);font-size:10px;margin-top:12px}.journey-card.earned{border-color:var(--green);background:var(--sage)}
.stage-reward-dialog{max-width:510px;padding:28px}.stage-reward-content{text-align:center;position:relative;overflow:hidden;padding:10px 9px}.stage-reward-content>:not(.confetti){position:relative;z-index:1}.stage-reward-content>.confetti.in-celebration{position:absolute;z-index:0}.stage-reward-medal{margin:0 auto 15px}.stage-reward-content .eyebrow{font-size:9px;letter-spacing:1.5px}.stage-reward-content h2{font-size:30px;margin-bottom:14px}.stage-reward-content>p{font-size:13px;color:var(--muted);line-height:1.75}.personal-voucher{background:var(--sage);border:1px dashed var(--green);border-radius:17px;padding:20px;margin:0 0 20px}.personal-voucher>span{display:block;font-size:9px;letter-spacing:1.5px;color:var(--muted);margin-bottom:9px}.personal-voucher strong{display:block;font-size:23px;line-height:1.3;letter-spacing:-.03em}.personal-voucher small{display:block;margin-top:12px;font-size:9px;color:var(--muted)}.stage-reward-content>.primary{width:100%}.stage-reward-content>.voucher-note{font-size:10px;margin:13px 5px}.stage-locked-progress{background:var(--soft);border-radius:14px;padding:17px;font-size:12px;margin:20px 0 10px}.stage-locked-progress .progress-track{margin:10px 0}.stage-locked-progress p{font-size:11px;color:var(--muted);margin-bottom:0}.reward-gallery-intro{font-size:12px;color:var(--muted)}.reward-gallery-list{display:flex;flex-direction:column;gap:10px}.reward-gallery-item{display:flex;align-items:center;gap:15px;padding:13px;border:1px solid var(--line);background:var(--soft);border-radius:14px;text-align:left}.reward-gallery-item>span:last-child{margin-left:auto}.reward-gallery-item strong{font-size:13px;display:block}.reward-gallery-item small{display:block;font-size:11px;color:var(--muted);margin-top:5px}
@media(max-width:1200px){.sidebar{width:260px}.main-shell{margin-left:260px}.journey-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.journey-card h3{min-height:0}}
@media(max-width:1000px){.sidebar{width:280px}.main-shell{margin-left:0}}
@media(max-width:760px){.journey-card{padding:17px 13px}.journey-card h3{font-size:15px}.journey-card .eyebrow{font-size:7px}.journey-grid{gap:10px}.stage-reward-dialog{padding:23px 16px}.stage-reward-content h2{font-size:26px}.personal-voucher strong{font-size:21px}.stage-reward-content .primary{font-size:12px}.stage-reward-content .eyebrow{font-size:8px}}
.stage-reward-hint{display:block;font-size:9px;font-style:normal;font-weight:500;color:var(--green);margin-top:4px}
.stage-reward-dialog>.dialog-close{z-index:5;background:var(--surface)}
.sidebar-close{display:none;position:absolute;right:4px;top:28px;background:var(--surface)}
@media(max-width:1000px){.sidebar-close{display:grid;place-items:center}}
/* Administrator access, learner accounts and an activity timeline. */
.admin-topbar{padding:22px 38px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px;background:var(--surface)}.admin-topbar .brand{padding:0}.admin-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.admin-main{max-width:1450px;padding:35px 38px;margin:auto}.admin-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}.admin-heading h1{font-size:34px;margin-bottom:10px}.admin-heading p{color:var(--muted);font-size:12px;margin-bottom:0}.admin-demo-note{padding:13px 16px;background:var(--lavender);border:1px solid var(--line);border-radius:13px;font-size:12px;margin-bottom:22px}.admin-learner-bar{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:20px;background:var(--surface);border:1px solid var(--line);border-radius:18px}.admin-learner-bar label{font-size:11px;color:var(--muted);min-width:250px}.admin-learner-meta{display:flex;align-items:center;gap:15px;flex-wrap:wrap}.admin-learner-bar select,.activity-filters select,.activity-filters input{display:block;border:1px solid var(--line);background:var(--bg);color:var(--ink);border-radius:10px;padding:11px 13px;margin-top:6px;font-size:13px;width:100%;min-height:44px}.admin-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:18px 0 30px}.admin-stage-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.admin-stage-card{padding:20px 16px;border:1px solid var(--line);border-radius:17px;background:var(--surface);min-width:0}.admin-stage-card h3{font-size:18px;margin-bottom:10px}.admin-stage-card .eyebrow{font-size:8px}.admin-stage-card p{font-size:10px;color:var(--muted)}.admin-stage-card ul{list-style:none;padding:0;margin:15px 0 0;display:flex;flex-direction:column;gap:12px}.admin-stage-card li{font-size:10px;line-height:1.5}.admin-stage-card li small{display:block;color:var(--muted);font-size:9px}.admin-stage-card>small{display:block;font-size:9px;margin-top:14px;color:var(--muted)}.admin-activity{margin-top:30px}.activity-filters{display:grid;grid-template-columns:2fr 1fr 1fr auto;align-items:end;gap:13px;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:17px;margin-bottom:15px}.activity-filters label{font-size:11px;color:var(--muted)}.activity-filters button{min-height:44px}.activity-event{padding:17px 20px;background:var(--surface);border:1px solid var(--line);border-radius:14px;margin-bottom:10px}.activity-event-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:12px}.activity-event-heading>div{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.activity-event-heading time{font-size:10px;color:var(--muted)}.activity-event>p{font-size:11px;color:var(--muted);margin:7px 0 0}.activity-code{margin-top:12px;background:var(--soft);border-radius:11px;overflow:hidden}.activity-code summary{cursor:pointer;font-size:11px;padding:11px 13px;min-height:44px}.activity-code pre{font-size:12px;margin:0;padding:0 15px 13px;line-height:1.7;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}.activity-code p{font-size:11px;color:var(--muted);padding:0 15px 12px;margin:0}.activity-result.correct{background:var(--sage);color:var(--success)}.activity-result.retry,.activity-result.error{background:var(--peach);color:var(--error)}.admin-login{max-width:540px;margin:40px auto;padding:32px;background:var(--surface);border:1px solid var(--line);border-radius:24px}.admin-login h1{font-size:34px}.admin-login>p{font-size:13px;color:var(--muted)}.admin-empty{background:var(--surface);padding:25px;border:1px dashed var(--line);border-radius:18px;margin-top:20px;font-size:13px;color:var(--muted)}.admin-empty h2{font-size:22px;color:var(--ink)}.admin-topbar .brand small{letter-spacing:1px}
@media(max-width:1100px){.admin-stage-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-learner-bar{align-items:start;flex-direction:column}.admin-heading{align-items:start}}
@media(max-width:760px){.admin-topbar{padding:17px 18px;align-items:start;flex-wrap:wrap}.admin-topbar .brand{font-size:23px}.admin-main{padding:24px 18px}.admin-heading{flex-direction:column;align-items:start}.admin-heading h1{font-size:28px}.admin-stats{gap:8px}.admin-stage-card{padding:17px 13px}.admin-stage-card h3{font-size:16px}.activity-filters{grid-template-columns:1fr 1fr;gap:12px}.activity-event-heading{align-items:start;flex-direction:column;gap:7px}.admin-learner-bar label{min-width:0;width:100%}.admin-login{padding:24px 20px;margin-top:20px}.admin-login h1{font-size:29px}.admin-learner-bar select,.activity-filters select,.activity-filters input{font-size:16px}.admin-topbar .theme-button{font-size:10px}}
.content-update-dialog{max-width:650px;padding:30px}.content-update-dialog>.dialog-close{z-index:5;background:var(--surface)}.content-update-dialog>div>p,.update-history>p{font-size:12px;color:var(--muted);line-height:1.7}.update-current{display:flex;align-items:center;justify-content:space-between;background:var(--soft);border:1px solid var(--line);border-radius:12px;padding:14px 17px;margin:20px 0;font-size:12px}.update-current strong{font-family:ui-monospace,monospace;font-size:15px}.update-help{font-size:10px!important;color:var(--muted);margin:0 0 6px}.content-update-dialog input[type=file]{font-size:13px}.update-review{background:var(--sage);border:1px solid var(--line);border-radius:16px;padding:20px;margin-top:20px}.update-review h3{font-size:22px}.update-review p{font-size:12px;line-height:1.7}.update-history{border-top:1px solid var(--line);margin-top:25px;padding-top:20px}.update-history h3{font-size:19px}.update-history-row{background:var(--soft);border-radius:12px;padding:14px;margin-top:10px}.update-history-row strong,.update-history-row small{display:block;font-size:12px}.update-history-row small{color:var(--muted);font-size:10px;margin-top:4px}.update-history-row p{font-size:11px;margin:9px 0 0}.update-history-row button{margin-top:10px}
.practice-table-select{display:flex;align-items:center;gap:7px;font-size:11px;color:var(--muted)}.practice-table-select select{border:1px solid var(--line);border-radius:9px;padding:10px;background:var(--bg);color:var(--ink)}
.explorer-tabs{flex-wrap:wrap;align-items:center}.practice-table-select{max-width:100%}.practice-table-select select{max-width:100%;min-width:0}
.cell-null,.cell-empty{font-size:10px;color:var(--muted);border:1px dashed var(--line);padding:2px 6px;border-radius:5px}.cell-null{font-family:ui-monospace,monospace}.cell-text{white-space:pre;font-size:11px}
