:root{--ink:#153b51;--muted:#557080;--bg:#fffdf7;--blue:#265de9;--soft:#edf2ff;--coral:#f36a42;--yellow:#ffdf3b;--line:#dce4e9;--shadow:0 5px 22px #153b5107}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:Studio,Arial,sans-serif;line-height:1.45}button,input,select{font:inherit;color:inherit}button{cursor:pointer;font-weight:700;border:1px solid #d4dfe7;border-radius:11px;background:#f7f9fc;padding:10px 14px;min-height:44px;touch-action:manipulation}button:hover{border-color:#91ace2;background:#edf2ff}button:disabled{opacity:.48;cursor:default}button[aria-pressed=true],button.active{background:var(--blue);border-color:var(--blue);color:white}button.primary{background:var(--coral);border-color:#ec6039;color:#fff;box-shadow:0 4px 10px #f36a421a}button.blue{background:var(--blue);color:#fff;border-color:var(--blue)}a{color:var(--blue)}:focus-visible{outline:3px solid var(--blue);outline-offset:3px}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.15;letter-spacing:-.025em}h1{font-size:30px}h2{font-size:21px}small,.muted{color:var(--muted)}.skip{position:fixed;top:-100px;z-index:30;background:#fff;padding:12px}.skip:focus{top:8px}.site-nav{border-bottom:1px solid var(--line);background:var(--bg)}.nav-inner{max-width:1380px;margin:auto;min-height:66px;padding:6px 24px;display:flex;align-items:center;gap:24px}.brand{display:flex;align-items:center;gap:7px;border:0;background:transparent!important;padding:0;font-size:20px;line-height:.95;letter-spacing:.04em;text-align:left}.brand small{display:block;font-size:10px;color:var(--ink);letter-spacing:.08em;margin-top:5px}.brand-nallo{width:38px;height:47px;display:block}.brand-nallo svg{width:100%;height:100%}nav{display:flex;gap:8px;margin-left:auto}nav button{background:#fff;font-size:13px;padding:7px 15px}.offline-badge{font-size:10px;white-space:nowrap;color:var(--muted);border-left:1px solid var(--line);padding-left:18px}.shell{max-width:1380px;margin:auto;padding:22px 24px 36px}.intro{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:16px}.intro p{color:var(--muted);font-size:14px;margin-top:7px;max-width:780px}.back{font-size:12px;background:transparent;white-space:nowrap;min-height:36px;padding:6px 10px}.eyebrow{color:var(--blue);font-size:11px;font-weight:800;letter-spacing:.1em;display:block;margin-bottom:8px}.guide{display:flex;gap:14px;align-items:center;background:var(--yellow);border:1px solid #e9ce3c;border-radius:18px;padding:10px 16px;margin-bottom:16px}.guide-portrait{width:66px;height:72px;flex:0 0 66px}.guide-portrait svg{width:100%;height:100%}.guide-copy{flex:1;min-width:0}.guide-copy small{font-size:10px;font-weight:800;letter-spacing:.07em;color:var(--ink)}.guide-copy p{font-size:14px;margin-top:3px}.guide-copy button{min-height:30px;padding:3px 9px;font-size:11px;background:#fffdf7;margin-top:6px}.tasks{display:flex;gap:6px;align-items:center;flex-wrap:wrap;max-width:490px}.tasks button{background:#fffdf7;padding:9px 11px;font-size:12px;min-height:38px}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 310px;align-items:start;gap:16px}.panel{background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);min-width:0}.stage{overflow:visible}.stage-top{padding:10px 16px;display:flex;align-items:center;justify-content:space-between;font-size:12px;border-bottom:1px solid #edf0f4}.clock{font-variant-numeric:tabular-nums;color:var(--muted)}.scene{height:clamp(230px,calc(100svh - 475px),460px);min-height:230px;background:var(--bg);position:relative;overflow:hidden}.scene svg{width:100%;height:100%;display:block;font-family:Studio,Arial,sans-serif;user-select:none}.scene svg text{fill:var(--ink);font-family:inherit}.scene [data-drag]{cursor:ew-resize;touch-action:none}.scene [data-action]{cursor:pointer}.scene [tabindex]:focus{outline:none;filter:drop-shadow(0 0 4px #265de9)}.scene-hint{padding:7px 14px;font-size:11px;color:var(--muted);border-top:1px solid #edf0f4;min-height:32px}.actions{display:flex;gap:7px;align-items:center;flex-wrap:wrap;padding:10px 12px;border-top:1px solid var(--line);background:#fff;border-radius:0 0 20px 20px;position:relative;z-index:5;box-shadow:0 4px 14px #153b5109}.actions button{padding:9px 12px;font-size:12px}.actions .primary{flex:1;min-width:130px}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid #edf0f4;padding:10px 8px;gap:2px;background:#fff;border-radius:0 0 20px 20px}.metric{padding:0 9px;min-width:0;border-right:1px solid #edf0f4}.metric:last-child{border:0}.metric small{display:block;font-size:10px;line-height:1.3;overflow-wrap:anywhere}.metric strong{display:block;font-size:17px;margin-top:3px;font-variant-numeric:tabular-nums;white-space:nowrap}.metric em{font-style:normal;font-size:11px}.controls{padding:17px}.controls h2{font-size:18px;margin-bottom:4px}.controls .lede{font-size:11px;color:var(--muted);margin-bottom:12px}.field{margin:12px 0}.field-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:4px}.field-head label{font-size:12px;font-weight:700}.field output{font-size:11px;color:var(--blue);background:var(--soft);padding:3px 7px;border-radius:7px;white-space:nowrap}.field select{width:100%;min-height:38px;padding:7px 8px;background:#f6f8fc;border:1px solid #d5e0e8;border-radius:9px;font-size:12px}.field input[type=range]{width:100%;height:28px;margin:0;accent-color:var(--blue);cursor:pointer}.field input[type=range]::-webkit-slider-thumb{width:23px;height:23px}.control-note{font-size:11px;color:var(--muted);background:#f4f7fc;padding:9px;border-radius:9px;line-height:1.5}.segmented{display:flex;gap:5px;flex-wrap:wrap}.segmented button{flex:1;font-size:11px;min-height:36px;padding:7px 9px}.control-buttons{display:flex;gap:6px;flex-wrap:wrap}.control-buttons button{font-size:11px;flex:1;padding:7px;min-height:36px}.controls details{border-top:1px solid var(--line);margin-top:12px;padding-top:10px}.controls summary{font-size:12px;font-weight:700;cursor:pointer;min-height:28px}.check{display:flex;gap:8px;align-items:center;font-size:11px;cursor:pointer;line-height:1.5}.check input{width:18px;height:18px;accent-color:var(--blue);flex-shrink:0}.status{font-size:12px;color:var(--muted);margin:12px 2px;min-height:36px}.result{padding:18px 20px;border-left:4px solid var(--coral);margin-top:16px}.result h2{font-size:19px;margin:5px 0 7px}.result p{font-size:14px}.compare{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}.compare article{background:#f5f8fc;border-radius:12px;padding:12px;font-size:12px}.compare strong{display:block;margin-bottom:4px}.learning{margin-top:18px;padding:18px 22px}.learning>summary{cursor:pointer;font-size:16px;font-weight:800}.learn-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px;margin-top:18px}.learn-grid h3{font-size:16px;margin-bottom:7px}.learn-grid p,.learn-grid li{font-size:13px;line-height:1.65;color:var(--muted)}.learn-grid ul{padding-left:18px;margin:8px 0}.source-links{font-size:12px;margin-top:18px}.footnote{font-size:11px;color:var(--muted);margin:18px 3px}.home-hero{display:grid;grid-template-columns:250px 1fr;gap:36px;align-items:center;padding:28px 40px;background:#fff;border:1px solid var(--line);border-radius:24px;margin-bottom:30px}.home-llama{height:260px}.home-llama img{width:100%;height:100%;object-fit:contain}.home-hero h1{font-size:43px;max-width:730px}.home-hero h1 span{color:var(--blue)}.home-hero p{margin-top:15px;max-width:620px;color:var(--muted);font-size:15px}.home-steps{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.home-steps span{background:#f3f6fa;padding:8px 12px;border-radius:10px;font-size:12px;font-weight:700}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.card{overflow:hidden;display:flex;flex-direction:column}.card-art{height:208px;background:var(--bg);border-bottom:1px solid var(--line)}.card-art svg{width:100%;height:100%;display:block;font-family:Studio,Arial,sans-serif}.card-copy{padding:20px;display:flex;flex-direction:column;flex:1}.card small{color:var(--blue);font-weight:800;font-size:10px;letter-spacing:.08em}.card h2{font-size:23px;margin:7px 0 10px}.card p{font-size:14px;color:var(--muted);margin-bottom:20px;flex:1}.card button{width:100%;background:var(--blue);border-color:var(--blue);color:#fff}.home-note{padding:20px 2px;color:var(--muted);font-size:13px}.home-note strong{color:var(--ink)}dialog{border:1px solid #cdd9e5;border-radius:22px;padding:0;max-width:620px;width:calc(100% - 28px);max-height:calc(100dvh - 28px);color:var(--ink);background:var(--bg);box-shadow:0 22px 80px #153b5140;overflow:hidden}dialog[open]{display:flex;flex-direction:column}dialog::backdrop{background:#153b5159;backdrop-filter:blur(3px)}.modal-head{display:flex;gap:14px;align-items:center;padding:18px 22px;background:var(--yellow);flex-shrink:0}.dialog-nallo{width:70px;height:78px;flex:0 0 70px}.dialog-nallo svg{width:100%;height:100%}.modal-head small{font-size:10px;letter-spacing:.1em;font-weight:800}.modal-head h2{font-size:24px;margin-top:5px}.icon-btn{border:0;background:#fff9;font-size:24px;padding:0;width:36px;min-height:36px;margin-left:auto;align-self:flex-start;flex-shrink:0}.modal-scroll{padding:20px 24px;overflow:auto;overscroll-behavior:contain}.modal-scroll>p{font-size:16px;line-height:1.6}.question{padding:13px 15px;background:var(--soft);border-radius:12px;margin:16px 0;font-size:14px;font-weight:700}.modal-scroll summary{font-size:13px;cursor:pointer;font-weight:700}.modal-scroll details p{font-size:13px;color:var(--muted);line-height:1.6;margin-top:10px}.modal-scroll h3{font-size:15px;margin:16px 0 5px}.modal-foot{padding:14px 24px 18px;border-top:1px solid var(--line);display:flex;align-items:center;gap:14px;flex-wrap:wrap;flex-shrink:0}.modal-foot .primary{min-height:42px}body.modal-open{overflow:hidden}#toast{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);background:var(--ink);color:#fff;padding:12px 18px;border-radius:12px;font-size:13px;z-index:40;max-width:calc(100% - 28px);width:max-content;pointer-events:none;opacity:0;transition:opacity .15s}#toast.visible{opacity:1}[hidden]{display:none!important}
.tasks button[aria-pressed=true]{background:var(--blue);color:#fff;border-color:var(--blue)}.home-llama svg{width:100%;height:100%}.card-art [data-action],.card-art [data-drag]{pointer-events:none}.card-art svg text{font-size:0}.card-art svg{padding:10px}
@media(min-width:900px) and (max-height:740px){.nav-inner{min-height:52px}.brand-nallo{height:39px;width:31px}.shell{padding-top:12px}.intro{margin-bottom:10px}.intro h1{font-size:25px}.intro p{display:none}.eyebrow{margin-bottom:3px;font-size:10px}.guide{padding:7px 12px;margin-bottom:10px;gap:10px}.guide-portrait{height:53px;width:47px;flex-basis:47px}.guide-copy p{font-size:12px}.guide-copy small{display:none}.guide-copy button{margin-top:3px}.tasks button{font-size:11px;min-height:33px;padding:6px 9px}.scene{height:clamp(200px,calc(100svh - 315px),400px);min-height:200px}.stage-top{padding:7px 12px}.scene-hint{padding:5px 12px;font-size:10px;min-height:27px}.actions{padding:7px 10px}.actions button{min-height:38px;padding:7px 9px}.metrics{padding:7px 5px}.metric strong{font-size:16px}.controls{padding:12px}.controls .field{margin:7px 0}.controls h2{font-size:16px}.controls .lede{margin-bottom:7px}.field input[type=range]{height:24px}.status{margin-top:9px}.home-hero{padding:20px 30px}.home-llama{height:200px}.home-hero h1{font-size:35px}}
@media(max-width:1000px){.workspace{grid-template-columns:minmax(0,1fr) 270px}.tasks{max-width:380px}.guide-copy{max-width:500px}.home-hero{grid-template-columns:200px 1fr;gap:24px;padding:25px}.home-hero h1{font-size:35px}.card-art{height:180px}}
@media(max-width:760px){.nav-inner{padding:6px 14px;gap:8px;min-height:57px}.brand{font-size:16px}.brand small{font-size:8px}.brand-nallo{width:29px;height:38px}nav{gap:5px}nav button{font-size:11px;min-height:38px;padding:7px 10px}.offline-badge{display:none}.shell{padding:16px 13px 28px}.intro{gap:8px;margin-bottom:12px}.intro h1{font-size:26px}.intro p{font-size:12px}.eyebrow{font-size:9px;margin-bottom:5px}.back{display:none}.guide{padding:10px;gap:9px;flex-wrap:wrap;margin-bottom:12px}.guide-portrait{width:52px;height:62px;flex-basis:52px}.guide-copy{flex-basis:calc(100% - 70px)}.guide-copy small{font-size:9px}.guide-copy p{font-size:12px}.tasks{width:100%;max-width:none;gap:5px}.tasks button{flex:1;font-size:10px;padding:7px 6px;min-height:38px}.workspace{display:flex;flex-direction:column;gap:12px}.stage,.controls{width:100%}.scene{height:300px;min-height:280px}.stage-top{padding:9px 12px;font-size:11px}.scene-hint{font-size:10px}.actions{gap:5px;padding:8px}.actions button{font-size:11px;min-height:41px;padding:8px}.actions .primary{min-width:130px}.metrics{grid-template-columns:repeat(2,1fr);gap:8px;padding:12px}.metric{padding:0 5px}.metric:nth-child(2){border:0}.metric strong{font-size:18px}.metric small{font-size:10px}.controls{padding:17px}.controls .field{margin:15px 0}.controls h2{font-size:20px}.field-head label{font-size:14px}.field select{font-size:14px;min-height:44px}.field output{font-size:12px}.field input[type=range]{height:34px}.control-note,.controls .lede{font-size:12px}.segmented button,.control-buttons button{font-size:12px;min-height:42px}.controls summary{font-size:14px;min-height:36px}.status{font-size:12px}.learn-grid{grid-template-columns:1fr;gap:20px}.learning{padding:16px}.compare{grid-template-columns:1fr}.home-hero{grid-template-columns:1fr;text-align:center;gap:12px;padding:22px 18px;margin-bottom:20px}.home-llama{height:190px;grid-row:1}.home-hero h1{font-size:30px}.home-hero p{font-size:13px}.home-steps{justify-content:center;gap:5px}.home-steps span{font-size:10px;padding:7px 8px}.cards{grid-template-columns:1fr;gap:16px}.card-art{height:225px}.card-copy{padding:18px}.home-note{font-size:12px}.modal-head{padding:14px;gap:10px}.modal-head h2{font-size:21px}.dialog-nallo{width:50px;height:65px;flex-basis:50px}.modal-scroll{padding:17px}.modal-scroll>p{font-size:14px}.modal-foot{padding:12px 17px}.modal-foot .primary{width:100%}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}
.task-assessment{margin:15px 0;padding:13px 15px;background:#fff8dc;border:1px solid #eddb94;border-radius:12px;font-size:13px}.task-assessment.pass{background:#edf7f2;border-color:#a8d4bd}.task-assessment>p{font-size:13px;margin-top:5px}.prediction-result{margin-top:12px;padding:10px;background:#f5f8fc;border-radius:10px;font-size:13px!important}.compare-changes{font-size:12px!important;color:var(--muted);margin-top:12px}.mission-card{padding:22px}.mission-card h2{margin-bottom:16px}.mission-card button{display:block;width:100%;text-align:left;margin:9px 0;background:#f5f8fc}.mission-card button strong,.mission-card button span{display:block}.mission-card button span{font-size:12px;font-weight:400;margin-top:6px;color:var(--muted)}.download-plan{display:block;padding:12px 16px;background:var(--blue);color:#fff;text-align:center;text-decoration:none;border-radius:11px;font-weight:700;margin:16px 0}.modal-scroll label[for=plan-text]{display:block;font-size:13px;font-weight:700}#plan-text{width:100%;height:230px;margin-top:8px;border:1px solid var(--line);border-radius:10px;padding:12px;font:12px/1.5 monospace;color:var(--ink);background:#fff;resize:vertical}input:disabled,select:disabled{opacity:.45;cursor:not-allowed}#add-layer{width:100%;font-size:12px;min-height:36px}.tasks button{font-size:11px;padding:7px 8px}.tasks{max-width:495px}
@media(max-width:760px){.mission-card{padding:17px}.tasks button{font-size:10px;padding:6px}.tasks{gap:4px}.tasks button{flex:1 1 auto}#plan-text{height:190px}}
html{scrollbar-gutter:stable}#main .scene{transition:none}.scene svg{overflow:visible}.scene{overflow:hidden}#controls .control-buttons .blue{background:var(--blue);color:#fff}#controls details[data-section=wall] summary,#controls details[data-section=branch-b] summary{color:var(--blue)}

@media(min-width:761px) and (max-width:899px){.workspace{grid-template-columns:1fr}.scene{height:330px;min-height:300px}.controls{width:100%}}
.build-shelf{margin:12px 0 17px;padding-bottom:14px;border-bottom:1px solid var(--line)}.build-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.build-heading .eyebrow{margin:0;font-size:10px}.text-button{background:transparent;border:0;min-height:32px;font-size:11px;padding:5px}.build-intro{font-size:12px;color:var(--muted);line-height:1.5;margin:6px 0 11px}.part-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:8px 0}.part-grid button,.part-palette button{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:4px;min-width:0;overflow-wrap:anywhere;background:#f6f8fc;border:1px solid #d9e3ea;padding:10px}.part-grid strong{font-size:11px;line-height:1.3}.part-grid small{font-size:10px;font-weight:400;line-height:1.4}.part-grid button.fitted{background:#eef6f2;border-color:#bdd8c9}.pipe-buttons{display:flex;gap:5px;margin:9px 0}.pipe-buttons button{flex:1;padding:7px;display:flex;flex-direction:column;align-items:center;font-size:11px}.pipe-buttons small{font-size:9px}.build-shelf details{margin-top:10px}.part-palette{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}.part-palette button{min-height:90px;border-left:6px solid var(--part-color,#ffdf3b);padding:14px;background:white}.part-palette strong{font-size:16px}.part-palette small{font-size:12px;font-weight:400;line-height:1.5}.composer{border:1px solid #dbe4ee;border-radius:13px;background:#f5f8fd;padding:10px;margin:11px 0}.composer-title{display:flex;flex-wrap:wrap;gap:3px 9px;align-items:center;margin-bottom:9px}.composer-title strong{font-size:13px}.composer-title span{font-size:9px;color:var(--muted)}.sequence{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-bottom:8px}.sequence button{min-width:0;padding:5px 2px;background:#fff;min-height:54px;display:flex;align-items:center;flex-direction:column;gap:1px}.sequence small{font-size:8px}.sequence strong{font-size:13px}.sequence em{font-style:normal;font-size:8px;color:var(--muted)}.tempo{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:700;margin:9px 2px 2px}.tempo input{min-width:0;width:100%;accent-color:var(--blue)}.tempo output{font-size:10px}.branch-controls{display:flex;gap:6px;margin:10px 0}.branch-controls button{flex:1;font-size:11px;padding:8px}.controls>details[data-section=tuning]{background:#f7f9fc;border:1px solid var(--line);border-radius:12px;padding:10px;margin:12px 0}.controls>details[data-section=tuning]>summary{font-size:12px}.controls>details[data-section=compare]{margin-top:10px}.controls .control-buttons #manual-pump{background:var(--coral);color:#fff;border-color:var(--coral)}
@media(max-width:760px){.part-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.part-grid strong{font-size:12px}.part-grid small{font-size:10px}.part-grid button{min-height:67px;padding:9px 7px}.build-intro{font-size:13px}.part-palette{grid-template-columns:1fr}.part-palette button{min-height:75px}.sequence{grid-template-columns:repeat(4,1fr)}.sequence strong{font-size:16px}.sequence em{font-size:10px}.sequence button{min-height:64px}.build-shelf .control-buttons button{min-height:44px}.branch-controls button{min-height:46px}.controls>details[data-section=tuning]>summary{font-size:14px}}
.play-keys{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin:10px 0 13px}.play-keys button{display:flex;flex-direction:column;align-items:center;gap:4px;background:#fff;border-bottom:5px solid #265de9;min-height:57px;padding:5px}.play-keys small{font-size:9px}.play-keys strong{font-size:16px}.play-keys button.playing,.sequence button.playing{background:var(--yellow);border-color:#d9bd23;color:var(--ink);box-shadow:0 0 0 2px #ffdf3b44}.example-label{font-weight:400!important;font-size:9px!important;margin-bottom:9px;letter-spacing:0!important;color:var(--muted)!important}
@media(max-width:760px){.scene{height:clamp(335px,calc((100vw - 43px)*510/420),430px);min-height:335px}.play-keys{grid-template-columns:repeat(6,minmax(0,1fr))}.play-keys button{min-height:68px}.play-keys strong{font-size:16px}}
.part-grid button.selected{outline:2px solid var(--blue);outline-offset:-2px}
@media(max-width:360px){.play-keys{grid-template-columns:repeat(3,minmax(0,1fr))}}
.play-keys button[aria-pressed=true]{background:var(--soft);color:var(--ink);border-color:var(--blue)}.play-keys button.playing{background:var(--yellow);border-color:#d9bd23}.sequence-tip{font-size:9px;color:var(--muted);margin:8px 0 3px}

/* Direct construction edits and age-appropriate learning prompts. */
.part-editor{padding:11px;border:1px solid #dbe5ef;border-radius:12px;background:#fff;margin:10px 0}.part-editor>strong{font-size:12px}.part-editor>p{font-size:11px;color:var(--muted);margin:7px 0 4px}.quick-row{display:flex;flex-wrap:wrap;gap:5px;margin:5px 0 10px}.quick-row button{font-size:11px;padding:7px 9px;min-height:36px}.quick-row button:last-child{flex:1}.build-insight{background:#fff8dc;border:1px solid #e9db9c;border-radius:12px;padding:12px;margin-top:13px;font-size:12px;line-height:1.55}.build-insight>strong{display:block;font-size:13px;line-height:1.35}.build-insight p{margin-top:7px}.build-insight .try-next{border-top:1px solid #e9db9c;padding-top:8px}.part-editor .control-buttons{margin-top:10px}
@media(max-width:760px){.part-editor>strong{font-size:14px}.part-editor>p,.build-insight{font-size:13px}.quick-row button{min-height:44px;font-size:12px}.part-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Keep the drawing readable on notebooks and the controls in normal flow above it. */
.stage>.actions{border-radius:0;box-shadow:none;border-bottom:1px solid var(--line);background:#f8faff}.stage>.scene{border-top:0}
@media(min-width:761px) and (max-width:1100px){.workspace{grid-template-columns:minmax(0,1fr)}.scene{height:330px;min-height:320px}.controls{width:100%}}

/* Visible sound controls and one guided next step. */
.audio-panel{padding:10px 14px;background:#f4f7ff;border-bottom:1px solid var(--line);font-size:12px}.audio-tools{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.audio-tools button{background:var(--blue);color:#fff;border-color:var(--blue)}.audio-tools label{display:flex;align-items:center;gap:7px;flex:1;min-width:180px}.audio-tools input{width:100%;min-width:55px;accent-color:var(--blue)}.audio-tools output{white-space:nowrap;font-variant-numeric:tabular-nums;min-width:40px}.audio-panel>p{margin-top:6px}.audio-panel details{margin-top:5px;font-size:11px}.audio-panel details p{margin-top:6px;max-width:650px;line-height:1.6}.easy-step{background:#f1f5ff;border:1px solid #cad8fa;padding:13px;border-radius:14px;margin-bottom:13px}.easy-step p{font-size:13px;line-height:1.5;margin-bottom:10px}.easy-step>.primary{width:100%;font-size:13px}.easy-step>button+button{width:100%;margin-top:8px;font-size:12px}.easy-options{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:10px}.easy-options button{font-size:11px;padding:8px}.build-shelf>details[data-section=construction]{padding:11px;border:1px solid var(--line);border-radius:12px}.build-shelf>details[data-section=construction]>summary{font-size:12px;font-weight:700;cursor:pointer}.build-shelf>details[data-section=construction] .build-heading{margin-top:12px}@media(max-width:760px){.audio-tools{gap:8px}.audio-tools label{flex-basis:100%}.audio-panel{font-size:12px}.easy-step p{font-size:14px}.easy-options button{font-size:12px;min-height:44px}}

/* Align the offline workbenches with the existing Studio surfaces and controls. */
.lab-page{padding-top:12px}.lab-page .intro{margin-bottom:10px}.lab-page .intro h1{font-size:clamp(23px,2.2vw,30px);line-height:1.2}.lab-page .intro .eyebrow{font-size:10px;margin-bottom:4px}.lab-page .guide{gap:10px;padding:7px 12px;margin-bottom:10px}.lab-page .guide-portrait{width:48px;height:56px;flex-basis:48px}.lab-page .guide-copy small{display:none}.lab-page .guide-copy p{font-size:14px;line-height:1.4}.lab-page .tasks button{min-height:44px;font-size:12px;line-height:1.3}.lab-page .guide-copy button{min-height:34px;font-size:12px}.build-toolbar{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:13px}.build-toolbar button{font-size:13px;min-height:44px}.lab-page .controls{font-size:14px}.lab-page .part-grid strong,.lab-page .quick-row button,.lab-page .easy-options button{font-size:13px}.lab-page .part-grid small,.lab-page .part-editor>p,.lab-page .build-intro,.lab-page .control-note{font-size:12px;line-height:1.5}.lab-page .part-editor>strong{font-size:14px}.lab-page .build-shelf>details[data-section=construction]>summary{font-size:14px;min-height:40px;display:list-item}.lab-page .quick-row button{min-height:44px}.lab-page .easy-step p{font-size:14px}.lab-page .easy-step>.primary{font-size:14px;min-height:48px}.lab-page .stage .actions button{font-size:13px;min-height:44px}.instructions{padding:16px;margin-top:18px}.instructions summary{font-size:14px;font-weight:700;cursor:pointer;min-height:30px}.instructions p{font-size:14px;line-height:1.6;margin-top:13px;color:var(--muted)}
@media(min-width:900px){.lab-page .intro>div>p{display:none}}
@media(max-width:760px){.lab-page .intro h1{font-size:25px}.lab-page .guide{padding:9px}.lab-page .tasks{max-width:none}.lab-page .tasks button{font-size:11px;min-height:44px}.lab-page .guide-copy{flex-basis:calc(100% - 65px)}.lab-page .guide-copy p{font-size:13px}.lab-page .part-grid strong,.lab-page .easy-options button{font-size:13px}.lab-page .part-grid small,.lab-page .build-intro{font-size:12px}.lab-page .stage .actions button{font-size:12px}.build-toolbar button{font-size:14px}.instructions{padding:14px}}

/* Match the existing labs: readable coral actions and stable compact/touch scrolling. */
button.primary,.controls .control-buttons #manual-pump{color:#0e2b3b}
@media(max-width:1100px),(pointer:coarse){html{scroll-behavior:auto}}

/* Keep the current mission and a useful Nallo response visible without a new overlay. */
.guide-title{display:block;font-size:12px;line-height:1.4;color:var(--ink)}.lab-page .guide-copy #guide-goal{font-weight:700;font-size:13px}.lab-page .guide-copy #guide-tip{font-size:12px;line-height:1.45;margin-top:5px}.coach-steps,#task-instructions ol{padding-left:22px;font-size:14px;line-height:1.6}.coach-steps li,#task-instructions li{padding-left:3px;margin:8px 0}.coach-steps{border-top:1px solid var(--line);padding-top:9px}.guide-copy{overflow-wrap:anywhere}
@media(max-width:760px){.lab-page .guide-copy #guide-goal{font-size:12px}.lab-page .guide-copy #guide-tip{font-size:12px}.guide-title{font-size:11px}.coach-steps,#task-instructions ol{font-size:13px}}

.metric-help{padding:10px 15px;border-top:1px solid var(--line);font-size:12px}.metric-help summary{cursor:pointer;font-weight:700;min-height:28px}.metric-help dl{margin:8px 0}.metric-help dt{font-weight:700;margin-top:10px}.metric-help dd{margin:4px 0 12px;color:var(--muted);line-height:1.6}

.nallo-tutor{margin:18px 0;padding:16px;border:1px solid #b9d4cf;border-radius:16px;background:#f0f8f5;color:#173e51;overflow-wrap:anywhere}.nallo-tutor h3{margin:0 0 8px!important;font-size:17px!important}.nallo-tutor p,.nallo-tutor li{font-size:14px;line-height:1.55}.nallo-tutor-progress{margin:6px 0 12px!important}.nallo-tutor-panel{padding:12px;border-radius:10px;background:#fffdf7}.nallo-tutor-panel p{margin:8px 0}.nallo-tutor-panel ol{padding-left:22px;margin:10px 0}.nallo-tutor button{display:inline-block;min-height:44px;max-width:100%;white-space:normal;margin-top:12px;padding:10px 13px;border:1px solid #247f73;border-radius:10px;background:#fffdf7;color:#173e51;font:700 14px/1.35 system-ui;cursor:pointer}.nallo-tutor button[hidden]{display:none!important}.nallo-tutor :focus-visible{outline:3px solid #1a877f;outline-offset:3px}.nallo-tutor-follow{margin-top:13px}.nallo-tutor-follow summary{cursor:pointer;font-weight:750;padding:8px 0}.nallo-tutor-diagnostic{border-left:3px solid #c79b26;padding-left:10px}[data-tutor-help=true]{box-shadow:0 0 0 2px #c79b2655}

.topic-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.topic-link{font-size:12px;font-weight:700;padding:8px 10px}.new-workshop-page .legal-footer{margin-top:28px}.new-workshop-page .site-nav{position:relative}.new-workshop-page #main{min-height:65vh}@media(max-width:760px){.topic-actions{max-width:120px}.topic-link{font-size:11px}}
