:root{--blue:#0965ee;--navy:#113c83;--ink:#24446e;--muted:#748dae;--line:#d7e6fb;--library:300px;--radius:16px}*{box-sizing:border-box}html{height:100%}body{margin:0;background:linear-gradient(130deg,#edf8ff,#e7f0ff 65%,#f1f8ff);font-family:'Trebuchet MS','Segoe UI',Arial,sans-serif;color:var(--ink);font-size:13px}button,select,input,textarea{font:inherit}button{cursor:pointer;border:0;transition:filter .15s,box-shadow .15s;border-radius:10px}button:hover{filter:brightness(.97)}button:focus-visible,select:focus-visible{outline:3px solid #ffbf47;outline-offset:2px}button:disabled{opacity:.5;cursor:not-allowed}header{height:65px;background:linear-gradient(110deg,#0053cd,#0762e5 65%,#0751c7);display:flex;align-items:center;justify-content:space-between;padding:0 23px;color:white;box-shadow:0 3px 0 #cee4ff}.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:white;font-size:27px;font-weight:900;letter-spacing:.3px;white-space:nowrap}.brand img{width:54px;height:57px;object-fit:contain;filter:drop-shadow(0 3px 2px #00387930)}.brand b{color:#ffce39}.brand small{display:block;font-size:9px;letter-spacing:0;font-weight:600;margin-top:1px;color:#e2efff}nav{display:flex;gap:10px}nav button{padding:12px 18px;background:none;color:#fff;font-size:15px;font-weight:700;border:1px solid transparent}nav button.active{background:#ffffff20;border-color:#ffffff22;box-shadow:inset 0 1px 0 #ffffff15}.badge{background:#ffffff24;font-size:9px;border-radius:5px;padding:2px 5px;margin-left:4px}.teacher{background:#ffffff12;border:1px solid #ffffff30;padding:11px 14px;color:white;font-weight:700}.contextbar{margin:12px 18px 11px;padding:9px 17px;display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:72px;border:1px solid #d4e6fd;border-radius:17px;background:linear-gradient(110deg,#fff,#f3f9ff 70%,#fff);box-shadow:0 3px 8px #3373be07}.contextTitle{display:flex;align-items:center;gap:13px;min-width:0}.contextIcon{font-size:31px;width:45px;text-align:center}.contextTitle small{display:block;font-size:10px;color:#6387b8;margin-bottom:3px}.contextTitle small span{margin:0 10px;color:#b4c9e3}.contextTitle label{display:none}.contextTitle select{border:0;border-radius:6px;background:transparent;color:#153f85;font-size:21px;font-weight:800;max-width:520px;cursor:pointer;padding:0 20px 0 0;outline-offset:4px}.steps{display:flex;align-items:center;gap:11px;white-space:nowrap}.steps button{display:flex;align-items:center;gap:8px;color:#6d86a9;background:none;font-size:13px;padding:3px}.steps b{display:grid;place-items:center;width:30px;height:30px;border:1px solid #bdcff1;border-radius:50%;background:#eef4ff;font-size:16px;color:#547bb6}.steps i{width:20px;height:1px;background:#a8c7f5}.steps .selected{color:#0862df;font-weight:800}.steps .selected b{background:linear-gradient(#3194ff,#0964eb);border-color:#0862df;box-shadow:0 2px 5px #1b75ee30;color:white}main{margin:0 18px;display:grid;grid-template-columns:minmax(680px,1.12fr) minmax(510px,1fr);gap:13px;height:calc(100dvh - 233px);min-height:640px}.panel{background:white;border:1px solid #d6e6fc;border-radius:var(--radius);box-shadow:0 4px 14px #316bae08;overflow:hidden;min-width:0}.coding{display:flex;flex-direction:column;position:relative}.codingHead{display:flex;align-items:stretch;flex-shrink:0;height:59px;background:linear-gradient(115deg,#fff,#f9fcff);border-bottom:1px solid #e3edfc}.libraryTitle{width:var(--library);flex-shrink:0;padding:17px 16px;font-size:19px;font-weight:850;color:var(--navy);border-right:9px solid #eff6ff;display:flex;align-items:center;gap:10px}.libraryTitle>span{font-size:27px;color:#126efa;line-height:20px}.programTitle{flex:1;display:flex;align-items:center;justify-content:space-between;padding:10px 11px;gap:7px;min-width:0}h2{font-size:17px;color:#133d80;margin:0;font-weight:800;letter-spacing:-.4px}.programTitle h2{font-size:15px;white-space:nowrap}.titleIcon{color:#1378fa;font-size:22px;vertical-align:middle;margin-right:5px}.countPill{font-size:10px;color:#4776b2;background:#e9f3ff;border:1px solid #d7e6fb;padding:3px 6px;border-radius:8px;white-space:nowrap;font-weight:500;letter-spacing:0;margin-left:3px}.tools{display:flex;gap:4px;position:relative}.tools>button,.iconButton{background:linear-gradient(#fff,#f3f8ff);border:1px solid #d3e1f9;box-shadow:0 2px 2px #21578a0a;color:#3163b7;height:33px;min-width:31px;padding:6px;font-size:15px}.tools #save{font-size:12px;padding:6px 8px}.tools #programMenu{position:absolute;right:0;top:41px;background:white;padding:6px;border:1px solid #d1e2fa;border-radius:11px;box-shadow:0 8px 25px #20457525;width:190px;z-index:30}.tools #programMenu[hidden]{display:none}.tools #programMenu button{background:none;display:block;padding:10px 9px;text-align:left;width:100%;color:#3b6091;font-size:12px}.tools #programMenu button:hover{background:#edf5ff}.workspaceWrap{position:relative;flex:1;min-height:0;background:linear-gradient(140deg,#fff,#f9fcff)}#blockly{position:absolute;inset:0}#emptyHint{position:absolute;left:calc(var(--library) + 40px);right:20px;top:160px;color:#91a5c0;text-align:center;line-height:1.8;font-size:12px;pointer-events:none}.workspaceFoot{height:39px;flex-shrink:0;border-top:1px solid #edf3fc;display:flex;align-items:center;gap:8px;padding:0 10px;color:#7b95b4;font-size:9px}.dragHint{width:calc(var(--library) - 20px);flex-shrink:0;color:#5e83b0}.savedState{color:#4d84ae;white-space:nowrap}.workspaceFoot button{margin-left:auto;background:#f0f7ff;color:#3b75c6;border:1px solid #d5e5fc;padding:5px 8px;font-size:10px;white-space:nowrap}.play{display:flex;flex-direction:column;padding-bottom:8px}.panelhead{height:59px;padding:10px 12px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:7px}.panelhead h2{white-space:nowrap;font-size:18px}.sceneTabs{display:flex;gap:0;border:1px solid #d2e4fe;border-radius:10px;overflow:hidden;margin-left:auto}.sceneTabs button{background:#fbfdff;color:#5a78a7;font-size:10px;padding:8px 7px;border-radius:0;white-space:nowrap;border-right:1px solid #e0eafa}.sceneTabs button:last-child{border:0}.sceneTabs button.active{background:linear-gradient(#3a90ff,#1468ef);color:white;box-shadow:inset 0 1px 0 #ffffff30}.panelhead .iconButton{flex-shrink:0;font-size:21px;min-width:30px;height:32px}.stage{position:relative;flex:1;min-height:260px;margin:0 10px;border:1px solid #c5d9ef;border-radius:13px;overflow:hidden;background:#edf5ff;box-shadow:inset 0 0 0 2px #fff8}canvas{width:100%;height:100%;display:block}.stageLegend{position:absolute;bottom:5px;left:7px;right:7px;display:flex;justify-content:space-between;font-size:8px;color:#607e9e;pointer-events:none;background:#ffffffc9;padding:4px 7px;border-radius:5px}.sensorRead{position:absolute;right:10px;top:10px;background:#ffffffed;border:1px solid #d0e8f6;padding:7px 9px;color:#168cbd;border-radius:9px;font-size:11px;font-weight:700;box-shadow:0 2px 6px #27546b12}.deliveryTag{position:absolute;left:10px;top:10px;background:#fffffff2;border:1px solid #d4e6f5;color:#234d80;padding:7px 9px;border-radius:9px;font-size:11px;font-weight:750;box-shadow:0 2px 6px #27546b12}.environmentControls{flex-shrink:0;display:flex;gap:7px;margin:9px 10px 0;height:43px}.environmentControls label{display:flex;align-items:center;border:1px solid #d5e5fa;border-radius:10px;background:linear-gradient(#fff,#f5faff);min-width:0;padding:3px 6px;flex:1}.environmentControls label img{height:34px;width:35px;object-fit:contain;margin-right:4px}.environmentControls .sceneSelect{flex:1.2}.sceneSelect>span{font-size:25px;color:#5097e2;margin-right:6px}.environmentControls select{border:0;min-width:0;width:100%;color:#294f88;background:transparent;font-weight:700;font-size:11px}.environmentControls>button{background:linear-gradient(#fff,#eff6ff);border:1px solid #cfdef7;color:#32588b;padding:0 10px;font-weight:700;white-space:nowrap;font-size:12px}.missionCard{flex-shrink:0;display:flex;align-items:center;gap:8px;padding:9px 10px;margin:8px 10px 0;border:1px solid #d9e6fa;border-radius:11px;background:linear-gradient(100deg,#fbfdff,#f3f8ff);min-height:59px}.missionIcon{font-size:25px}.missionCard>div{flex:1;min-width:0}.missionCard h3{font-size:12px;margin:0 0 4px;color:#244e8d;line-height:1.3}.missionCard p{font-size:10px;color:#6785ac;margin:0;line-height:1.45}.missionCard>button{background:none;color:#1269de;font-size:10px;white-space:nowrap;padding:4px}.metrics{display:flex;flex-shrink:0;margin:8px 10px;padding:9px 0;border:1px solid #d9e6fa;border-radius:11px;background:linear-gradient(110deg,#f4faff,#f3f6ff);text-align:center}.metrics>div{flex:1;border-right:1px solid #dbe6f8}.metrics>div:last-child{border:0}.metrics span{font-size:9px;color:#6283af}.metrics strong{display:block;font-size:24px;color:#185cca;margin-top:4px;line-height:1.1;font-variant-numeric:tabular-nums}.metrics small{font-size:10px;font-weight:500;color:#7c96b7}.metrics>div:nth-child(2) strong{color:#6f58c0}.metrics>div:nth-child(3) strong{color:#168f9d}.runbar{display:flex;align-items:stretch;flex-shrink:0;gap:7px;margin:0 10px;height:46px}.primary{background:linear-gradient(#35cd42,#14aa2d);color:white;border:1px solid #11a52b;border-bottom:3px solid #148a27;border-radius:11px;font-size:17px;font-weight:800;box-shadow:0 3px 7px #22aa3420;flex:1}.secondary{border:1px solid #ccdcf7;border-bottom:3px solid #bbd3f5;background:linear-gradient(#fff,#f4f9ff);border-radius:10px;color:#2c5796;font-weight:750;padding:9px 13px;font-size:13px}.speedLabel{font-size:0;display:flex;align-items:center;justify-content:center;min-width:57px;border:1px solid #d1e1fa;border-bottom:3px solid #c5daf7;border-radius:10px;background:#fff}.speedLabel select{font-size:12px;color:#3f6398;border:0;outline-offset:8px;padding:6px;background:transparent}#status{font-size:10px;color:#6383aa;margin:8px 11px 0;line-height:1.4;min-height:14px;flex-shrink:0}#status.success{color:#16995c;font-weight:bold}#status.error{color:#c86637}.robotInfo{display:flex;align-items:center;justify-content:space-between;font-size:8px;color:#8a9fb8;padding:4px 10px 0;gap:5px;flex-shrink:0}.robotInfo button{background:#fff8eb;border:1px solid #f3deb5;color:#c49142;font-size:8px;padding:4px 6px}.coach{height:57px;margin:11px 18px 0;display:flex;align-items:center;gap:13px;padding:0 14px;border:1px solid #d1e6ff;border-radius:14px;background:linear-gradient(100deg,#dceeff,#f8fcff 75%,#edf6ff);overflow:hidden}.coach img{width:59px;height:63px;object-fit:contain;transform:rotate(-12deg);filter:drop-shadow(0 3px 3px #2766bb20)}.coach strong{font-size:13px;color:#2465bd;font-weight:750}.coach button{margin-left:auto;border:1px solid #bdd8fa;border-bottom:3px solid #b3d0f4;border-radius:10px;background:#fff;color:#1468d4;padding:9px 13px;font-size:12px;font-weight:bold}footer{display:flex;justify-content:space-between;font-size:8px;color:#88a2c0;padding:8px 21px}footer button{background:none;font-size:8px;color:#6e92c1;margin-left:5px}#toast{display:none;position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#234e87;color:#fff;padding:13px 22px;border-radius:10px;box-shadow:0 6px 20px #12395e33;font-size:12px;z-index:1000}.blocklyToolboxDiv{background:#f9fcff!important;border-right:1px solid #dce9fa;padding-top:8px!important}.blocklyTreeRow{height:40px!important;line-height:40px!important;border-radius:8px!important;margin:3px 5px 7px!important;padding:0 7px!important}.blocklyTreeIcon{display:none!important}.blocklyTreeLabel{font-family:'Trebuchet MS','Segoe UI',Arial,sans-serif!important;font-size:11px!important;font-weight:700!important}.blocklyTreeSelected .blocklyTreeLabel{color:white!important}.blocklyFlyoutBackground{fill:#f3f8ff!important;fill-opacity:1!important}.blocklyText{font-family:'Trebuchet MS','Segoe UI',Arial,sans-serif!important;font-size:13px!important;font-weight:600!important}.blocklyMainBackground{stroke:none!important}.stageExpanded .coding{display:none}.stageExpanded main{grid-template-columns:1fr;height:calc(100dvh - 235px)}.stageExpanded .stage{min-height:360px}.stageExpanded .panelhead{justify-content:flex-start}.stageExpanded .sceneTabs{margin-left:auto}@media(min-width:1550px){:root{--library:325px}main{grid-template-columns:minmax(780px,1.16fr) minmax(620px,1fr)}.programTitle h2{font-size:18px}.panelhead h2{font-size:20px}.sceneTabs button{font-size:11px;padding:9px 10px}.missionCard h3{font-size:13px}.missionCard p{font-size:11px}.environmentControls select{font-size:12px}.blocklyTreeLabel{font-size:12px!important}.contextTitle select{font-size:23px}.stage{min-height:350px}}@media(max-width:1250px){main{grid-template-columns:minmax(570px,1.1fr) minmax(450px,1fr)}:root{--library:270px}.programTitle h2{font-size:12px}.titleIcon{font-size:18px}.tools>button{min-width:27px;height:30px}.tools #save span{display:none}.libraryTitle{font-size:18px}.sceneTabs button{font-size:9px;padding:8px 5px}.panelhead h2{font-size:16px}.steps{gap:6px}.steps button{font-size:11px}.steps i{width:11px}.contextTitle select{max-width:440px;font-size:19px}.countPill{font-size:9px}.environmentControls>button span{display:none}.environmentControls>button{font-size:20px}.savedState{font-size:8px}.dragHint{font-size:8px}.workspaceFoot button{font-size:9px}.missionCard>button{font-size:9px}}
@media(max-width:1100px){header{padding:0 15px}.teacher{display:none}nav button{padding:10px 12px;font-size:13px}.brand{font-size:23px}.contextbar{flex-wrap:wrap}.contextTitle select{max-width:65vw}.steps{margin-left:58px}main{grid-template-columns:1fr;min-height:0;height:auto}.coding{height:620px}.play{min-height:700px}.stage{height:360px;flex:1}.programTitle h2{font-size:18px}.tools #save span{display:inline}.sceneTabs button{font-size:11px}.panelhead h2{font-size:19px}.libraryTitle{font-size:21px}.coach{height:65px}.coach strong{font-size:12px}.contextbar{min-height:75px}}@media(max-width:600px){:root{--library:240px}header{height:60px;padding:0 10px}.brand{font-size:18px;gap:5px}.brand img{width:38px;height:43px}.brand small{display:none}nav{gap:0}nav button{font-size:10px;padding:9px 7px}.badge{display:none}.contextbar{margin:10px;padding:9px 11px;gap:8px}.contextIcon{font-size:25px;width:30px}.contextTitle{gap:8px}.contextTitle small{font-size:9px}.contextTitle select{font-size:16px;max-width:75vw}.steps{margin-left:35px}.steps b{height:24px;width:24px;font-size:13px}.steps button{font-size:10px}.steps i{width:8px}main{margin:0 8px;gap:12px}.coding{height:540px}.codingHead{height:68px}.libraryTitle{width:145px;font-size:15px;padding:15px 10px;gap:6px}.libraryTitle>span{font-size:21px}.programTitle{padding:8px;flex-wrap:wrap}.programTitle h2{font-size:13px}.titleIcon{font-size:18px}.tools>button{height:26px;font-size:12px;min-width:27px;padding:3px}.tools #save{font-size:10px;padding:3px 5px}.countPill{font-size:8px}.workspaceFoot{font-size:8px}.dragHint{display:none}.savedState{font-size:8px}.panelhead{height:56px;padding:8px}.panelhead h2{font-size:15px}.sceneTabs button{font-size:8px;padding:8px 4px}.panelhead .iconButton{min-width:25px;padding:2px;height:27px}.play{min-height:650px}.stage{height:300px;min-height:250px;margin:0 7px}.environmentControls{margin:8px 7px 0;gap:5px}.environmentControls select{font-size:9px}.environmentControls label img{height:28px;width:26px}.environmentControls>button{font-size:20px;padding:0 8px}.sceneSelect>span{font-size:21px;margin-right:2px}.missionCard{margin:8px 7px 0}.missionCard h3{font-size:11px}.missionCard>button{font-size:8px}.metrics{margin:8px 7px}.metrics span{font-size:8px}.metrics strong{font-size:23px}.runbar{margin:0 7px}.primary{font-size:15px}.coach{margin:10px 8px 0;padding:0 8px;gap:6px}.coach img{width:45px;height:52px}.coach strong{font-size:10px}.coach button{font-size:10px;padding:8px}.coach{height:59px}footer{font-size:7px;padding:8px 12px;gap:12px}footer button{font-size:7px}}
dialog{width:min(800px,94vw);border:1px solid #dbe6f5;border-radius:18px;padding:0;box-shadow:0 25px 100px #143b6b40;max-height:88vh;color:var(--ink)}dialog::backdrop{background:#17315366;backdrop-filter:blur(3px)}.modalHead{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid var(--line);position:sticky;top:0;background:white;z-index:2}.modalHead h2{margin:0;font-size:20px}.modalHead button{background:#eff3fa;padding:8px 12px;color:#7184a2}#modalBody{padding:24px;line-height:1.7;font-size:13px}#modalBody h3{font-size:15px;margin-top:0}#modalBody p{color:#6c7e99}#modalBody button{padding:10px 14px;background:#eaf1ff;color:#2b61c5;margin:5px 5px 5px 0}#modalBody .primary{color:white;background:#20ad74}#modalBody label{display:block;margin:12px 0;color:#5b7193;font-size:12px}#modalBody input,#modalBody textarea,#modalBody select{display:block;padding:10px;border:1px solid #d8e3f3;border-radius:7px;width:100%;margin-top:5px;color:#364e72}#modalBody textarea{height:90px;resize:vertical}.lessonGrid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.lesson{border:1px solid #dde7f5;background:#f9fbff;border-radius:11px;padding:17px}.lesson .number{font-size:10px;font-weight:750;letter-spacing:1px;color:#5082d6}.lesson h3{margin:6px 0}.lesson p{font-size:11px;margin:4px 0}.lesson button{font-size:11px}#modalBody table{border-collapse:collapse;width:100%;font-size:11px;text-align:left}#modalBody th,#modalBody td{padding:10px 6px;border-bottom:1px solid #e0e9f4}#modalBody th{color:#7990b1}#toast{position:fixed;left:50%;bottom:30px;transform:translateX(-50%);background:#254b80;color:white;padding:12px 22px;border-radius:10px;box-shadow:0 5px 30px #12345630;z-index:100;display:none;font-size:12px}.note{background:#f0f5ff;border-left:3px solid #739bea;padding:12px 15px;color:#56708e;font-size:12px;margin-top:15px}.tools>button{white-space:nowrap}.programTitle h2{font-size:14px}.programTitle{gap:4px}.tools{gap:3px}.countPill{font-size:9px}.tools #save{white-space:nowrap;min-width:44px}.panelhead .sceneTabs button{font-size:9px}#emptyHint{left:calc(var(--library) + 20px);right:20px}@media(min-width:1550px){.programTitle h2{font-size:18px}.panelhead .sceneTabs button{font-size:11px}}@media(max-width:600px){.programTitle h2{font-size:12px}.tools #save{min-width:33px}}
.robotAvatar{display:block;width:57px;height:57px;flex-shrink:0;background-image:url('assets/robot-directions.png');background-size:200% 200%;background-position:100% 100%;filter:drop-shadow(0 2px 3px #00418f25)}.coachAvatar{height:62px;width:62px;background-position:0 0;transform:rotate(-8deg);margin-top:5px}@media(max-width:600px){.robotAvatar{width:42px;height:45px}.coachAvatar{width:47px;height:52px}}

/* Spacious arena; theme decoration is independent of the mission mat. */
main{grid-template-columns:minmax(510px,1fr) minmax(520px,1.08fr)}.stage{height:430px;min-height:380px}.decorLabel{font-size:9px;color:#7891b0;margin-left:auto;margin-right:6px;white-space:nowrap}.panelhead .sceneTabs{margin-left:0}.stageExpanded .stage{height:70vh;min-height:500px}.sceneSelect{flex:1.5}@media(max-width:1100px){main{grid-template-columns:1fr}.stage{height:480px}}@media(max-width:600px){.stage{height:330px;min-height:300px}.decorLabel{display:none}.panelhead .sceneTabs button{font-size:8px}}

@media(min-width:1101px) and (max-width:1500px){:root{--library:270px}.libraryTitle{width:270px}.programTitle h2{font-size:12px}.countPill{font-size:8px}.tools #save span{display:none}}

/* Crisp, consistent SVG navigation and Blockly category icons. */
nav button{display:inline-flex;align-items:center;justify-content:center;gap:9px}.navIcon{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:9px;background:#ffffff14;flex-shrink:0}.navIcon svg{width:21px;height:21px}nav button.active .navIcon{background:#fff;color:#1769e6;box-shadow:0 2px 5px #003a8c22}.appIcon{display:inline-flex!important;align-items:center;justify-content:center;flex-shrink:0;width:29px;height:29px;color:#1874e9}.appIcon svg{width:25px;height:25px}.blocklyTreeLabel{display:inline-flex!important;align-items:center;gap:8px;white-space:nowrap}.blocklyTreeLabel:before{content:'';display:inline-block;width:21px;height:21px;flex-shrink:0;background-color:var(--category-color);mask:var(--category-icon) center/contain no-repeat;-webkit-mask:var(--category-icon) center/contain no-repeat}.blocklyTreeSelected .blocklyTreeLabel:before{background-color:white}
.category-start{--category-color:#18a675;--category-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20aria-hidden%3D%22true%22%3E%3Cpath%20d%3D%22M6%2021V3m0%201c4-4%208%204%2014%200v10c-6%204-10-4-14%200%22%2F%3E%3C%2Fsvg%3E")}
.category-motion{--category-color:#ed9223;--category-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20aria-hidden%3D%22true%22%3E%3Ccircle%20cx%3D%226%22%20cy%3D%2218%22%20r%3D%223%22%2F%3E%3Cpath%20d%3D%22M6%2015V9a4%204%200%200%201%204-4h10m-4-4%204%204-4%204M13%2014h7m-3-3%203%203-3%203%22%2F%3E%3C%2Fsvg%3E")}
.category-sensor{--category-color:#1cabc0;--category-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20aria-hidden%3D%22true%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%222%22%2F%3E%3Cpath%20d%3D%22M7%207a7%207%200%200%200%200%2010m10-10a7%207%200%200%201%200%2010M4%204a11%2011%200%200%200%200%2016M20%204a11%2011%200%200%201%200%2016%22%2F%3E%3C%2Fsvg%3E")}
.category-grip{--category-color:#9560df;--category-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20aria-hidden%3D%22true%22%3E%3Cpath%20d%3D%22M9%203h6v5H9Zm3%205v4M6%2012h12M6%2012l-3%205%204%204m11-9%203%205-4%204M7%2021l2-3m8%203-2-3%22%2F%3E%3C%2Fsvg%3E")}
.category-control{--category-color:#d6a125;--category-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22currentColor%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20aria-hidden%3D%22true%22%3E%3Cpath%20d%3D%22m9%203-4%204%204%204M5%207h10a5%205%200%200%201%205%205m-5%209%204-4-4-4m4%204H9a5%205%200%200%201-5-5%22%2F%3E%3C%2Fsvg%3E")}
@media(max-width:600px){nav button{gap:4px}.navIcon{width:22px;height:24px;background:none}.navIcon svg{width:18px;height:18px}}
@media(min-width:1101px){main{height:calc(100dvh - 113px);margin-top:12px}.stageExpanded main{height:calc(100dvh - 113px)}}

.environmentControls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr) auto}.environmentControls #settings{grid-column:3;grid-row:1}.environmentControls #myRobot{grid-column:1/-1;grid-row:2;background:linear-gradient(110deg,#eaf2ff,#fff2ce);border:1px solid #d7e2f7;padding:8px 14px;color:#3468ae;font-size:12px;font-weight:750;text-align:center}.environmentControls #myRobot span{display:inline}.liveData{font-size:10px;color:#6481a0;margin:7px 12px}.liveData summary{cursor:pointer}.liveData>span{display:block;padding-top:7px;font-variant-numeric:tabular-nums}#modal:has(.robotStudio){width:min(950px,95vw)}.robotStudio{display:grid;grid-template-columns:1fr 1fr;gap:24px}.robotPreview{border-radius:18px;background:#eff7ff;overflow:hidden;display:flex;flex-direction:column;text-align:center;justify-content:center;border:1px solid #dce9f8}.robotPreview canvas{width:100%;height:auto}.robotPreview strong{font-size:20px;color:#285c93}.robotPreview>span{font-size:11px;color:#7994af;padding:12px 16px}.robotStudioForm input[type=color]{width:100%!important;height:45px;padding:3px!important;cursor:pointer}.lookColorRow{display:grid;grid-template-columns:1fr 1fr;gap:12px}.lookPalettes{display:flex;gap:8px}.lookPalettes button{height:30px;width:30px;min-width:30px;border:2px solid white;border-radius:50%;box-shadow:0 0 0 1px #d6e3f3;margin:0!important;padding:0!important}.lookActions{display:flex;gap:8px;margin-top:20px}.robotStudioForm label{margin:8px 0!important}.robotStudioForm select{max-width:100%}.robotStudioForm .primary{font-size:13px}@media(max-width:650px){.robotStudio{grid-template-columns:1fr}.robotPreview canvas{max-height:250px;object-fit:contain}.environmentControls #myRobot{font-size:11px}}
.category-logic{--category-color:#4aaa8b;--category-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%204h5v5H5zm9%2011h5v5h-5zM10%206h6v9M7%209v9h7%22%2F%3E%3C%2Fsvg%3E")}
.category-math{--category-color:#d67c46;--category-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%224%22%20y%3D%222%22%20width%3D%2216%22%20height%3D%2220%22%20rx%3D%223%22%2F%3E%3Cpath%20d%3D%22M7%206h10M7%2011h3m-1.5-1.5v3M14%2011h3M7%2017h3m4-1h3m-3%202h3%22%2F%3E%3C%2Fsvg%3E")}
.category-display{--category-color:#8b6cd0;--category-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%222%22%20y%3D%223%22%20width%3D%2220%22%20height%3D%2215%22%20rx%3D%223%22%2F%3E%3Cpath%20d%3D%22M8%2022h8m-4-4v4M7%208h.1M17%208h.1M8%2013q4%204%208%200%22%2F%3E%3C%2Fsvg%3E")}
.environmentControls{height:auto!important;grid-template-rows:40px 34px;row-gap:7px}.environmentControls #myRobot{height:34px;min-height:34px}.robotPreview canvas{display:block}
