/* Spark Studio — original LearnPlay inventor workbench. */
:root{color-scheme:light;--paper:#f7f6f0;--cream:#eeede4;--white:#fffefa;--ink:#153f44;--muted:#647777;--line:#d9ded5;--teal:#236c68;--mint:#dce8dc;--amber:#f3c365;--orange:#df9253;--radius:18px;--sans:Inter,"Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--sans);font-size:14px;line-height:1.55;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit}button{color:var(--ink)}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,canvas:focus-visible,summary:focus-visible{outline:3px solid #e8a345;outline-offset:4px}button,input,select,textarea{min-width:0}button{touch-action:manipulation}button,select{min-height:40px}p,h1,h2,h3,dl{margin:0}h1,h2,h3{line-height:1.15;letter-spacing:-.035em}button{border:1px solid var(--line);border-radius:9px;background:var(--white);font-weight:650;transition:background .16s,border-color .16s,transform .16s}button:hover{background:#eef1e8;border-color:#9eb6aa}button:active{transform:translateY(1px)}[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}.skip-link{position:fixed;top:-100px;left:20px;z-index:100;padding:14px 20px;background:var(--ink);color:white;border-radius:8px}.skip-link:focus{top:12px}.site-header{height:88px;max-width:1640px;padding:0 38px;margin:auto;display:flex;align-items:center;gap:35px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;font-size:24px;font-weight:800;line-height:1.15;letter-spacing:-1px;flex-shrink:0}.brand-symbol{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:var(--ink)}.brand-symbol svg{width:27px;height:27px;fill:var(--amber)}.brand-subtitle{display:block;margin-top:5px;letter-spacing:1.6px;font-size:8px;font-weight:750;color:var(--muted)}.back-link{display:flex;align-items:center;gap:8px;text-decoration:none;font-size:13px;font-weight:650}.back-link>span:first-child{font-size:20px}.header-options{display:flex;align-items:center;gap:16px;margin-left:auto}.compact-select{display:flex;align-items:center;gap:10px;font-size:11px;color:var(--muted);font-weight:700}.compact-select select{border:1px solid var(--line);border-radius:8px;background:var(--white);color:var(--ink);padding:8px 28px 8px 10px;font-size:12px;font-weight:650}.language-select select{background:transparent;border-color:transparent}.studio-shell{max-width:1640px;padding:0 38px;margin:auto}.studio-masthead{display:flex;align-items:center;justify-content:space-between;padding:36px 0 31px;gap:20px}.eyebrow{font-size:9px;line-height:1.5;letter-spacing:1.6px;font-weight:800;color:var(--muted)}.studio-masthead .eyebrow{display:flex;align-items:center;gap:9px;font-size:9px}.spark-dot{height:6px;width:6px;background:var(--orange);border-radius:50%;display:inline-block}.age-chip{font-size:8px;letter-spacing:1px;border:1px solid #d7ddd2;padding:3px 7px;border-radius:20px;margin-left:6px}.studio-wordmark{font-size:clamp(35px,4.1vw,65px);line-height:1.08;font-weight:850;letter-spacing:-3px;margin-top:12px;display:flex;align-items:center;gap:13px}.studio-wordmark>span:nth-of-type(2){font-weight:350}.wordmark-divider{color:#cdd4c8;font-weight:300}.wordmark-star{color:var(--orange);font-size:.55em;align-self:flex-start;margin-top:7px}.studio-tagline{margin-top:10px;font-size:16px;letter-spacing:-.2px;color:#526c6b}.masthead-note{display:flex;align-items:center;gap:13px;max-width:340px;margin-right:4px}.note-number{font-size:46px;font-weight:400;line-height:1;letter-spacing:-3px;color:#42625e}.masthead-note p{font-size:12px;line-height:1.55;color:var(--muted)}.masthead-note strong{font-weight:650;color:var(--ink)}.masthead-note svg{width:62px;height:48px;fill:none;stroke:#c6d1bf;stroke-width:2;margin-left:26px}.studio-grid{display:grid;grid-template-columns:216px minmax(0,1fr);gap:30px;padding-bottom:40px;border-top:1px solid var(--line)}.lesson-rail{padding-top:27px;padding-right:25px;border-right:1px solid var(--line);min-width:0}.rail-heading h2{font-size:21px;line-height:1.22;margin-top:7px;max-width:180px}.path-progress{margin:24px 0 18px}.path-progress>div{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:10px}.path-progress span{color:var(--muted)}.path-progress strong{font-size:11px}.path-progress progress{display:block;appearance:none;width:100%;height:4px;border:0;border-radius:3px;overflow:hidden;margin-top:9px;background:#e0e4da}.path-progress progress::-webkit-progress-bar{background:#e0e4da}.path-progress progress::-webkit-progress-value{background:var(--teal)}.path-progress progress::-moz-progress-bar{background:var(--teal)}.lesson-search{display:flex;align-items:center;background:transparent;border:1px solid var(--line);padding:0 8px;border-radius:8px;margin-bottom:14px;gap:6px}.lesson-search svg{height:17px;width:17px;fill:none;stroke:#7b9186;stroke-width:1.5;flex-shrink:0}.lesson-search input{width:100%;border:0;background:transparent;padding:10px 0;color:var(--ink);font-size:11px;min-height:40px;outline-offset:0}.lesson-search input::placeholder{color:#8b9890}.lesson-list{display:flex;flex-direction:column;gap:4px}.lesson-list button,.lesson-button{display:flex;align-items:center;gap:9px;padding:10px 9px;width:100%;border:1px solid transparent;background:transparent;text-align:left;border-radius:9px;min-height:48px;font-size:12px;font-weight:650;line-height:1.3}.lesson-list button[aria-current="true"],.lesson-list button[aria-current="step"],.lesson-list button[aria-pressed="true"],.lesson-list .is-active,.lesson-list .active{border-color:#cadbc9;background:#e2eadc;box-shadow:inset 3px 0 0 var(--teal)}.lesson-list button:hover{background:#eaece3}.lesson-list .lesson-index,.lesson-list .lesson-num,.lesson-list .number,.lesson-number{color:#8b9b8f;font-size:10px;font-weight:700;letter-spacing:.5px;min-width:19px;flex-shrink:0}.lesson-list .lesson-text,.lesson-list .lesson-name,.lesson-list .lesson-copy{flex:1;min-width:0}.lesson-list .lesson-check,.lesson-list .check{font-size:12px;color:var(--teal);margin-left:auto}.lesson-list small{display:block;font-size:9px;font-weight:450;color:var(--muted);margin-top:3px}.loading-copy{padding:15px 3px;color:var(--muted);font-size:12px}.rail-footnote{margin:22px 5px 0;font-size:10px;color:#849187;line-height:1.65}.rail-footnote span{color:var(--teal);font-size:15px}.workspace{min-width:0}.project-heading{display:flex;justify-content:space-between;gap:22px;align-items:center;padding:25px 0 22px}.project-heading .eyebrow{font-size:8px;letter-spacing:1.35px}.heading-divider{padding:0 10px;color:#b4c0b2}.project-heading h1{font-size:clamp(24px,2.4vw,36px);font-weight:750;margin-top:7px}.project-heading>div>p:last-child{color:var(--muted);font-size:12px;max-width:650px;margin-top:9px}.project-stamp{font-size:9px;line-height:1.25;font-weight:850;letter-spacing:1px;text-align:center;transform:rotate(-8deg);border:1px solid #c6d2be;border-radius:50%;height:53px;width:53px;display:grid;place-content:center;color:#758f70;flex-shrink:0;margin-right:9px}.bench-grid{display:grid;grid-template-columns:minmax(0,1fr) 282px;gap:21px;align-items:start}.bench-column{min-width:0}.workbench-card{border:1px solid #d4ddce;border-radius:var(--radius);background:#edf0e5;overflow:hidden}.workbench-top{display:flex;justify-content:space-between;align-items:center;padding:13px 15px;gap:10px;position:relative;z-index:1}.view-tabs{display:flex;align-items:center;gap:3px;padding:3px;background:#e2e7dc;border-radius:8px}.view-tabs button{border:0;background:transparent;min-height:30px;padding:5px 11px;white-space:nowrap;font-size:10px;border-radius:5px;font-weight:650;color:#75887b}.view-tabs button[aria-pressed="true"]{background:var(--white);color:var(--ink);box-shadow:0 1px 3px #21423a0c}.live-label{font-size:7px;font-weight:750;letter-spacing:1.3px;color:#7b9380;white-space:nowrap;display:flex;align-items:center;gap:6px}.live-label>span{height:4px;width:4px;background:#83a86f;border-radius:50%}.scene-wrap{position:relative;height:370px;min-width:0;background:radial-gradient(ellipse at 50% 40%,#f4f5ea00,#e2e9d900);isolation:isolate}.scene-wrap canvas{height:100%;width:100%;display:block;touch-action:none;outline-offset:-5px}.scene-wrap .schematic{display:block;width:100%;height:100%;background:#f7f8f0}.scene-wrap .pinout{height:100%;overflow:auto;padding:18px 23px;background:#f7f8f0;font-size:12px}.scene-corner{position:absolute;width:18px;height:18px;pointer-events:none;border-color:#bbcaba;border-style:solid;opacity:.65}.scene-corner-tl{left:19px;top:8px;border-width:1px 0 0 1px}.scene-corner-br{right:19px;bottom:8px;border-width:0 1px 1px 0}.scene-fallback{position:absolute;inset:0;background:#edf0e5;display:grid;align-content:center;justify-items:center;text-align:center;padding:40px;z-index:2}.scene-fallback>span{font-size:50px;color:var(--teal);line-height:1}.scene-fallback h2{font-size:23px;margin:14px 0 10px}.scene-fallback p{font-size:12px;color:var(--muted);max-width:350px}.scene-fallback button{margin-top:20px;padding:7px 13px;background:var(--ink);color:white;border:0;font-size:11px}.scene-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:8px 16px}.camera-tools{display:flex;align-items:center;gap:2px}.camera-tools button{width:30px;min-height:30px;border:0;background:transparent;font-size:17px;font-weight:450;color:#4f6d5e;border-radius:6px}.camera-tools button:hover{background:#dbe5d3}.tool-divider{height:16px;width:1px;background:#c8d5c4;margin:0 4px}.scene-switches{display:flex;gap:6px}.scene-switches button{font-size:9px;min-height:29px;border:1px solid #cbd7c5;background:transparent;border-radius:6px;padding:5px 8px}.scene-switches button[aria-pressed="true"]{color:var(--ink);border-color:#a9bea1;background:#dce7d3}.scene-switches span{font-size:13px;margin-right:3px}.scene-caption{text-align:center;font-size:9px;color:#8c9b87;padding:0 12px 14px}.component-inspector{padding:17px 8px 15px;display:flex;gap:12px;align-items:flex-start;min-height:108px}.inspector-icon{width:27px;height:27px;border:1px solid #d2dccd;border-radius:8px;display:grid;place-items:center;font-size:17px;flex-shrink:0;color:#6e8c75}.component-inspector .eyebrow{font-size:7px;letter-spacing:1.2px;color:#96a18f}.component-inspector h2{font-size:14px;letter-spacing:-.2px;margin-top:4px}.component-inspector p:last-child{font-size:10px;line-height:1.6;color:var(--muted);margin-top:5px;max-width:580px}.readings-strip{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:15px;border:1px solid var(--line);border-radius:13px;padding:17px 18px;background:var(--white);align-items:center}.main-reading .eyebrow{font-size:7px;letter-spacing:1.2px}.main-reading output{display:block;font-size:25px;line-height:1.25;letter-spacing:-1px;font-weight:650;margin:5px 0}.main-reading p{font-size:9px;line-height:1.5;color:var(--muted);max-width:340px}.mini-readings{display:flex;align-items:flex-start;gap:17px}.mini-readings>div{padding-left:15px;border-left:1px solid #e2e6dd}.mini-readings dt{font-size:8px;color:#879583;white-space:nowrap}.mini-readings dd{margin:6px 0 0;font-size:12px;font-weight:650;white-space:nowrap}.experiment-panel{display:flex;flex-direction:column;gap:16px;min-width:0}.control-card{padding:20px;border:1px solid var(--line);border-radius:var(--radius);background:var(--white)}.card-heading{display:flex;gap:10px;align-items:flex-start;margin-bottom:20px}.section-number{font-size:10px;line-height:1;letter-spacing:-.5px;width:22px;height:22px;border:1px solid #d9e1d0;border-radius:6px;display:grid;place-items:center;color:#859879;flex-shrink:0}.card-heading .eyebrow{font-size:6.5px;letter-spacing:1.15px;line-height:1.4;margin:0 0 5px}.card-heading h2{font-size:21px;letter-spacing:-.7px}.controls{display:flex;flex-direction:column;gap:18px}.controls .control,.controls .parameter,.control-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:center}.controls label{font-size:10px;font-weight:650;display:block}.controls output,.controls .control-value{font-size:10px;font-weight:700;color:var(--teal);font-variant-numeric:tabular-nums}.controls input[type="range"]{grid-column:1/-1;width:100%;margin:3px 0;appearance:none;height:4px;background:#dce6d5;accent-color:var(--teal);border-radius:8px;cursor:pointer;min-height:4px}.controls input[type="range"]::-webkit-slider-thumb{appearance:none;height:14px;width:14px;border-radius:50%;background:var(--teal);border:3px solid var(--white);box-shadow:0 0 0 1px #b8cbb0}.controls input[type="range"]::-moz-range-thumb{height:9px;width:9px;border-radius:50%;background:var(--teal);border:3px solid var(--white);box-shadow:0 0 0 1px #b8cbb0}.controls .control-description,.controls small{font-size:9px;color:var(--muted);grid-column:1/-1;line-height:1.5}.controls button{padding:7px 12px;font-size:11px}.controls select{width:100%;background:var(--paper);border:1px solid var(--line);border-radius:7px;padding:6px 8px;font-size:11px}.controls input[type="checkbox"]{accent-color:var(--teal)}.controls>p{font-size:11px;color:var(--muted);line-height:1.65}.circuit-state{margin-top:19px;border-top:1px solid #e5e8df;padding-top:16px}.checkbox-label{display:flex;align-items:center;gap:8px;font-size:10px;font-weight:600;min-height:28px}.checkbox-label input{accent-color:var(--teal);width:14px;height:14px;margin:0}.fault-label{font-size:9px;color:var(--muted);font-weight:650;display:block;margin-top:12px}.fault-label select{width:100%;background:#f5f6ef;border:1px solid var(--line);border-radius:7px;padding:7px 9px;min-height:34px;font-size:10px;margin-top:5px}.text-button{border:0;background:transparent;padding:0;text-align:left;min-height:32px;font-size:10px;color:var(--teal);font-weight:750;border-radius:3px}.text-button:hover{background:transparent;color:#174a45;text-decoration:underline}.control-card>.text-button{margin-top:8px;font-size:9px}.mission-card{background:var(--amber);padding:21px;border:1px solid #eab655;border-radius:var(--radius);position:relative;overflow:hidden}.mission-card:after{content:"";position:absolute;width:110px;height:110px;right:-45px;top:-45px;border:1px solid #a4712729;border-radius:50%;pointer-events:none}.mission-topline{display:flex;align-items:center;gap:7px;margin-bottom:12px}.mission-topline .eyebrow{color:#8b6b33;font-size:7px;letter-spacing:1.3px}.mission-star{font-size:17px;color:#ad7d30;line-height:1}.mission-card h2{font-size:21px;line-height:1.15;max-width:210px;margin-bottom:10px}.mission-card>p{font-size:11px;line-height:1.7;color:#735e36}.mission-card .button{margin-top:17px;width:100%;min-height:39px}.button{display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:10px 17px;font-size:11px;line-height:1.3;font-weight:700;border-radius:8px;text-decoration:none;min-height:42px}.button-dark{background:var(--ink);color:var(--white);border-color:var(--ink)}.button-dark:hover{background:#285853;color:white;border-color:#285853}.button-dark span{margin-left:auto;font-size:16px;font-weight:400}.button-small{padding:7px 12px;font-size:10px;min-height:34px}.button-outline{border-color:#c6d5bd;background:transparent}.mission-card .mission-result{font-size:10px;line-height:1.6;margin-top:10px;font-weight:600}.mission-card .mission-result:empty{display:none}.mission-card .text-button{color:#71592b;font-size:9px;margin-top:9px}.why-card{display:flex;gap:10px;padding:4px 6px}.why-mark{display:grid;place-items:center;width:20px;height:20px;border:1px solid #cbd7c2;border-radius:50%;font-size:11px;font-weight:650;flex-shrink:0;color:#839b78}.why-card h2{font-size:11px;letter-spacing:-.1px;margin:3px 0 7px}.why-card p{font-size:10px;line-height:1.75;color:#85917e}.evidence-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:21px;margin-top:24px;align-items:stretch}.code-card,.scope-card{border:1px solid var(--line);border-radius:var(--radius);background:var(--white);overflow:hidden;min-width:0}.evidence-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:21px 21px 18px}.evidence-heading .eyebrow{font-size:7px;letter-spacing:1.25px}.evidence-heading h2{font-size:22px;margin-top:6px}.small-actions{display:flex;gap:6px;align-items:center}.small-actions button{min-height:29px;padding:4px 9px;background:transparent;font-size:9px;white-space:nowrap;border-radius:6px}.code-filename{padding:10px 18px;background:#e8ede1;display:flex;gap:7px;align-items:center;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:9px;color:#6b8367;border-top:1px solid #dbe2d2;border-bottom:1px solid #dbe2d2}.code-filename>span:last-child{font-family:var(--sans);font-size:6px;letter-spacing:.8px;margin-left:auto;white-space:nowrap}.code-dot{height:4px;width:4px;background:#819e75;border-radius:50%}.code-editor{margin:0;padding:17px 18px 20px;min-height:220px;max-height:300px;overflow:auto;font-size:10px;line-height:1.9;color:#b7d3c2;background:#173a3c;tab-size:2;scrollbar-color:#517263 #173a3c}.code-editor code{font-family:ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;white-space:pre}.code-editor .code-line{display:block;min-height:1.9em}.code-editor .code-line.active,.code-editor .is-current{background:#355b49;color:#f1d898}.code-editor .line-number{color:#6d8d7c;display:inline-block;width:25px;user-select:none}.simulation-controls{display:flex;align-items:center;gap:7px;padding:13px 16px;flex-wrap:wrap;border-bottom:1px solid #e4e8dc}.simulation-controls button{font-size:9px;min-height:31px;padding:5px 8px}.simulation-controls .button{background:var(--ink);color:white;border-color:var(--ink);padding:6px 12px}.code-note{font-size:8px;line-height:1.65;color:#90a087;padding:11px 17px}.scope-unit{font-size:6.5px;letter-spacing:.9px;color:#96a18e;white-space:nowrap}.scope{display:block;width:calc(100% - 32px);height:auto;min-height:160px;margin:0 16px;background:#f6f7ef;border:1px solid #e2e6d8;border-radius:8px}.scope-note{font-size:8px;line-height:1.6;color:#8d9e83;margin:10px 20px 16px}.trial-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 20px 12px;border-bottom:1px solid #e3e8d8}.trial-heading h3{font-size:12px;letter-spacing:-.15px}.trial-heading button{min-height:29px;font-size:8px;padding:5px 8px;white-space:nowrap}.trial-list{padding:14px 20px}.empty-state{font-size:10px;line-height:1.65;color:#94a18b;max-width:250px}.trial-list .trial,.trial-card{padding:10px 0;border-bottom:1px solid #e7ebdf;font-size:10px}.trial-list .trial:first-child{padding-top:0}.trial-list .trial:last-child{border:0}.trial-list strong{font-size:10px}.trial-list p{font-size:9px;color:var(--muted);margin-top:4px}.trial-list dl{display:flex;gap:10px;flex-wrap:wrap;font-size:9px}.trial-list dd{margin:0}.trial-list button{font-size:9px;min-height:26px;padding:3px 7px}.trial-list table{width:100%;border-collapse:collapse;text-align:left;font-size:9px}.trial-list th,.trial-list td{padding:7px 4px;border-bottom:1px solid #e6ebde;vertical-align:top;overflow-wrap:anywhere}.trial-list th{color:#8b9e81;font-weight:600}.notebook-card{border:1px solid var(--line);background:#f0f1e7;border-radius:var(--radius);padding:24px;margin-top:23px}.notebook-heading{display:flex;gap:13px;align-items:flex-start}.notebook-mark{font-size:27px;color:#8aa077;line-height:1.2}.notebook-heading .eyebrow{font-size:7px;letter-spacing:1.2px}.notebook-heading h2{font-size:24px;margin-top:5px}.notebook-heading p:last-child{font-size:10px;line-height:1.6;color:#8c9a81;margin-top:7px}.device-chip{font-size:6.5px;letter-spacing:.8px;margin-left:auto;white-space:nowrap;border:1px solid #d4ddc8;border-radius:20px;padding:5px 8px;color:#8ba17b;line-height:1.3;margin-top:4px}.notebook-fields{display:grid;grid-template-columns:1fr 1fr;gap:17px;margin-top:20px}.notebook-fields label{font-size:10px;font-weight:650}.notebook-fields textarea{display:block;resize:vertical;width:100%;min-height:87px;border:1px solid #d7e0cd;background:#fcfdf5;border-radius:9px;padding:11px 12px;font-size:10px;line-height:1.7;color:var(--ink);margin-top:7px;max-height:300px}.notebook-fields textarea::placeholder{color:#a3ae97}.notebook-actions{display:flex;align-items:center;gap:18px;margin-top:15px}.notebook-actions .text-button{font-size:9px}.notebook-actions>span{margin-left:auto;color:#9aa68e;font-size:8px}.studio-footer{border-top:1px solid var(--line);padding:25px 0 26px}.footer-top{display:flex;justify-content:space-between;align-items:center;gap:20px}.footer-brand{font-size:14px;font-weight:800;text-decoration:none;letter-spacing:-.5px;white-space:nowrap}.footer-brand strong{font-size:10px;letter-spacing:0;font-weight:450;margin-left:3px}.footer-brand>span{font-size:19px;color:#b4c3a8;margin-left:12px}.footer-top p{font-size:8px;color:#a0ad96;text-align:center}.footer-top>a:last-child{font-size:9px;text-decoration:none;font-weight:650;white-space:nowrap}.model-notes{font-size:9px;margin-top:16px;color:#9baa8d}.model-notes summary{cursor:pointer;display:list-item;width:fit-content}.model-notes-body{max-width:1000px;color:#829376;font-size:10px;line-height:1.8;padding-top:12px}.model-notes-body p+p{margin-top:9px}.model-notes a{text-underline-offset:3px}.toast{position:fixed;bottom:22px;left:50%;transform:translate(-50%,12px);background:var(--ink);color:var(--white);padding:12px 20px;border-radius:10px;box-shadow:0 6px 25px #153f4426;z-index:100;max-width:min(90vw,520px);font-size:12px;text-align:center;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}.toast:not(:empty){opacity:1;transform:translate(-50%,0)}.noscript{position:fixed;inset:20% 15%;background:var(--white);border:2px solid var(--ink);border-radius:20px;padding:40px;z-index:100;box-shadow:0 0 0 100vmax #153f4480}.noscript h2{margin-bottom:15px}.pinout h2,.pinout h3{font-size:16px;margin:8px 0 14px}.pinout p{font-size:11px;color:var(--muted);margin:8px 0}.pinout table{width:100%;border-collapse:collapse;text-align:left;font-size:11px}.pinout th,.pinout td{padding:9px;border-bottom:1px solid var(--line)}.pinout th{font-size:9px;text-transform:uppercase;letter-spacing:1px;color:var(--muted)}.pinout button{font-size:11px;padding:5px 9px;min-height:30px}.pinout .pin-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:6px}.pinout .pin{border:1px solid var(--line);border-radius:6px;padding:8px}.pinout ul{padding-left:18px;font-size:11px;color:var(--muted)}
@media(min-width:1500px){.studio-grid{grid-template-columns:230px minmax(0,1fr);gap:34px}.bench-grid{grid-template-columns:minmax(0,1fr) 302px;gap:24px}.scene-wrap{height:420px}.scene-caption{padding-bottom:17px}.control-card{padding:23px}.mission-card{padding:24px}.readings-strip{padding:20px}.studio-wordmark{font-size:65px}}
@media(max-width:1280px){.site-header,.studio-shell{padding-left:24px;padding-right:24px}.studio-grid{grid-template-columns:186px minmax(0,1fr);gap:22px}.lesson-rail{padding-right:18px}.bench-grid{grid-template-columns:minmax(0,1fr) 248px;gap:16px}.controls{gap:15px}.control-card{padding:17px}.mission-card{padding:18px}.card-heading h2{font-size:19px}.scene-wrap{height:340px}.live-label{display:none}.workbench-top{padding:12px}.view-tabs button{padding-left:9px;padding-right:9px}.readings-strip{grid-template-columns:1fr;padding:15px}.mini-readings{border-top:1px solid #e4e8dd;padding-top:11px;justify-content:space-between}.mini-readings>div{border:0;padding-left:0}.main-reading output{font-size:24px}.component-inspector{min-height:95px}.evidence-grid{gap:16px}.notebook-card{padding:21px}.evidence-heading{padding:18px 17px}.evidence-heading h2{font-size:21px}.small-actions button{font-size:8px;padding:4px 7px}.scope-unit{display:none}}
@media(max-width:1080px){.studio-grid{grid-template-columns:180px minmax(0,1fr);gap:23px}.bench-grid{grid-template-columns:minmax(0,1fr)}.scene-wrap{height:390px}.experiment-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}.control-card{grid-row:span 2}.why-card{padding:0 6px}.mission-card h2{max-width:none}.readings-strip{grid-template-columns:minmax(0,1fr) auto}.mini-readings{border:0;padding-top:0;gap:14px;justify-content:flex-start}.mini-readings>div{padding-left:13px;border-left:1px solid #e2e6dd}.component-inspector{min-height:85px}.evidence-grid{grid-template-columns:1fr}.code-editor{min-height:180px;max-height:300px}.scope{min-height:180px}.scope-unit{display:block}.scope-note{font-size:9px}.trial-list{min-height:70px}.project-heading h1{font-size:31px}.header-options{gap:8px}.compact-select{gap:7px}.compact-select>span:not(.sr-only){display:none}.site-header{gap:25px}.masthead-note svg{display:none}.device-chip{display:none}.notebook-actions>span{max-width:150px;text-align:right}.footer-top{flex-wrap:wrap}.footer-top p{order:3;width:100%;text-align:left;margin-top:-8px}.studio-wordmark{font-size:49px}}
@media(max-width:780px){.site-header{height:76px;gap:20px;padding-left:18px;padding-right:18px}.brand{font-size:21px;gap:8px}.brand-symbol{width:33px;height:33px;border-radius:9px}.brand-symbol svg{width:23px;height:23px}.brand-subtitle{font-size:6.5px;letter-spacing:1.2px}.site-header nav{margin-left:auto}.header-options{margin-left:0}.compact-select select{font-size:10px;padding:7px 20px 7px 7px;min-height:34px}.language-select{display:none}.back-link{font-size:11px}.studio-shell{padding:0 18px}.studio-masthead{padding:28px 0 24px}.studio-wordmark{font-size:40px;letter-spacing:-2px;gap:10px}.studio-tagline{font-size:13px}.masthead-note{display:none}.studio-masthead .eyebrow{font-size:7px;gap:7px;letter-spacing:1.2px}.age-chip{font-size:6.5px;padding:2px 6px;margin-left:4px}.studio-grid{grid-template-columns:154px minmax(0,1fr);gap:18px}.lesson-rail{padding-right:14px;padding-top:22px}.rail-heading h2{font-size:18px}.rail-heading .eyebrow{font-size:7px;letter-spacing:1.1px}.path-progress>div{font-size:8px}.path-progress strong{font-size:9px}.lesson-list button{font-size:10px;padding:9px 6px;gap:6px;min-height:44px}.lesson-list small{font-size:8px}.lesson-list .lesson-index,.lesson-list .lesson-num,.lesson-list .number{min-width:16px;font-size:8px}.lesson-search{gap:4px;padding:0 6px}.lesson-search input{font-size:9px}.lesson-search svg{width:13px}.rail-footnote{font-size:8px}.project-heading{padding:23px 0 19px;gap:12px}.project-heading h1{font-size:26px}.project-heading .eyebrow{font-size:6.5px;letter-spacing:1px}.project-heading>div>p:last-child{font-size:10px;line-height:1.7}.project-stamp{display:none}.scene-wrap{height:300px}.workbench-top{padding:10px}.view-tabs{gap:0}.view-tabs button{font-size:9px;padding:5px 8px}.scene-toolbar{padding:6px 9px;gap:4px;flex-wrap:wrap}.scene-switches{margin-left:auto;gap:4px}.scene-switches button{font-size:8px;padding:4px 6px}.camera-tools button{width:27px;min-height:28px}.scene-caption{font-size:8px;padding:4px 9px 12px;line-height:1.6}.component-inspector{padding:15px 4px;gap:9px}.component-inspector h2{font-size:12px}.component-inspector p:last-child{font-size:9px}.readings-strip{grid-template-columns:1fr}.mini-readings{padding-top:9px;border-top:1px solid #e4e8dd;justify-content:space-between}.mini-readings>div{border:0;padding:0}.experiment-panel{grid-template-columns:1fr}.control-card{grid-row:auto}.card-heading .eyebrow{font-size:7px}.card-heading h2{font-size:21px}.controls label,.controls output{font-size:11px}.controls{gap:20px}.controls input[type="range"]{height:5px;margin:7px 0}.controls input[type="range"]::-webkit-slider-thumb{height:18px;width:18px}.checkbox-label,.fault-label{font-size:10px}.fault-label select{font-size:11px;min-height:38px}.mission-card h2{font-size:22px}.mission-card>p{font-size:11px}.why-card{padding:3px 5px}.why-card p{font-size:10px}.evidence-grid{margin-top:20px}.evidence-heading{padding:17px}.evidence-heading h2{font-size:22px}.evidence-heading .eyebrow{font-size:6.5px}.scope-unit{display:none}.code-filename{font-size:8px;padding:10px 13px}.code-filename>span:last-child{font-size:5.5px;letter-spacing:.4px}.code-editor{font-size:9px;padding:15px 12px;line-height:1.9}.simulation-controls{padding:11px 12px;gap:5px}.simulation-controls button{font-size:8px;padding:5px 7px}.code-note{font-size:8px;padding:10px 13px}.scope{width:calc(100% - 24px);margin:0 12px;min-height:130px}.scope-note{margin:10px 15px 15px;font-size:8px}.trial-heading{padding:0 15px 11px}.trial-list{padding:13px 15px}.notebook-card{padding:18px}.notebook-heading{gap:9px}.notebook-heading h2{font-size:22px}.notebook-mark{font-size:24px}.notebook-fields{grid-template-columns:1fr;gap:14px}.notebook-fields label{font-size:11px}.notebook-fields textarea{font-size:11px}.notebook-actions{flex-wrap:wrap;gap:11px}.notebook-actions>span{max-width:none;width:100%;text-align:left;margin-left:0}.footer-top>a:last-child{font-size:8px}.footer-top p{line-height:1.7;font-size:7px}.studio-footer{padding-bottom:20px}.scene-fallback{padding:20px}.scene-fallback h2{font-size:19px}.scene-fallback p{font-size:10px}.scene-fallback button{font-size:9px;padding:6px 10px}.scene-wrap .pinout{padding:12px;font-size:10px}.pinout table{font-size:9px}.pinout th,.pinout td{padding:7px 5px}.pinout h2,.pinout h3{font-size:14px}.pinout p{font-size:10px}}
@media(max-width:560px){.site-header{height:auto;min-height:75px;flex-wrap:wrap;padding:16px;gap:12px}.brand{font-size:21px}.brand-subtitle{font-size:6px}.site-header nav{margin-left:auto}.back-link{font-size:11px}.header-options{width:100%;border-top:1px solid #e3e7dc;padding-top:11px;justify-content:space-between;gap:10px}.header-options .compact-select>span:not(.sr-only){display:block;font-size:9px}.header-options .language-select{display:flex}.compact-select select{font-size:10px;min-height:32px}.language-select select{padding-right:16px}.studio-shell{padding:0 14px}.studio-masthead{padding:24px 0 20px}.studio-wordmark{font-size:38px;gap:8px}.studio-tagline{font-size:13px;margin-top:8px}.studio-grid{grid-template-columns:minmax(0,1fr);gap:0}.lesson-rail{padding:18px 0 19px;border-right:0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:16px;align-items:center}.rail-heading h2{font-size:17px;max-width:200px;margin-top:4px}.rail-heading .eyebrow{font-size:6px}.path-progress{margin:0}.path-progress>div{font-size:8px}.path-progress strong{font-size:10px}.lesson-search{grid-column:1/-1;margin:14px 0 8px}.lesson-search input{font-size:11px;min-height:35px;padding:7px 0}.lesson-search svg{height:15px;width:15px}.lesson-list{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;max-height:171px;overflow:auto;gap:3px 7px;scrollbar-width:thin;scrollbar-color:#bdcdb3 transparent;padding-right:4px}.lesson-list button{font-size:10px;padding:9px;min-height:42px;gap:8px}.lesson-list .lesson-index,.lesson-list .lesson-num,.lesson-list .number{font-size:9px}.lesson-list small{font-size:7px}.rail-footnote{grid-column:1/-1;margin:9px 2px 0;font-size:8px}.project-heading{padding:21px 1px 18px}.project-heading h1{font-size:29px;letter-spacing:-1.3px}.project-heading .eyebrow{font-size:7px}.project-heading>div>p:last-child{font-size:11px;max-width:none}.bench-grid{gap:17px}.scene-wrap{height:300px}.view-tabs button{font-size:10px;padding:6px 10px}.workbench-top{padding:10px 11px}.scene-toolbar{padding:7px 10px;flex-wrap:nowrap;gap:8px}.camera-tools button{width:27px}.scene-switches button{font-size:8px;padding:4px 6px}.scene-switches span{font-size:10px}.tool-divider{margin:0 2px}.scene-caption{font-size:8px;padding:1px 10px 13px}.component-inspector{padding:17px 4px}.component-inspector h2{font-size:13px}.component-inspector p:last-child{font-size:10px}.readings-strip{padding:16px;gap:12px}.main-reading output{font-size:29px}.main-reading p{font-size:10px}.mini-readings{padding-top:12px}.mini-readings dt{font-size:9px}.mini-readings dd{font-size:13px}.experiment-panel{gap:15px}.control-card{padding:20px}.mission-card{padding:22px}.mission-card h2{font-size:25px}.mission-card>p{font-size:12px}.mission-card .button{font-size:12px;min-height:43px}.mission-card .text-button{font-size:10px}.why-card{padding:6px 8px}.why-card h2{font-size:12px}.why-card p{font-size:11px}.evidence-grid{margin-top:22px;gap:19px}.evidence-heading{padding:20px}.evidence-heading h2{font-size:24px}.evidence-heading .eyebrow{font-size:7px}.small-actions button{font-size:9px;min-height:32px}.code-editor{font-size:10px;padding:17px 15px;min-height:180px;max-height:280px}.code-filename{padding:11px 15px;font-size:9px}.code-filename>span:last-child{font-size:6px;letter-spacing:.4px}.simulation-controls{padding:13px 15px;gap:7px}.simulation-controls button{font-size:9px;min-height:34px}.code-note{font-size:9px;padding:12px 15px}.scope{min-height:155px;width:calc(100% - 30px);margin:0 15px}.scope-note{font-size:9px;line-height:1.65;margin:11px 18px 18px}.trial-heading{padding:0 18px 13px}.trial-heading h3{font-size:13px}.trial-heading button{font-size:9px;min-height:32px}.trial-list{padding:15px 18px}.empty-state{font-size:11px}.notebook-card{padding:21px;margin-top:20px}.notebook-heading h2{font-size:25px}.notebook-heading p:last-child{font-size:11px}.notebook-fields label{font-size:12px}.notebook-fields textarea{font-size:11px;padding:12px}.notebook-fields{margin-top:19px}.notebook-actions .button{font-size:10px;min-height:37px}.notebook-actions .text-button{font-size:10px}.notebook-actions>span{font-size:9px}.studio-grid{padding-bottom:28px}.footer-top p{font-size:8px}.footer-top>a:last-child{font-size:9px}.model-notes{font-size:10px}.model-notes-body{font-size:10px}.scene-fallback{padding:26px}.scene-fallback h2{font-size:23px}.scene-fallback p{font-size:12px}.scene-fallback button{font-size:11px}.pinout table{font-size:10px}.pinout p{font-size:11px}.noscript{inset:8% 5%;padding:25px}.toast{bottom:14px;font-size:11px;padding:11px 16px}}
@media(max-width:360px){.brand{font-size:19px}.studio-wordmark{font-size:33px}.studio-masthead .eyebrow{font-size:6px;gap:5px}.age-chip{font-size:5px}.view-tabs button{padding:5px 8px;font-size:9px}.scene-wrap{height:270px}.scene-toolbar{flex-wrap:wrap}.scene-switches{margin-left:auto}.compact-select{gap:5px}.compact-select select{font-size:9px}.header-options{gap:4px}.project-heading h1{font-size:26px}.evidence-heading{padding:17px 15px}.evidence-heading h2{font-size:22px}.small-actions{gap:4px}.mini-readings dd{font-size:12px}.code-filename{font-size:8px}.code-filename>span:last-child{font-size:5px}.simulation-controls{gap:5px}.simulation-controls button{font-size:8px;padding:5px 6px}.notebook-card{padding:18px}.footer-brand{font-size:13px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media print{.site-header,.lesson-rail,.scene-toolbar,.view-tabs,.simulation-controls,.small-actions,.notebook-actions,.toast,.header-options,.studio-masthead,.model-notes,.mission-card button,.controls input,.controls select{display:none!important}.studio-shell{max-width:none;padding:0}.studio-grid,.bench-grid,.evidence-grid{display:block}.project-heading,.workbench-card,.readings-strip,.code-card,.scope-card,.notebook-card{break-inside:avoid;margin:15px 0}.scene-wrap{height:300px}.experiment-panel{display:block}.control-card,.why-card{display:none}.code-editor{max-height:none;background:#fff;color:#123}.code-note,.scope-note{color:#555}.notebook-fields textarea{border:0;background:white;resize:none}.workspace{width:100%}.studio-footer{padding-top:12px}.footer-top p{font-size:9px}body{background:white;color:#123}}
/* Dynamic workbench markup. */
.lesson-list .project-link.is-selected{border-color:#cadbc9;background:#e2eadc;box-shadow:inset 3px 0 0 var(--teal)}
.lesson-list .project-index{color:#8b9b8f;font-size:10px;font-weight:700;letter-spacing:.5px;min-width:19px;flex-shrink:0}
.lesson-list .project-link>span:nth-child(2){flex:1;min-width:0}
.lesson-list .project-link strong{font-weight:650;font-size:inherit}
.lesson-list .project-arrow{font-size:12px;color:#9bb391;margin-left:auto;opacity:0;flex-shrink:0}
.lesson-list .project-link.is-selected .project-arrow,.lesson-list .project-link:hover .project-arrow{opacity:1}
.spark-control>div{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:5px}
.spark-control>div label{max-width:75%;line-height:1.5}
.spark-control output{white-space:nowrap;flex-shrink:0}
.piano-keys{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:3px;align-items:start;margin-top:3px;padding:8px 6px;background:#e7edde;border:1px solid #d2ddc9;border-radius:8px}
.controls .piano-keys button{padding:26px 0 8px;min-height:68px;font-size:9px;border:1px solid #c9d3c3;border-bottom-width:4px;border-radius:3px 3px 6px 6px;background:#fffefa;box-shadow:0 1px 2px #153f4410}
.controls .piano-keys button:hover,.controls .piano-keys button:active{background:#f3c365;border-bottom-color:#bb8d40}
.pinout .pinout-title h3{margin-top:0;margin-bottom:6px}
.pinout .pinout-title p{font-size:10px;margin-bottom:16px;color:#879a7a}
.pin-list{border:1px solid #d8e1cf;border-radius:9px;overflow:hidden}
.pin-list>div{display:grid;grid-template-columns:minmax(60px,.4fr) minmax(0,1fr);gap:15px;padding:12px 15px;border-bottom:1px solid #dce4d4;background:#fffef8;align-items:start}
.pin-list>div:last-child{border-bottom:0}
.pin-list dt{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px;font-weight:700;color:var(--teal);overflow-wrap:anywhere}
.pin-list dd{font-size:11px;margin:0;color:#62785e;overflow-wrap:anywhere}
.pinout .pinout-note{font-size:9px;line-height:1.7;margin-top:17px;color:#8a9c7d}
.empty-note{font-size:10px;line-height:1.7;color:#94a18b;max-width:280px}
.trial-list caption{text-align:left;font-size:9px;color:#899b7d;padding-bottom:8px}
.scene-caption.has-fault{color:#a95d35;background:#f5e9d3;border-top:1px solid #e7d8bd;padding-top:8px;font-weight:600}
@media(max-width:780px){.lesson-list .project-index{min-width:16px;font-size:8px}.lesson-list .project-arrow{display:none}.pin-list>div{gap:8px;padding:10px}.pin-list dt,.pin-list dd{font-size:10px}}
@media(max-width:560px){.lesson-list .project-index{font-size:9px}.piano-keys{gap:4px;padding:9px 8px}.controls .piano-keys button{min-height:76px;font-size:10px}.empty-note{font-size:11px}.pinout .pinout-note{font-size:10px}}
