:root{--ink:#233b40;--muted:#687d82;--line:#dde6e5;--bg:#f4f7f6;--white:#fff;--teal:#11786a;--teal-dark:#0c6258;--mint:#dff3e9;--nav:#172f34;--gold:#d19438;--danger:#b74942;--blue:#4367b1;--radius:17px;--font:"Meiryo","Hiragino Kaku Gothic ProN","Hiragino Kaku Gothic Pro","Hiragino Sans","Noto Sans JP","Noto Sans CJK JP","Noto Sans",sans-serif}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font);font-size:13px;line-height:1.7}button,input,select,textarea{font:inherit}button,a,input,select,textarea,canvas{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}a{color:var(--teal)}button{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,canvas:focus-visible,[tabindex]:focus-visible{outline:3px solid #16a786;outline-offset:3px}button{border:0}button svg{width:18px;height:18px}button svg,*[aria-hidden=true]{flex-shrink:0}input[type=range]{accent-color:var(--teal);width:100%;cursor:pointer}input[type=checkbox]{accent-color:var(--teal);width:16px;height:16px}input[type=number]{border:1px solid #cddbd8;border-radius:7px;padding:5px 7px;color:var(--ink);background:#fff;min-width:0}select{border:1px solid #d2dfdd;border-radius:8px;padding:7px 26px 7px 9px;background:#fff;color:var(--ink);max-width:100%}h1,h2,h3,p{margin:0}h2{font-size:16px;font-weight:700}h3{font-size:14px}small{font-size:11px}svg{display:block}strong{font-weight:700}[hidden]{display:none!important}.sr-only{position:absolute!important;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link{position:fixed;top:-100px;left:20px;z-index:100;background:#fff;padding:12px}.skip-link:focus{top:12px}
.sidebar{width:230px;position:fixed;inset:0 auto 0 0;background:var(--nav);color:#d3e1e1;display:flex;flex-direction:column;padding:28px 17px 18px;z-index:10}.brand{display:flex;align-items:center;gap:11px;color:#f6fcfa;text-decoration:none;margin:0 10px 44px;font:500 22px/1.1 var(--font);letter-spacing:1px}.brand b{font-weight:800}.brand small{display:block;letter-spacing:1.1px;font:10px var(--font);color:#a6c4c2;margin-top:8px}.brand-mark{background:#244a4e;border:1px solid #355f60;width:42px;height:46px;border-radius:12px;display:grid;place-items:center}.brand-mark svg{width:36px;fill:none;stroke:#8de1ca;stroke-width:2.5;stroke-linecap:round}.brand-mark circle{fill:#8de1ca;stroke:none}.nav-heading{font:600 9px var(--font);letter-spacing:1.5px;margin:0 13px 15px;color:#87a5a8}.nav-heading span{float:right;color:#c9d9d9;font-size:8px}.stage-button{display:flex;align-items:center;width:100%;padding:13px 11px;gap:12px;color:#b7cccd;background:transparent;border-radius:11px;text-align:left;position:relative;margin-bottom:5px;transition:background .15s}.stage-button:hover{background:#23444a}.stage-button.active{background:#ddf2e8;color:#174e45}.stage-number{font:600 13px var(--font);width:30px;height:32px;border:1px solid #486167;display:grid;place-items:center;border-radius:9px;flex-shrink:0}.stage-button.active .stage-number{border-color:#b7d9c9;background:#c9e8da}.stage-button.completed .stage-number{color:#77d8b8;border-color:#77d8b8}.stage-button.completed.active .stage-number{color:#1a7258;border-color:#80bea6}.stage-text{font-weight:700;font-size:12px;line-height:1.45}.stage-text small{font-size:9px;font-weight:400;display:block;opacity:.7;margin-top:4px;letter-spacing:.3px}.stage-arrow{margin-left:auto;opacity:0}.active .stage-arrow{opacity:1}.sidebar-note{display:flex;gap:8px;margin:24px 11px 25px;font-size:10px;color:#bacdcb}.sidebar-note p{font-size:9px;color:#89a8ab;margin-top:4px}.mini-circuit{color:#8cceba;font-size:20px}.journey-progress{margin:auto 12px 0;padding-top:20px;font-size:10px}.journey-progress>div:first-child{display:flex;justify-content:space-between}.journey-progress strong{font:600 12px var(--font)}.progress-track{height:4px;background:#355056;border-radius:8px;margin:12px 0 8px;overflow:hidden}.progress-track span{display:block;background:#87d6bb;height:100%;width:0%;transition:width .3s}.journey-progress p{font-size:8px;color:#819fa3}.sidebar-help{margin:23px 12px 15px;background:transparent;text-align:left;padding:0;font-size:10px;color:#b9ced1}.sidebar-help span{margin-right:7px;font-size:13px}.sidebar-footer{font:500 8px var(--font);letter-spacing:2.2px;color:#789398;border-top:1px solid #304b50;padding:17px 12px 0}
main{margin-left:230px;padding:0 35px;max-width:1900px}.topbar{height:73px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:16px}.breadcrumb{font-size:11px;color:#788a8d}.breadcrumb span{margin:0 13px;color:#c1cfcc}.breadcrumb strong{color:#536b70;font-weight:500}.top-actions{display:flex;align-items:center;gap:18px}.saved-indicator{font-size:9px;color:#718680;display:flex;align-items:center;gap:6px}.saved-indicator i,.live-chip i{display:inline-block;width:5px;height:5px;border-radius:50%;background:#429b78}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--teal);border:1px solid var(--teal);color:#fff;padding:10px 16px;border-radius:9px;font-weight:700;font-size:12px;min-height:40px;transition:background .15s}.button:hover{background:var(--teal-dark)}.button.small{min-height:33px;padding:6px 12px;font-size:10px}.button.ghost{background:transparent;color:#526b70;border-color:#d2dedb}.button.ghost:hover{background:#e8efec}.button.white{background:#fff;color:var(--ink);border-color:#d9e5e1}.button.white:hover{background:#f4f8f6}.button.danger{background:#fff;color:var(--danger);border-color:#e8c5c0}.button.danger:hover{background:#fff0ed}.button.text-button{border-color:transparent;background:transparent;color:var(--teal);padding:7px 0;min-height:30px}.lesson-heading{display:flex;align-items:center;justify-content:space-between;padding:29px 0 24px;gap:20px}.eyebrow{font:650 9px var(--font);letter-spacing:1.8px;color:var(--teal);margin-bottom:9px}.lesson-heading h1{font-size:clamp(22px,2.0vw,31px);line-height:1.5;letter-spacing:.04em;font-weight:700}.lesson-heading p{font-size:11px;color:var(--muted);margin-top:8px;max-width:880px;line-height:1.9}.lesson-badge{border:1px solid #d3e2db;border-radius:13px;min-width:65px;height:68px;text-align:center;display:flex;justify-content:center;flex-direction:column;color:#91aaa3}.lesson-badge span{font:500 29px/1.2 var(--font)}.lesson-badge small{font:600 7px var(--font);letter-spacing:1.5px;margin-top:3px}.workspace-tabs{display:flex;align-items:center;border-bottom:1px solid var(--line);gap:29px;margin-bottom:20px}.workspace-tab{padding:11px 0 13px;background:transparent;border-bottom:2px solid transparent;color:#71807e;font-size:11px;font-weight:700;margin-bottom:-1px}.workspace-tab.active{border-bottom-color:var(--teal);color:var(--teal)}.workspace-tab span{margin-left:6px;font-size:12px}.model-tag{margin-left:auto;font-size:9px;color:#7b8d88}.mission-strip{border:1px solid #d6e7dd;background:#edf7ef;display:flex;align-items:center;gap:10px;padding:11px 15px;border-radius:10px;margin-bottom:20px;font-size:11px}.mission-icon{font-size:19px;color:var(--teal);line-height:1}.mission-label{font:700 8px var(--font);letter-spacing:1px;color:#40876b;border-right:1px solid #c8e1d3;padding-right:12px}.mission-strip p{flex:1;color:#3b6753;line-height:1.7}.mission-state{font-size:8px;border:1px solid #c6dfcd;background:#f8fcf9;padding:2px 7px;border-radius:5px;white-space:nowrap;color:#527963}.mission-state.done{background:#1c7858;color:#fff;border-color:#1c7858}.workbench{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:19px;align-items:start}.workbench.programming{grid-template-columns:minmax(0,1.13fr) minmax(370px,.87fr)}.experiment-column{min-width:0}.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.card-heading{padding:18px 20px 15px;display:flex;align-items:center;justify-content:space-between;gap:12px}.section-kicker{font:600 8px var(--font);letter-spacing:1.7px;color:#819792;display:block;margin-bottom:4px}.card-heading h2{font-size:13px;letter-spacing:.03em}.live-chip{display:flex;align-items:center;gap:5px;background:#eff7f1;color:#458566;border:1px solid #d9e8df;border-radius:4px;padding:2px 6px;font:600 8px var(--font);letter-spacing:.5px}.live-chip.paused{color:#75858a;background:#f4f6f7;border-color:#e0e5e7}.live-chip.paused i{background:#9aa9ae}.live-chip.error{color:#b13d34;background:#fff0ec;border-color:#f3d4c8}.live-chip.error i{background:#d06644}.scene-toolbar{padding:0 20px 10px;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px}.segmented{display:inline-flex;padding:3px;border:1px solid #dfe7e4;background:#f8faf9;border-radius:7px;gap:3px}.segmented button{font-size:9px;padding:4px 10px;border-radius:5px;background:transparent;color:#71827c;min-height:27px}.segmented button.active{background:#fff;color:var(--teal);box-shadow:0 1px 4px #143a2914;font-weight:700}.toolbar-note{font-size:9px;color:#899a94}.canvas-wrap{position:relative;background:#f9fbfa;margin:0 14px;border:1px solid #e3eae6;border-radius:10px;overflow:hidden}.canvas-wrap canvas{display:block;width:100%;aspect-ratio:1.76;touch-action:none;cursor:grab}.canvas-wrap canvas:active{cursor:grabbing}.canvas-hint{position:absolute;left:50%;bottom:13px;transform:translateX(-50%);white-space:nowrap;font-size:9px;background:#ffffffed;border:1px solid #dbe6df;border-radius:20px;padding:5px 12px;color:#6a8176;pointer-events:none;box-shadow:0 3px 10px #36543d06}.scene-controls{padding:14px 19px 9px;display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.scene-controls .button{font-size:10px;padding:8px 13px;min-height:35px}.control-cluster{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.compact-field{font-size:10px;display:flex;align-items:center;gap:6px;color:#60766e}.compact-field select{font-size:10px;padding:5px}.scene-legend{padding:9px 20px 16px;display:flex;flex-wrap:wrap;justify-content:center;gap:16px;font-size:9px;color:#7b8e86}.legend-item{display:inline-flex;align-items:center;gap:6px}.legend-swatch{width:9px;height:9px;border-radius:3px;background:#fff;border:1px solid #c7d5d0}.legend-swatch.black{background:#263b3c;border-color:#263b3c}.legend-swatch.teal{background:#d3eee2;border-color:#9bceb6}.legend-swatch.orange{background:#e9b777;border-color:#c39768}.legend-line{width:15px;height:0;border-top:2px dashed #8ebeb4}.inspector{min-width:0;display:flex;flex-direction:column;gap:15px}.inspector .card-heading{padding:17px 18px 12px}.readout-section{padding:0 18px 17px}.digital-display{display:flex;align-items:center;justify-content:space-between;background:#eff7f2;border:1px solid #d9e8de;border-radius:10px;padding:13px 16px;margin-bottom:14px;transition:background .2s}.digital-display.off{background:#edf0f0;border-color:#d9dfdf}.digital-display>div{display:flex;flex-direction:column}.digital-display span{font-size:10px;color:#668379}.digital-display strong{font-size:19px;color:#277253;letter-spacing:.06em}.digital-display.off strong{color:#4a5d60}.digital-display b{font:500 50px/1 var(--font);color:#237756;letter-spacing:-2px}.digital-display.off b{color:#4b6162}.readout-pair{display:flex;justify-content:space-between;align-items:center;font-size:10px;color:#7e9187}.readout-pair strong{font:600 15px var(--font);color:var(--ink)}.value-bar{height:9px;background:#edf1ee;border-radius:3px;margin:9px 0 12px;position:relative;overflow:visible}.value-bar span{height:100%;display:block;width:82%;background:linear-gradient(90deg,#b4d3c0,#559f7b);border-radius:3px;transition:width .1s}.threshold-tick{position:absolute;top:-4px;bottom:-4px;width:2px;background:#c79343;left:50%}.bar-caption{display:flex;justify-content:space-between;font-size:8px;color:#91a399;margin-top:-5px}.readout-foot{font-size:9px;line-height:1.7;color:#7c9085;border-top:1px solid #edf1ee;margin-top:13px;padding-top:10px}.trim-section{padding:0 18px 16px}.trim-row{display:flex;align-items:center;gap:18px;padding:7px 0 12px}.knob{width:80px;height:80px;flex-shrink:0;border-radius:50%;background:radial-gradient(circle,#2d5a54 0 37%,#2c514c 39% 49%,#e2ece6 50% 58%,transparent 60%),conic-gradient(from 225deg,#b2c8bd 0 270deg,transparent 270deg);position:relative;cursor:ns-resize;touch-action:none}.knob:before{content:"";position:absolute;inset:10px;border-radius:50%;box-shadow:0 2px 8px #173e3226}.knob-indicator{position:absolute;left:39px;top:19px;width:3px;height:17px;border-radius:2px;background:#e4f7ed;transform-origin:1.5px 21px;pointer-events:none}.trim-value{font:500 28px/1.2 var(--font);color:#315d4a}.trim-value small{font:11px var(--font);color:#8ca194;margin-left:4px}.trim-value-label{font-size:9px;color:#8c9e93;margin-top:7px}.range-labels{display:flex;justify-content:space-between;font-size:8px;color:#98a79f;margin-top:1px}.field-description{font-size:10px;color:#6b8175;line-height:1.9}.warning-note{background:#fff8eb;border:1px solid #f0e2c6;color:#977339;border-radius:8px;font-size:9px;padding:9px 11px;margin:12px 0}.calibration-status{font-size:10px;display:flex;align-items:center;gap:7px;margin-top:12px;color:#4d8062}.calibration-status.bad{color:#b77833}.wide{width:100%}.observations-card{margin-top:17px}.observation-heading{padding:14px 18px 10px;display:flex;justify-content:space-between;gap:10px;align-items:center}.observation-heading h3{font-size:11px}.observation-heading span{font-size:8px;color:#8d9e95}.observation-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px;padding:0 17px 16px}.observation-item{border:1px solid #e1e9e5;border-radius:9px;padding:11px 13px;display:flex;align-items:center;gap:11px}.surface-sample{height:31px;width:31px;border:1px solid #d5dfda;border-radius:6px;background:#fafcfa;flex-shrink:0}.surface-sample.black{background:#263b3c;border-color:#263b3c}.observation-item small{color:#8c9d93;font-size:8px}.observation-item strong{display:block;font-size:10px}.observation-item button{margin-left:auto;font-size:9px;min-height:30px}.observation-value{color:#277b55}.lesson-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:21px 0 28px}.lesson-bottom>div{display:flex;align-items:center;gap:10px}.bulb{color:#8da86b;font-size:18px}.lesson-bottom p{font-size:10px;color:#718477;line-height:1.8}.next-button{font-size:10px;padding:9px 14px;min-width:132px;background:#e7f1eb;color:#2a6f53;border-color:#cfdfd4}.next-button:hover{background:#d8eadf}.main-footer{border-top:1px solid var(--line);padding:17px 0 22px;color:#73847b;letter-spacing:.3px}.footer-meta{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px 20px;font-size:10px}.main-footer b{font-weight:400;margin:0 7px;color:#aabab0}.footer-copyright{margin:17px 0 0;text-align:center;color:#526e61;font-size:12px;line-height:1.6;letter-spacing:.35px}.footer-copyright small{font-size:inherit}
.status-dashboard{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:14px}.stat-card{background:#fff;border:1px solid var(--line);border-radius:11px;padding:12px 13px}.stat-card span{display:block;font-size:8px;color:#84988d;margin-bottom:4px}.stat-card strong{font:550 20px/1.3 var(--font);color:#345447}.stat-card small{font:9px var(--font);margin-left:4px;color:#83998c}.telemetry-card{margin-top:13px}.telemetry-top{display:flex;justify-content:space-between;align-items:center;padding:13px 16px;border-bottom:1px solid #e7eeea;gap:8px}.telemetry-top h3{font-size:10px}.telemetry-top span{font-size:9px;color:#879b8e}.sensor-row{display:flex;gap:7px;padding:13px 15px}.sensor-tile{flex:1;min-width:0;border:1px solid #dce8df;background:#f4faf6;text-align:center;padding:8px 4px;border-radius:7px}.sensor-tile.off{background:#eaf0ed;border-color:#cfdad2}.sensor-tile span{display:block;font-size:8px;color:#779482}.sensor-tile b{display:block;font:600 21px/1.4 var(--font);color:#2b7355}.sensor-tile.off b{color:#50675b}.sensor-tile small{font-size:7px;color:#749384}.motor-row{display:flex;gap:13px;padding:0 16px 14px;font-size:9px;color:#789181}.motor-row b{font:600 11px var(--font);color:#385c47}.sensor-config{padding:11px 15px 15px;border-top:1px solid #e6ede7}.sensor-config summary{cursor:pointer;font-size:9px;color:#4d7960}.sensor-adjuster{display:flex;gap:8px;align-items:center;margin-top:9px;font-size:9px}.sensor-adjuster label{white-space:nowrap}.sensor-adjuster output{min-width:23px;text-align:right}.program-card{overflow:visible}.program-card .card-heading{border-radius:var(--radius) var(--radius) 0 0}.program-header-actions{display:flex;gap:5px;flex-wrap:wrap}.program-header-actions button{font-size:9px;min-height:28px;padding:4px 8px}.program-information{margin:0 14px 12px;background:#eff6fc;border:1px solid #dce9f3;padding:8px 10px;border-radius:7px;font-size:9px;color:#567a94;line-height:1.8}.program-body{padding:0 12px 13px;max-height:690px;overflow:auto;overscroll-behavior:contain}.program-runtime{background:#f5f8f7;border-top:1px solid #e1eae4;border-radius:0 0 var(--radius) var(--radius);padding:9px 16px;font-size:9px;color:#6f8578;word-break:break-word}.hint-card{padding:15px 18px;border-color:#e5e9dc;background:#fbfcf5}.hint-card h3{font-size:10px;color:#718951;margin-bottom:8px}.hint-card p{font-size:10px;color:#75836a;line-height:1.9}.hint-card details{font-size:10px;color:#667f4e}.hint-card summary{cursor:pointer}.hint-card details p{margin-top:10px}.course-info{font-size:9px;padding:10px 14px;background:#f9fbf6;color:#78876a;border-top:1px solid #e7ebdf}.run-message{font-size:10px;color:#807846;margin-top:11px;min-height:18px}.position-slider{padding:0 20px 16px}.position-slider label{display:flex;justify-content:space-between;font-size:10px;color:#7b8f83;margin-bottom:3px}.distance-display{padding:15px 18px;background:#edf6f8;border:1px solid #d9e8ed;border-radius:10px;margin-bottom:13px}.distance-display .readout-pair{color:#688993}.distance-number{font:500 46px/1.3 var(--font);color:#326b7f;margin:4px 0}.distance-number small{font:12px var(--font);margin-left:7px}.distance-display p{font-size:10px;color:#7193a0}.echo-formula{font:600 12px/2 var(--font);color:#587a85;background:#f5fafb;border:1px solid #e0ecee;border-radius:8px;padding:12px;text-align:center;margin-top:12px}.echo-formula small{display:block;font:9px/1.8 var(--font);color:#8a9ea5}.ultra-readouts{display:grid;grid-template-columns:1fr 1fr;gap:8px}.ultra-readouts div{border:1px solid #e3eaec;border-radius:7px;padding:8px 10px}.ultra-readouts small{display:block;color:#889c9f;font-size:8px}.ultra-readouts strong{font:500 16px var(--font);color:#547f89}.metric-mini{font-size:10px;display:flex;justify-content:space-between;margin-top:8px}.range-buttons{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.range-buttons button{flex:1;font-size:9px;padding:6px 7px;min-height:32px}.note-input{width:100%;resize:vertical;min-height:70px;max-height:280px;border:1px solid #d8e4db;background:#fcfdfc;border-radius:8px;padding:10px 12px;font-size:10px;line-height:1.8;color:#476652}.note-area{padding:0 16px 16px}.note-area label{display:block;font-size:9px;color:#779481;margin-bottom:5px}
.guide-intro{border:1px solid #d9e5de;background:linear-gradient(120deg,#eaf4ed,#f9fbf5);border-radius:14px;padding:24px 28px;margin-bottom:19px}.guide-intro h2{font-size:19px;margin-bottom:9px}.guide-intro p{font-size:12px;color:#64806f;line-height:1.9;max-width:900px}.guide-layout{display:grid;grid-template-columns:1.4fr 1fr;gap:20px;margin-bottom:25px}.guide-card{background:white;border:1px solid var(--line);border-radius:14px;padding:23px}.guide-card h3{margin-bottom:17px;color:#416b53}.guide-steps{padding:0;list-style:none;margin:0;counter-reset:guide}.guide-steps li{position:relative;padding:0 0 18px 39px;font-size:12px;line-height:1.9;counter-increment:guide}.guide-steps li:before{content:counter(guide,decimal-leading-zero);position:absolute;left:0;top:0;font:650 11px/26px var(--font);width:26px;height:26px;border:1px solid #d6e5d9;color:#628c6d;border-radius:7px;text-align:center;background:#f3f8f3}.guide-card ul:not(.guide-steps){padding-left:19px;font-size:11px;color:#69816f;line-height:2}.guide-table{width:100%;border-collapse:collapse;font-size:10px;margin-top:14px}.guide-table th,.guide-table td{padding:10px 12px;border-bottom:1px solid #e5ece6;text-align:left}.guide-table th{background:#f2f7f3;color:#60816b}.guide-table td{color:#69816e}.guide-detail{padding:16px 20px;background:#f7f9f5;border:1px solid #e4e8da;border-radius:10px;font-size:11px;color:#748461;line-height:1.9;margin-bottom:18px}.guide-detail strong{color:#586f49}.guide-sources{font-size:10px;color:#819386;padding:0 3px 20px}.guide-sources a{margin-right:16px}.principle-diagram{display:flex;align-items:center;justify-content:center;gap:10px;padding:20px;background:#f8fbf8;border-radius:10px;margin-top:16px}.principle-diagram>div{padding:14px 11px;border:1px solid #dce8dc;border-radius:8px;background:#fff;text-align:center;flex:1;font-size:11px}.principle-diagram small{display:block;font-size:8px;color:#8aa08c;margin-top:4px}.principle-diagram>span{color:#9aaf9b}.marker-guide{display:flex;justify-content:center;padding:20px;background:#f8faf7;border-radius:10px;margin-bottom:12px}.marker-guide svg{width:100%;max-width:510px}.reference-image{max-width:100%;height:auto;background:white;border:1px solid #dce5df;border-radius:8px;padding:8px;display:block;margin:15px auto}.switch-label{display:inline-flex;align-items:center;gap:7px;font-size:9px;color:#6e8977}.record-log{max-height:170px;overflow:auto}.record-table{width:100%;border-collapse:collapse;font-size:9px}.record-table th{text-align:left;background:#f4f8f4;color:#7b957d;font-weight:500;padding:6px 12px}.record-table td{border-top:1px solid #e8ede7;padding:6px 12px;color:#647e67}.empty-record{text-align:center;font-size:9px;color:#a0afa1;padding:20px 10px}
dialog{border:1px solid #dce6dd;border-radius:18px;padding:0;max-width:720px;width:calc(100vw - 40px);max-height:85vh;color:var(--ink);box-shadow:0 24px 90px #18332635}dialog::backdrop{background:#102d3280;backdrop-filter:blur(3px)}.dialog-header{position:sticky;top:0;background:#fff;padding:18px 23px;border-bottom:1px solid #e3ebe4;display:flex;align-items:center;justify-content:space-between;z-index:1}.dialog-header h2{font-size:16px}.icon-button{background:#f0f5f1;color:#66806d;border:1px solid #d9e4db;border-radius:8px;width:30px;height:30px;font-size:20px;line-height:1}.icon-button:hover{background:#e0ece2}#modal-content{padding:23px;font-size:12px;line-height:1.9}#modal-content h3{margin:18px 0 9px}#modal-content h3:first-child{margin-top:0}#modal-content p{margin-bottom:12px;color:#657e6c}#modal-content ul{padding-left:20px;color:#6f8874}#modal-content .button{margin:5px 6px 5px 0}.dialog-row{padding:15px 0;border-top:1px solid #e3eae1}.dialog-row strong{display:block}.dialog-row small{display:block;color:#849483;margin-top:4px}.dialog-actions{margin-top:15px;display:flex;gap:10px;justify-content:flex-end}.data-size{font:600 10px var(--font);background:#edf5ee;padding:3px 6px;border-radius:4px;color:#67846a}.file-input-label{display:inline-flex;cursor:pointer}.reference-note{font-size:10px;background:#fff6e6;color:#916e38;padding:10px 12px;border:1px solid #ead7b2;border-radius:8px}.toast{position:fixed;bottom:25px;left:calc(50% + 115px);transform:translate(-50%,12px);background:#183e35;color:#eff9f1;border:1px solid #5b907a;box-shadow:0 10px 30px #21453825;padding:13px 20px;border-radius:10px;font-size:12px;z-index:100;max-width:calc(100vw - 40px);opacity:0;transition:opacity .2s,transform .2s;pointer-events:none}.toast.visible{opacity:1;transform:translate(-50%,0)}.app-error{padding:25px;font-size:13px;color:#b53c32;background:#fff5f3}.success-banner{margin:12px 0 0;padding:11px 14px;border:1px solid #9dceb2;border-radius:10px;background:#eaf8ef;color:#30734b;font-size:11px}.feedback-banner{border:1px solid #e5cf98;background:#fff8e9;color:#907038;border-radius:9px;padding:10px 12px;font-size:10px;margin-top:12px}
@media(min-width:1550px){main{padding:0 45px}.workbench{grid-template-columns:minmax(0,1fr) 350px}.program-body{max-height:820px}.canvas-wrap canvas{aspect-ratio:1.84}.card-heading{padding-top:22px}.lesson-heading{padding:33px 0 27px}}
@media(max-width:1190px){.sidebar{width:198px;padding-left:11px;padding-right:11px}.brand{font-size:19px;margin-left:6px;margin-bottom:35px}.brand-mark{width:37px;height:42px}.nav-heading{font-size:8px;letter-spacing:.8px}.stage-button{padding:12px 8px;gap:9px}.stage-text{font-size:10px}.stage-text small{font-size:8px}.stage-number{width:27px;height:29px}.sidebar-note{font-size:8px}.sidebar-note p{font-size:8px}.journey-progress{font-size:9px}main{margin-left:198px;padding:0 23px}.workbench{grid-template-columns:minmax(0,1fr) 280px;gap:14px}.workbench.programming{grid-template-columns:minmax(0,1fr) 360px}.lesson-heading h1{font-size:24px}.lesson-heading p{font-size:10px}.scene-toolbar{padding-left:14px;padding-right:14px}.toolbar-note{font-size:8px}.program-body{padding:0 8px 10px}.observation-item{padding:9px;gap:8px}.observation-item .surface-sample{width:23px;height:26px}.observation-item button{font-size:8px;padding:4px 6px}.toast{left:calc(50% + 99px)}}
@media(max-width:1000px){.workbench.programming{grid-template-columns:minmax(0,1fr)}.programming .inspector{display:grid;grid-template-columns:minmax(0,1fr)}.program-body{max-height:660px}.canvas-wrap canvas{aspect-ratio:1.76}.workbench:not(.programming){grid-template-columns:minmax(0,1fr) 265px}.lesson-heading{padding:23px 0 19px}.lesson-heading h1{font-size:21px}.lesson-badge{width:53px;min-width:53px;height:60px}.model-tag{font-size:8px}.saved-indicator{display:none}.scene-toolbar{gap:6px}.observation-grid{grid-template-columns:1fr}.scene-controls{padding-left:13px;padding-right:13px}.workbench:not(.programming) .canvas-wrap canvas{aspect-ratio:1.38}.guide-layout{grid-template-columns:1fr}.lesson-bottom{align-items:flex-start}}
@media(max-width:780px){.sidebar{position:relative;width:100%;padding:15px 18px 10px;display:block}.brand{margin:0 0 15px;font-size:21px;gap:9px}.brand-mark{height:35px;width:35px;border-radius:10px}.brand-mark svg{width:30px}.brand small{display:inline;margin-left:14px;font-size:9px;vertical-align:2px}.nav-heading,.sidebar-note,.journey-progress,.sidebar-help,.sidebar-footer{display:none}#stage-nav{display:flex;gap:5px;overflow-x:auto;scrollbar-width:thin;padding-bottom:3px}.stage-button{flex:0 0 auto;display:flex;gap:6px;padding:7px 10px;border-radius:8px;width:auto;margin:0;min-height:42px}.stage-number{border:0;width:auto;height:auto;font-size:11px}.stage-text{font-size:9px}.stage-text small,.stage-arrow{display:none}.stage-button.active .stage-number{background:transparent;border:0}.stage-button.completed .stage-number{border:0}main{margin-left:0;padding:0 20px}.topbar{height:54px}.breadcrumb{font-size:9px}.top-actions{gap:5px}.lesson-heading{padding:22px 0 18px}.eyebrow{font-size:8px}.lesson-heading h1{font-size:23px}.lesson-heading p{font-size:10px}.lesson-badge{display:none}.workspace-tabs{gap:25px;margin-bottom:15px}.workspace-tab{font-size:10px}.model-tag{font-size:7px}.mission-strip{margin-bottom:16px;gap:8px;padding:10px 12px;font-size:10px}.mission-label{font-size:7px;padding-right:8px}.mission-state{font-size:7px}.workbench:not(.programming){grid-template-columns:minmax(0,1fr) 280px}.workbench:not(.programming) .canvas-wrap canvas{aspect-ratio:1.6}.canvas-hint{font-size:8px;padding:4px 8px}.toast{left:50%}.lesson-bottom p{font-size:9px}}
@media(max-width:620px){main{padding:0 13px}.sidebar{padding:14px 13px 9px}.brand small{font-size:8px}.stage-button{padding:6px 8px;min-height:37px}.stage-text{font-size:8px}.workbench:not(.programming),.workbench.programming{grid-template-columns:minmax(0,1fr)}.workbench:not(.programming) .canvas-wrap canvas{aspect-ratio:1.7}.inspector{gap:12px}.workbench:not(.programming) .inspector{display:grid;grid-template-columns:1fr 1fr;gap:10px}.workbench:not(.programming) .inspector>.card:nth-child(n+3){grid-column:1/-1}.card-heading{padding:15px 16px 12px}.inspector .card-heading{padding:13px 13px 10px}.readout-section,.trim-section{padding:0 12px 12px}.card-heading h2{font-size:11px}.section-kicker{font-size:7px}.digital-display{padding:11px 12px}.digital-display b{font-size:38px}.digital-display strong{font-size:15px}.digital-display span{font-size:8px}.trim-row{gap:7px;padding-bottom:7px}.knob{width:64px;height:64px}.knob-indicator{left:31px;top:15px;height:14px;transform-origin:1.5px 17px}.trim-value{font-size:23px}.trim-value small{font-size:9px}.trim-value-label{font-size:8px}.trim-section .field-description{font-size:8px}.readout-foot{font-size:8px}.calibration-status{font-size:8px}.trim-section .button{font-size:8px;padding:6px}.readout-pair{font-size:9px}.readout-pair strong{font-size:12px}.observation-grid{grid-template-columns:1fr 1fr;gap:8px;padding:0 12px 13px}.observation-item{gap:7px;padding:8px;flex-wrap:wrap}.observation-item button{margin:0 0 0 auto}.observation-item strong{font-size:9px}.observation-heading{padding:12px}.lesson-bottom{gap:12px;margin-top:16px}.lesson-bottom>div{align-items:flex-start;gap:7px}.lesson-bottom p{font-size:8px}.next-button{font-size:9px;min-width:115px;padding:8px 9px}.model-tag{display:none}.mission-icon{font-size:17px}.mission-label{display:none}.mission-strip{align-items:flex-start}.mission-state{align-self:center}.lesson-heading h1{font-size:22px}.lesson-heading p{font-size:9px}.topbar{gap:5px}.breadcrumb span{margin:0 5px}.top-actions .button{font-size:8px;min-height:30px;padding:5px 8px}.footer-meta{gap:6px 16px;font-size:9px}.guide-intro{padding:19px}.guide-intro h2{font-size:16px}.guide-intro p{font-size:11px}.guide-card{padding:18px}.guide-steps li{font-size:11px}.principle-diagram{padding:12px 7px;gap:5px}.principle-diagram>div{font-size:9px;padding:10px 6px}.principle-diagram small{font-size:7px}.distance-number{font-size:33px}.distance-display{padding:12px}.echo-formula{font-size:10px;padding:9px 6px}.ultra-readouts{grid-template-columns:1fr}.status-dashboard{gap:7px}.stat-card{padding:10px}.stat-card strong{font-size:18px}.program-body{max-height:650px}.scene-toolbar .toolbar-note{font-size:8px}.guide-table th,.guide-table td{padding:8px;font-size:9px}dialog{width:calc(100vw - 24px)}#modal-content{padding:18px;font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Keep the palette in view; the program itself has one scrollable surface. */
.program-body:has(.be-palette){height:600px;max-height:none;overflow:hidden}
.program-body:has(.be-palette) .block-editor{height:100%}
.program-body:has(.be-palette) .be-workspace{min-height:170px;max-height:none;flex:1}
.program-body .be-palette,.program-body .be-workspace-head,.program-body .be-status{flex-shrink:0}
.lesson-heading p{font-size:12px}.workspace-tab{font-size:12px}.mission-strip{font-size:12px}
.scene-controls .button{font-size:12px;min-height:38px}.card-heading h2{font-size:14px}
.program-information,.program-runtime,.field-description,.readout-foot,.trim-value-label{font-size:11px}
.readout-pair,.toolbar-note,.field-description,.readout-foot,.calibration-status,.lesson-bottom p{color:#637b6b}
.observation-item strong,.observation-heading h3,.telemetry-top h3{font-size:12px}
.sensor-tile span{font-size:10px}.sensor-tile small{font-size:9px}.motor-row,.hint-card p,.run-message{font-size:11px}
@media(max-width:620px){.lesson-heading p{font-size:11px}.card-heading h2{font-size:12px}.mission-strip{font-size:11px}.program-body:has(.be-palette){height:610px}.scene-controls .button{font-size:11px}.program-information,.program-runtime,.readout-foot{font-size:10px}.observation-item strong{font-size:10px}.sensor-tile span{font-size:9px}.sensor-tile small{font-size:8px}}

/* Direct block manipulation, roomy editing, and worked answers. */
.top-actions{gap:9px}.top-actions #answer-button{color:#17665a;border-color:#bddbcf;background:#eff9f3}
.program-card>.card-heading{align-items:flex-start;flex-wrap:wrap}.program-header-actions{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end;margin-left:auto}
.program-header-actions #restore-program{color:#246d60;background:#eef8f2;border-color:#c6ded2}
.program-body:has(.be-palette){height:680px}
.editor-dialog{width:min(1240px,calc(100vw - 40px));height:calc(100dvh - 40px);max-height:none;padding:0;border:1px solid #b9d3c8;border-radius:15px;overflow:hidden;background:#fff}
.editor-dialog::backdrop{background:#132d35a6;backdrop-filter:blur(3px)}
.editor-dialog .program-card{height:100%;display:flex;flex-direction:column;border:0;border-radius:0}
.editor-dialog .program-card>.card-heading{flex:none;padding:18px 24px 12px;align-items:center}.editor-dialog .card-heading h2{font-size:18px}
.editor-dialog .program-information{margin:0 22px 12px;padding:10px 13px;font-size:12px;flex:none}
.editor-dialog .program-body:has(.be-palette){flex:1;min-height:0;height:auto;max-height:none;overflow:hidden;margin:0 20px;border:1px solid #dbe7e2;border-radius:10px}
.editor-dialog .program-runtime{padding:10px 24px;flex:none;font-size:11px;max-height:74px;overflow:auto}
.editor-dialog .block-editor{display:grid;grid-template-columns:190px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto}
.editor-dialog .be-palette{grid-column:1;grid-row:1/-1;border-bottom:0;border-right:1px solid #dde6e5;overflow-y:auto}
.editor-dialog .be-palette-list{grid-template-columns:1fr;gap:9px}.editor-dialog .be-palette-tile{min-height:39px;font-size:12px;padding:8px}.editor-dialog .be-categories{gap:3px}.editor-dialog .be-categories button{font-size:11px}
.editor-dialog .be-workspace-head{grid-column:2;grid-row:1}.editor-dialog .be-workspace{grid-column:2;grid-row:2;min-height:0!important;max-height:none;padding:24px}.editor-dialog .be-status{grid-column:2;grid-row:3}
.editor-dialog .be-block-content{font-size:13px}.editor-dialog .be-number{font-size:12px;width:56px}.editor-dialog .be-condition select{font-size:11px}
.answer-dialog{width:min(1190px,calc(100vw - 40px));max-height:calc(100dvh - 40px);padding:0;border:1px solid #c8dcd2;border-radius:15px;background:#f8fbf9;overflow:hidden}
.answer-dialog[open]{display:flex;flex-direction:column}
.answer-dialog::backdrop{background:#152f39a6;backdrop-filter:blur(3px)}
.answer-dialog>.dialog-header{padding:18px 24px;flex:none;background:#fff;border-bottom:1px solid #dce7e1}.answer-dialog>.dialog-header h2{font-size:18px}
#answer-content{min-height:0;overflow:auto;padding:22px 24px;overscroll-behavior:contain}
.answer-intro{padding:0 0 18px;max-width:980px}.answer-intro>p{font-size:14px;line-height:1.9;color:#36534c}
.answer-eyebrow{display:block;font:700 10px var(--font);letter-spacing:1.7px;color:#378676;margin-bottom:8px}.answer-count{margin-top:14px;font-size:12px}.answer-count select{font-size:12px}
.answer-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:22px}.answer-layout.has-program{grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);align-items:start}
.answer-conditions{padding:15px 17px;background:#eaf5ef;border:1px solid #cfe3d8;border-radius:10px;margin-bottom:18px;color:#315f4d}.answer-conditions h3{font-size:13px}
.answer-conditions ul,.answer-checks ul{padding-left:20px;margin:8px 0 0;font-size:12px;line-height:1.9}.answer-conditions li+li,.answer-checks li+li{margin-top:5px}
.answer-section{margin-bottom:18px;padding:18px;background:#fff;border:1px solid #dfe8e3;border-radius:10px}.answer-section h3{font-size:14px;margin-bottom:8px;color:#234d45}.answer-section p,.answer-section li{font-size:12px;line-height:1.95;color:#506b61}.answer-section ol{padding-left:22px;margin:9px 0 0}.answer-section li+li{margin-top:7px}
.answer-table-wrap{overflow-x:auto;margin-top:12px;border:1px solid #e0e8e3;border-radius:6px}.answer-table-wrap .guide-table{margin:0;width:100%;font-size:11px}.answer-table-wrap .guide-table th,.answer-table-wrap .guide-table td{padding:10px 9px;font-size:11px;line-height:1.75}
.answer-checks{padding:17px;background:#fff9e8;border:1px solid #e8ddbb;border-radius:10px;color:#6e602b}.answer-checks h3{font-size:13px}
.answer-block-panel{position:sticky;top:0;border:1px solid #d9e5df;border-radius:10px;overflow:hidden;background:white;min-width:0}.answer-preview-heading{display:flex;align-items:center;justify-content:space-between;padding:15px 17px 4px}.answer-preview-heading h3{font-size:14px}.answer-preview-heading span{font-size:10px;color:#4b7c69;border:1px solid #c7ded3;padding:2px 7px;border-radius:5px;background:#eff7f2}.answer-block-panel>p{font-size:11px;color:#789186;padding:0 17px 12px}
.answer-block-preview{height:min(560px,58dvh);min-height:220px;border-top:1px solid #e1e9e5}.answer-block-preview .be-workspace-head,.answer-block-preview .be-status{display:none}.answer-block-preview .be-workspace{max-height:none;min-height:0}.answer-block-preview input:disabled{opacity:1;background:#fff;color:#244556;cursor:default}.answer-block-preview .be-block-head{cursor:default!important}.answer-block-preview .be-grip{visibility:hidden}
#answer-actions{flex:none;padding:14px 24px 18px;background:#fff;border-top:1px solid #dce6e0}.answer-load-options label{display:flex;align-items:flex-start;gap:9px;font-size:12px;color:#315d4e}.answer-load-options input{margin:4px 0 0;flex:none}.answer-load-options small{display:block;margin-top:5px;color:#7d9087;font-size:11px}.answer-dialog .dialog-actions{margin-top:12px;display:flex;gap:9px;justify-content:flex-end;flex-wrap:wrap}
@media(max-width:760px){.top-actions .saved-indicator{display:none}.topbar{height:auto;min-height:64px;flex-wrap:wrap;padding:12px 0}.top-actions{margin-left:auto}.top-actions .button{font-size:10px}.answer-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.answer-dialog>.dialog-header{padding:13px 15px}.answer-dialog>.dialog-header h2{font-size:15px}#answer-content{padding:16px}.answer-layout.has-program{grid-template-columns:1fr}.answer-block-panel{position:static}.answer-block-preview{height:440px}.answer-intro>p{font-size:12px}#answer-actions{padding:12px 15px}.answer-dialog .dialog-actions{gap:6px}.answer-dialog .dialog-actions .button{font-size:11px;padding:8px 10px}.editor-dialog{width:calc(100vw - 12px);height:calc(100dvh - 12px)}.editor-dialog .program-card>.card-heading{padding:13px}.editor-dialog .card-heading h2{font-size:15px}.editor-dialog .program-information{margin:0 10px 8px;font-size:10px}.editor-dialog .program-body:has(.be-palette){margin:0 8px}.editor-dialog .block-editor{display:flex}.editor-dialog .be-palette{max-height:160px;border-right:0;border-bottom:1px solid #dde6e5}.editor-dialog .be-palette-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.editor-dialog .be-palette-tile{font-size:10px;padding:5px;min-height:32px}.editor-dialog .be-workspace{padding:16px 10px}.editor-dialog .program-runtime{padding:8px 13px}}
.editor-dialog,.answer-dialog{max-width:calc(100vw - 40px)}
#answer-block-preview .be-workspace-head,#answer-block-preview .be-status{display:none}
#answer-block-preview .be-workspace{max-height:none;min-height:0}
@media(max-width:760px){.editor-dialog{max-width:calc(100vw - 12px)}.answer-dialog{max-width:calc(100vw - 16px)}}
@media(min-width:761px){
.editor-dialog .block-editor .be-palette-list{grid-template-columns:1fr;gap:9px}
.editor-dialog .block-editor .be-palette-tile{min-height:39px;font-size:12px;padding:8px;white-space:normal}
.editor-dialog .block-editor .be-workspace{padding:24px}
.editor-dialog .block-editor .be-block-content{font-size:13px}
.editor-dialog .block-editor .be-number{font-size:12px;width:56px}
.editor-dialog .block-editor .be-condition select{font-size:11px}
}

/* Seventh step: direct wheel-output challenge. */
.stage-button.challenge-step{border:1px solid #a9884c70;margin-top:9px}
.stage-button.challenge-step .stage-text small{color:#d4b374;opacity:1}
.stage-button.challenge-step.active{background:#f7eaca;color:#6d531d;border-color:#dfc483}
.stage-button.challenge-step.active .stage-number{background:#edd9aa;border-color:#d4b26b;color:#75571c}
.stage-button.challenge-step.active .stage-text small{color:#8a6a2b}
.motor-challenge .lesson-badge{background:#f8f0dd;border-color:#e8d6ac;color:#89682c}
.motor-challenge-brief{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;padding:18px 22px;margin:0 0 20px;border:1px solid #e5d6b5;border-radius:12px;background:#fffaf0;color:#5f542f}
.challenge-kicker{font:700 9px var(--font);letter-spacing:1.5px;color:#9a782f}
.motor-challenge-brief h2{font-size:17px;line-height:1.6;margin:4px 0}
.motor-challenge-brief p{font-size:11px;line-height:1.9;max-width:660px;color:#7a7157}
.motor-challenge-brief ul{list-style:none;margin:0;padding:2px 0 0;display:flex;flex-direction:column;justify-content:center;gap:5px;font-size:11px;min-width:230px}
.motor-challenge-brief li{display:flex;gap:12px;align-items:center}
.motor-challenge-brief strong{display:inline-block;min-width:36px;padding:2px 5px;text-align:center;font-size:10px;background:#f0e4c7;border-radius:4px;color:#806328}
.motor-output-card{margin-top:17px}
.motor-output-body{padding:0 18px 18px}
.motor-motion-readout{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 14px;margin-bottom:12px;background:#edf7f1;border:1px solid #d8e9de;border-radius:8px}
.motor-motion-readout span{font-size:10px;color:#678275}
.motor-motion-readout strong{font-size:13px;color:#2f6d52}
.motor-guide-table{width:100%;margin:12px 0 0;table-layout:fixed}
.motor-guide-table th,.motor-guide-table td{padding:9px 12px;font-size:11px;line-height:1.8}
.motor-guide-table th:nth-child(-n+2),.motor-guide-table td:nth-child(-n+2){width:22%;text-align:center;font-variant-numeric:tabular-nums}
.motor-guide-table tbody tr:last-child{background:#f7f1df}
.motor-wait-note{padding:11px 13px;margin:14px 0 0;border:1px solid #e8d8b1;border-radius:8px;background:#fff8e7;color:#7d693a;font-size:11px;line-height:1.9}
.motor-challenge .program-information{background:#fff8e9;border-color:#ecd9af;color:#79632f}
@media(min-width:781px){.sidebar{overflow-y:auto;scrollbar-width:thin;scrollbar-color:#53766e transparent}.brand,#stage-nav,.journey-progress,.sidebar-help,.sidebar-footer{flex-shrink:0}}
@media(max-width:1000px){.motor-challenge-brief{grid-template-columns:1fr;gap:10px}.motor-challenge-brief ul{flex-direction:row;justify-content:flex-start;flex-wrap:wrap;gap:8px 18px;min-width:0}}
@media(max-width:780px){.stage-button.challenge-step{margin-top:0}.motor-challenge-brief{padding:15px 16px}.motor-challenge-brief h2{font-size:15px}.motor-challenge-brief p,.motor-challenge-brief ul{font-size:10px}.motor-guide-table th,.motor-guide-table td{font-size:10px;padding:8px}.motor-output-body{padding:0 13px 15px}}
