@font-face{font-family:Studio;src:local(Inter),local(Segoe UI),local(Arial);font-style:normal;font-weight:100 900;font-display:swap}:root{color:#242b3b;font-synthesis:none;--orange:#ef9635;--ink:#242b3b;--muted:#89909d;--border:#e5e8ed;background:#edf0f5;font-family:Studio,Inter,Segoe UI,Arial,sans-serif;font-size:13px}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;text-size-adjust:100%}html,body{height:100%}body{margin:0;overflow:hidden}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:wait}button{transition:background .16s,color .16s,box-shadow .16s}:is(button:focus-visible,input:focus-visible,select:focus-visible){outline-offset:3px;outline:3px solid #f6b45e}button svg{flex-shrink:0}svg.lucide{vertical-align:middle;width:17px;height:17px}button{border:0}button:hover{filter:brightness(.98)}[hidden]{display:none!important}#app{height:100%;flex-direction:column;min-width:880px;height:100dvh;display:flex}.topbar{color:#fff;background:#252c3d;flex-shrink:0;justify-content:space-between;align-items:center;gap:14px;height:56px;padding:0 16px;display:flex}.brand{flex-shrink:0;align-items:center;gap:10px;display:flex}.logo-box{background:#fff;border-radius:6px;place-items:center;width:45px;height:38px;padding:2px;display:grid}.logo-box img{object-fit:contain;width:100%;height:100%}.brand strong{letter-spacing:1.3px;font-size:16px;font-weight:800}.brand strong span{letter-spacing:1.6px;color:#dbe0e9;margin-left:5px;font-size:15px;font-weight:350}.brand small{letter-spacing:2.2px;color:#aeb5c7;margin-top:4px;font-size:7px;display:block}.file-actions{flex-shrink:0;align-items:center;gap:4px;display:flex}.ghost{color:#d5dbe7;background:0 0;align-items:center;gap:7px;padding:8px 10px;display:flex}.ghost:hover{color:#fff;background:#3a4254;border-radius:6px}.separator{background:#515767;width:1px;height:21px;margin:0 5px}.project-bar{border-left:1px solid #3d4558;flex:1;justify-content:space-between;align-items:center;gap:12px;min-width:0;height:34px;padding-left:14px;display:flex}.project-heading{flex:0 300px;min-width:0}.name-row{align-items:center;gap:8px;display:flex}.name-row input{color:#fff;letter-spacing:-.2px;text-overflow:ellipsis;background:0 0;border:0;width:100%;min-width:0;padding:0;font-size:15px;font-weight:700}.name-row svg{color:#7f889b;width:12px}.save-state{color:#8d96a8;white-space:nowrap;align-items:center;gap:5px;margin-top:3px;font-size:9px;display:flex}.save-state span{background:#8caf99;border-radius:50%;width:5px;height:5px}.project-actions{flex-shrink:0;align-items:center;gap:8px;display:flex}.topbar .btn{min-height:36px;padding:8px 13px}.topbar .btn:not(.primary){color:#e8ecf2;background:#323a4d;border-color:#465066}.topbar .btn:not(.primary):hover{background:#3b4459;border-color:#5b657b}.robot-toggle[aria-pressed=true]{color:#fff;background:#3a4254;border-radius:6px}.btn{white-space:nowrap;background:#fff;border:1px solid #dfe3ea;border-radius:7px;justify-content:center;align-items:center;gap:8px;min-height:39px;padding:11px 15px;font-size:12px;font-weight:650;display:inline-flex}.btn:hover{background:#f5f6f9;border-color:#c5cbd6}.btn.primary{background:var(--orange);border-color:var(--orange);color:#222735;box-shadow:0 3px 6px #c8871b18}.btn.primary:hover{background:#f6a346}.btn.dark{color:#fff;background:#30394d;border-color:#30394d}.full{width:100%}.main-grid{flex:1;grid-template-columns:minmax(480px,1fr) 290px;gap:12px;min-height:0;padding:12px 14px;display:grid}.editor-panel{background:#fff;border:1px solid #dfe4ed;border-radius:11px;flex-direction:column;min-height:0;display:flex;overflow:hidden;box-shadow:0 3px 10px #23324c04}.editor-toolbar{border-bottom:1px solid var(--border);flex-shrink:0;justify-content:space-between;align-items:center;gap:5px;height:44px;padding-right:14px;display:flex}.tabs{gap:10px;height:100%;padding-left:12px;display:flex}.tab{color:#9398a4;background:0 0;border-bottom:2px solid #0000;align-items:center;gap:7px;padding:0 12px;font-size:12px;font-weight:650;display:flex}.tab.active{color:#334867;border-bottom-color:#ef9635}.canvas-actions{align-items:center;gap:6px;display:flex}.canvas-actions>span{color:#9ba2ae;margin-right:10px;font-size:10px}.icon-button{color:#7f899a;background:0 0;border-radius:5px;place-items:center;width:29px;height:30px;padding:0;display:inline-grid}.icon-button:hover{color:#283a57;background:#eaeef5}.editor-content{flex:1;min-height:200px;position:relative;overflow:hidden}#blockly{position:absolute;inset:0}.workspace-note{color:#9aa3b4;pointer-events:none;white-space:nowrap;align-items:center;gap:7px;font-size:10px;display:flex;position:absolute;bottom:15px;left:calc(50% + 30px);transform:translate(-50%)}.workspace-note svg{width:13px;height:13px}.blocklySvg{border:0!important}.blocklyToolbox{border-right:1px solid #e5e9ef!important;padding:20px 5px!important}.blocklyTreeRow{border-radius:6px;height:41px!important;margin-bottom:5px!important;margin-left:3px!important;padding:8px 9px!important}.blocklyTreeLabel{font-family:Studio,Segoe UI,Arial,sans-serif!important;font-size:12px!important;font-weight:600!important}.blocklyToolboxCategoryLabel{font-size:12px!important}.blocklyTreeIcon{margin-right:5px}.blocklyFlyoutBackground{fill:#edf0f5!important}.blocklyText{font-family:Studio,Segoe UI,Arial,sans-serif!important}.blocklyToolboxDiv{padding-top:15px}.blocklyMainBackground{stroke:none!important}.blocklyScrollbarHandle{rx:4}.console{border-top:1px solid var(--border);background:#fff;flex-shrink:0;height:142px}.console-header{border-bottom:1px solid #f0f1f4;justify-content:space-between;align-items:center;height:40px;padding:0 17px;font-size:11px;font-weight:650;display:flex}.console-header>span,.console-header>div{align-items:center;gap:8px;display:flex}.console-header>span>svg{color:#717c90;width:14px;height:14px}.console-tag{color:#959ead;letter-spacing:.8px;background:#f0f2f6;border-radius:3px;padding:3px 5px;font-size:7px;font-weight:650}.console-header button{color:#9098a7;background:0 0;align-items:center;gap:6px;padding:5px 7px;font-size:10px;display:flex}.console-header button svg{width:13px;height:13px}.logs{height:100px;padding:10px 17px;font-family:Courier New,monospace;font-size:10px;line-height:1.7;overflow:auto}.log-row{color:#748093;white-space:pre-wrap;overflow-wrap:anywhere;gap:14px;display:flex}.log-row time{color:#b0b6c1;flex-shrink:0}.log-row.success{color:#41876e}.log-row.error{color:#c7544d}.log-row.warn{color:#aa772e}.log-action{font:inherit;color:#c9731c;cursor:pointer;background:#fff4e6;border:1px solid #f3c48d;border-radius:4px;margin-left:4px;padding:0 7px;font-weight:700}.log-action:hover{background:#ffe7c7}.device-panel{background:#fff;border:1px solid #dfe4ed;border-radius:11px;flex-direction:column;min-height:0;padding:14px 17px 0;display:flex;overflow:auto;box-shadow:0 3px 10px #23324c04}.section-heading{flex-shrink:0;justify-content:space-between;align-items:center;display:flex}.section-heading>span{letter-spacing:1.5px;color:#818a9b;font-size:10px;font-weight:750}.device-image{flex-shrink:0;height:154px;margin-top:5px;position:relative;overflow:hidden}.device-image img{object-fit:contain;mix-blend-mode:multiply;width:100%;height:100%;padding:4px 10px 14px}.kit-label{letter-spacing:1px;color:#99a0ad;z-index:1;background:#fff;border:1px solid #e5e8ed;border-radius:4px;padding:4px 5px;font-size:8px;position:absolute;top:4px;left:0}.image-caption{text-align:center;letter-spacing:1.35px;color:#a2a8b2;width:100%;font-size:7px;position:absolute;bottom:1px;left:0}.device-title{text-align:center;padding:14px 0 17px}.device-title h1{letter-spacing:-.5px;margin:0 0 10px;font-size:18px;font-weight:750}.device-title h1 span{font-weight:450}.board-chip{color:#69778f;background:#eef2f7;border-radius:5px;align-items:center;gap:5px;padding:5px 8px;font-size:9px;font-weight:650;display:inline-flex}.board-chip svg{width:12px;height:12px}.connection-box{background:#fafbfc;border:1px solid #e5e8ee;border-radius:8px;flex-shrink:0;padding:13px 12px}.connection-title{align-items:center;gap:6px;margin-bottom:13px;font-size:11px;display:flex}.connection-title strong{color:#7b8494;font-weight:600}.status-dot{background:#c0c7d0;border-radius:50%;flex-shrink:0;width:6px;height:6px;display:inline-block}.status-dot.green{background:#62a28a}.connection-box label{color:#a0a6b2;margin-bottom:5px;font-size:9px;font-weight:650;display:block}.port-row{gap:5px;margin-bottom:9px;display:flex}.port-row select{color:#7c869a;background:#fff;border:1px solid #dde2eb;border-radius:5px;width:100%;min-width:0;height:31px;padding:0 7px;font-size:10px}.port-row button{background:#fff;border:1px solid #e0e5ed;flex-shrink:0;width:32px;height:31px}.connection-box .btn{min-height:34px;padding:7px;font-size:10px}.connection-box .btn svg{width:14px;height:14px}.connection-box p{color:#98a1b0;text-align:center;margin:8px 0 0;font-size:9px;line-height:1.6}.hardware-heading{letter-spacing:1.1px;color:#a4aab5;flex-shrink:0;margin:21px 0 9px;font-size:8px;font-weight:750}.capability{flex-shrink:0;align-items:center;gap:8px;padding:9px 0;display:flex}.cap-icon{border-radius:7px;flex-shrink:0;place-items:center;width:31px;height:31px;display:grid}.blue{--card:#398bc8;--pale:#edf5fd}.teal{--card:#219889;--pale:#ebf7f4}.purple{--card:#9068c5;--pale:#f4effb}.orange{--card:#d18a36;--pale:#fff5e9}.cap-icon{background:var(--pale);color:var(--card)}.cap-icon svg{width:16px;height:16px}.capability strong{font-size:10px;font-weight:650;display:block}.capability small{color:#959fad;margin-top:4px;font-size:8px;display:block}.pin{color:#8c97a9;white-space:nowrap;margin-left:auto;font-family:monospace;font-size:7px}.learn-card{text-align:left;color:#78604b;background:#fcf6ed;border:1px solid #f3e8d7;border-radius:7px;flex-shrink:0;gap:10px;margin:17px 0;padding:13px 10px;display:flex}.learn-card>span{color:#deaa62}.learn-card strong{font-size:10px;font-weight:650;line-height:1.65}.learn-card small{color:#ac8a5d;margin-top:6px;font-size:8px;display:block}.learn-card small svg{width:10px;height:10px}.next-board{color:#929baa;border-top:1px solid #edf0f4;flex-shrink:0;align-items:center;gap:7px;margin-top:auto;padding:14px 0;font-size:9px;display:flex}.next-board svg{width:15px;height:15px}.next-board span{letter-spacing:.7px;color:#9c9eab;background:#f0f1f5;border-radius:3px;margin-left:auto;padding:4px;font-size:6px}footer{color:#98a1b0;background:#fff;border-top:1px solid #e4e8ef;flex-shrink:0;justify-content:space-between;align-items:center;height:25px;padding:0 25px;font-size:9px;display:flex}footer>span{align-items:center;gap:8px;display:flex}footer b{color:#b2b8c2;font-weight:450}.footer-divider{color:#d6dae0;margin:0 4px}#code-view{color:#d8e1f1;background:#242d3e;position:absolute;inset:0;overflow:auto}.code-file{color:#a6b6cd;background:#2e384b;justify-content:space-between;align-items:center;padding:13px 19px;font-size:11px;display:flex;position:sticky;top:0}.code-file>span{align-items:center;gap:8px;display:flex}.code-file button{color:#c3cddd;background:0 0;align-items:center;gap:6px;font-size:10px;display:flex}.code-file svg{width:14px;height:14px}pre{tab-size:2;margin:0;padding:21px;font-size:11px;line-height:1.75}dialog{width:min(720px,92vw);max-height:88vh;color:var(--ink);border:1px solid #e0e5eb;border-radius:14px;padding:27px;box-shadow:0 24px 100px #19283c40}dialog::backdrop{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#1d273c70}.modal-head{justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:22px;display:flex}.modal-head h2{letter-spacing:-.7px;margin:0 0 8px;font-size:23px}.modal-head p{color:#8993a5;margin:0;font-size:12px;line-height:1.5}.example-grid{grid-template-columns:1fr 1fr;gap:14px;display:grid}.example-card{text-align:left;background:#fff;border:1px solid #e3e7ee;border-radius:10px;padding:20px;transition:transform .2s,box-shadow .2s}.example-card:hover{border-color:var(--card);transform:translateY(-3px);box-shadow:0 5px 18px #29394e12}.example-icon{width:36px;height:36px;color:var(--card);background:var(--pale);border-radius:8px;place-items:center;margin-bottom:18px;display:grid}.example-icon svg{width:20px;height:20px}.example-card>small{letter-spacing:1px;color:var(--card);font-size:8px;font-weight:700}.example-card h3{margin:9px 0;font-size:16px}.example-card p{color:#8b94a4;margin:0 0 18px;font-size:11px;line-height:1.65}.example-link{color:var(--card);justify-content:space-between;align-items:center;font-size:10px;font-weight:650;display:flex}.modal-note{color:#939cab;margin:18px 0 0;font-size:10px;line-height:1.7}.modal-footer{justify-content:flex-end;gap:10px;margin-top:24px;display:flex}.settings-grid{grid-template-columns:1fr 1fr;gap:22px;display:grid}.settings-grid>label{font-size:12px;font-weight:650;display:block}.settings-grid input[type=number],.settings-grid select{color:#4f5c71;background:#fff;border:1px solid #dce2ea;border-radius:6px;width:100%;height:38px;margin-top:8px;padding:0 10px;display:block}.settings-grid small{color:#99a1b0;margin-top:7px;font-size:9px;font-weight:400;line-height:1.5;display:block}.inversion{flex-direction:column;justify-content:center;gap:15px;font-size:11px;display:flex}.inversion label{align-items:center;gap:7px;display:flex}.inversion input{accent-color:var(--orange)}.pin-diagram{background:#f4f6f9;border-radius:8px;margin-top:24px;padding:16px;font-size:11px}.pin-diagram p{color:#78869b;margin-bottom:0;font-family:monospace;line-height:1.8}.help-steps p{color:#8590a2;gap:16px;margin:20px 0;font-size:12px;line-height:1.65;display:flex}.help-steps b{color:#d6923b;background:#fff3e4;border-radius:8px;flex-shrink:0;place-items:center;width:29px;height:29px;display:grid}.help-steps strong{color:#364359;margin-bottom:3px;font-size:13px;display:block}.help-note,.upload-note{color:#927445;background:#fff8ec;border-radius:8px;padding:17px;font-size:12px;line-height:1.7}.upload-note{align-items:center;gap:12px;display:flex}.upload-note svg{flex-shrink:0;width:30px;height:30px}#toast{color:#fff;z-index:1000;background:#303b50;border-radius:8px;padding:13px 23px;font-size:12px;position:fixed;bottom:47px;left:50%;transform:translate(-50%);box-shadow:0 4px 20px #19293e30}.loading svg{animation:1s infinite pulse}@keyframes pulse{50%{opacity:.3}}@media (min-height:900px){.device-image{height:195px}.console{height:155px}.logs{height:113px}.device-panel{padding-top:20px}.capability{padding:12px 0}}@media (max-height:780px){.device-image{height:117px}.device-title{padding:9px 0 12px}.capability{padding:6px 0}.hardware-heading{margin-top:15px}.learn-card{margin:12px 0}.console{height:115px}.logs{height:73px}}@media (max-width:1100px){.main-grid{grid-template-columns:minmax(480px,1fr) 255px;gap:12px;padding:12px}.topbar{gap:10px;padding:0 12px}.project-actions{gap:7px}.project-actions .btn{padding:8px 10px}.project-actions .verify{display:inline-flex}.brand strong{font-size:17px}.brand strong span{font-size:16px}.device-panel{padding:12px}.canvas-actions>span{display:none}.file-actions{gap:3px}.tabs{gap:0}.tab{padding:0 9px}.learn-card{padding:10px 8px}.pin{display:none}}.blocklySvg{width:100%;height:100%}@media (max-width:879px){#app{min-width:620px}.main-grid{grid-template-columns:minmax(0,1fr)}.device-panel{display:none}.project-bar{height:102px}.project-heading{min-width:0}.name-row input{width:250px;font-size:18px}.project-actions>#examples{gap:0;padding:10px;font-size:0}.project-actions>#examples svg{width:18px}.project-actions>#upload{padding:10px 12px;font-size:11px}.file-actions .ghost span{display:none}.brand strong{font-size:15px}.brand strong span{font-size:14px}.brand small{letter-spacing:1.5px;font-size:7px}.logo-box{width:45px;height:40px}.topbar{height:68px}.brand{gap:9px}footer>span:last-child{display:none}}.workspace-note{font-size:9px;inset:12px 20px auto auto;transform:none}@media (max-height:780px){.workspace-note{display:none}}.blocklyToolboxCategoryContainer{height:43px!important;margin:0 4px!important}.blocklyToolboxCategory{border-radius:5px;align-items:center;display:flex;height:37px!important;padding:8px 10px!important}.blocklyToolboxCategoryLabel{font-family:Studio,Arial,sans-serif!important;font-size:12px!important;font-weight:600!important}.blocklyToolboxCategoryIcon{margin-right:7px}.kit-picker{color:#8792a4;margin:8px 0 6px;font-size:9px;display:block}.kit-picker select{color:#344662;background:#f7f9fc;border:1px solid #dce3ee;border-radius:6px;width:100%;height:36px;margin-top:5px;padding:0 8px;font-size:11px;font-weight:650;display:block}.device-image .c6-image{padding:25px 6px 17px}.sensor-setup{color:#477691;background:#edf5fa;border-radius:7px;flex-shrink:0;margin-bottom:15px;padding:11px;font-size:10px}.settings-section{margin:25px 0 0;font-size:15px}.sensor-explanation{margin:8px 0 16px}.pin-fields{gap:14px 22px}.settings-error{color:#b6433c;background:#fff0ed;border-radius:6px;padding:12px}.device-title h1{font-size:17px}.device-image{height:140px}@media (min-height:900px){.device-image{height:165px}}#capabilities{display:contents}.prompt-input{width:100%;height:40px;font:inherit;color:#344662;background:#f7f9fc;border:1px solid #dce3ee;border-radius:7px;margin:6px 0 4px;padding:0 12px;font-size:14px;display:block}.rd-multi-selected>.blocklyPath{stroke:#f49d37!important;stroke-width:3px!important}.rd-selection-box{z-index:40;pointer-events:none;background:#f49d371f;border:1.5px dashed #f49d37;border-radius:4px;position:absolute}.selection-count{color:#d97a12;font-weight:700}.build-progress{z-index:80;background:#fff;border:1px solid #e3e8f0;border-radius:12px;width:min(460px,100% - 32px);padding:14px 16px 16px;animation:.25s ease-out bp-in;position:absolute;bottom:18px;left:50%;transform:translate(-50%);box-shadow:0 14px 40px #1c2b4626,0 2px 6px #1c2b4614}.build-progress[hidden]{display:none}@keyframes bp-in{0%{opacity:0;transform:translate(-50%,12px)}to{opacity:1;transform:translate(-50%)}}.bp-head{align-items:center;gap:11px;display:flex}.bp-icon{color:#f08a1c;background:#fff3e3;border-radius:50%;flex-shrink:0;place-items:center;width:36px;height:36px;display:grid}.bp-icon svg{width:20px;height:20px}.running .bp-icon svg{animation:1s linear infinite bp-spin}@keyframes bp-spin{to{transform:rotate(360deg)}}.success .bp-icon{color:#1f9d63;background:#e5f6ee}.failed .bp-icon{color:#c9473d;background:#fdecea}.bp-text{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.bp-title{color:#25324a;font-size:14px}.bp-detail{color:#66738a;font-size:11.5px;line-height:1.35}.bp-time{color:#8c97a9;align-self:flex-start;margin-top:3px;font-family:monospace;font-size:11px}.bp-close{align-self:flex-start;width:26px;height:26px}.bp-steps{gap:6px;margin:13px 0 11px;padding:0;list-style:none;display:flex}.bp-steps li{color:#a1abbb;white-space:nowrap;flex:1;align-items:center;gap:6px;font-size:10.5px;font-weight:650;display:flex}.bp-steps li span{background:#dfe4ec;border-radius:50%;flex-shrink:0;width:9px;height:9px;transition:background .2s}.bp-steps li.active{color:#d97a12}.bp-steps li.active span{background:#f49d37;animation:1.2s infinite bp-pulse;box-shadow:0 0 #f49d3780}.bp-steps li.done{color:#1f9d63}.bp-steps li.done span{background:#1f9d63}.bp-steps li.error{color:#c9473d}.bp-steps li.error span{background:#c9473d}@keyframes bp-pulse{70%{box-shadow:0 0 0 6px #f49d3700}to{box-shadow:0 0 #f49d3700}}.bp-bar{background:#eef1f6;border-radius:99px;height:7px;position:relative;overflow:hidden}.bp-fill{border-radius:inherit;background:linear-gradient(90deg,#f6a945,#ee7f12);width:0;height:100%;transition:width .35s;display:block}.bp-bar.indeterminate .bp-fill{width:38%;animation:1.25s ease-in-out infinite bp-slide;position:absolute}@keyframes bp-slide{0%{left:-40%}to{left:100%}}.success .bp-fill{background:#1f9d63}.failed .bp-fill{opacity:.35;background:#c9473d;animation:none;position:static;width:100%!important}@media (prefers-reduced-motion:reduce){.build-progress,.running .bp-icon svg,.bp-steps li.active span,.bp-bar.indeterminate .bp-fill{animation:none}.bp-bar.indeterminate .bp-fill{opacity:.5;width:100%;left:0}}.mb-form{flex-direction:column;gap:14px;min-width:min(440px,80vw);display:flex}.mb-form label{color:#4f5c71;flex-direction:column;gap:6px;font-size:12px;font-weight:650;display:flex}.mb-form input{height:38px;font:inherit;color:#344662;border:1px solid #dce2ea;border-radius:7px;padding:0 10px;font-size:14px}.mb-preview{background:#f6f7f9;border-radius:10px;flex-wrap:wrap;align-items:center;gap:6px;min-height:64px;padding:16px;display:flex}.mb-preview span{color:#fff;background:#e0567e;border-radius:6px;padding:10px 16px;font-weight:700}.mb-preview i{color:#b83d61;background:#fff;border:2px solid #e0567e;border-radius:99px;padding:5px 12px;font-size:13px;font-style:normal;font-weight:700}.mb-params{flex-direction:column;gap:8px;display:flex}.mb-params:empty{display:none}.mb-row{align-items:center;gap:6px;display:flex}.mb-row input{flex:1}#mb-add{align-self:flex-start}.connection-box .bluetooth-button{margin-top:6px}.bt-list{flex-direction:column;gap:8px;max-height:300px;display:flex;overflow:auto}.bt-device{color:var(--ink);text-align:left;background:#fff;border:1px solid #e3e7ee;border-radius:8px;align-items:center;gap:10px;padding:12px 14px;font-size:13px;font-weight:650;display:flex}.bt-device:hover{border-color:var(--orange);background:#fffaf3}.bt-device svg{color:#398bc8}.bt-device small{color:#9aa3b2;margin-left:auto;font-family:monospace;font-size:10px;font-weight:400}.sim-view{background:#dfe5ee;flex-direction:column;display:flex;position:absolute;inset:0}.editor-content.sim-split #blockly{right:48%}.editor-content.sim-split .sim-view{border-left:1px solid var(--border);left:52%}.sim-bar{border-bottom:1px solid var(--border);background:#fff;flex-shrink:0;align-items:center;gap:6px;padding:8px 10px;display:flex}.sim-run{min-height:34px;padding:7px 14px}.sim-run.running{color:#fff;background:#30394d;border-color:#30394d}.sim-scene{color:#344662;background:#f7f9fc;border:1px solid #dce2ea;border-radius:6px;flex:auto;min-width:0;max-width:250px;height:34px;padding:0 8px;font-size:12px;font-weight:600}.sim-spacer{flex:1}.sim-speed{color:#344662;background:#eef2f7;border-radius:6px;min-width:38px;height:30px;font-size:12px;font-weight:700}[data-sim=sensors].off{opacity:.4}.sim-stage{flex:1;min-height:0;position:relative;overflow:hidden}.sim-canvas{position:absolute;inset:0}.sim-canvas canvas{touch-action:none;width:100%;height:100%;display:block}.sim-hud{pointer-events:none;flex-wrap:wrap;gap:6px;display:flex;position:absolute;top:10px;left:10px;right:10px}.sim-hud>span{color:#5d6a80;background:#ffffffeb;border-radius:7px;align-items:center;gap:5px;padding:5px 8px;font-size:11px;display:flex;box-shadow:0 1px 4px #1b284014}.sim-hud b{color:#25324a;font-variant-numeric:tabular-nums}.sim-hud i{background:#2b3240;border-radius:50%;width:9px;height:9px;display:inline-block}.sim-hud i.high{background:#ffd23f;box-shadow:0 0 0 1px #d8a800}.sim-led:before{content:"";background:#5a1712;border-radius:50%;width:9px;height:9px}.sim-led.on:before{background:#ff3b2f;box-shadow:0 0 6px #ff3b2f}.sim-message{color:#fff;text-align:center;pointer-events:none;background:#25324ae8;border-radius:10px;max-width:82%;padding:12px 18px;font-size:15px;font-weight:650;line-height:1.4;position:absolute;top:46%;left:50%;transform:translate(-50%,-50%)}.sim-message.won{background:#1f9d63ee}.sim-message.lost,.sim-message.error{background:#c9473dee}.sim-switches{gap:6px;display:flex;position:absolute;bottom:10px;left:10px}.sim-switches label{color:#5d6a80;background:#ffffffeb;border-radius:7px;align-items:center;gap:5px;padding:5px 8px;font-size:11px;display:flex}.sim-rc{grid-template-rows:repeat(2,48px);grid-template-columns:repeat(3,48px);gap:6px;display:grid;position:absolute;bottom:58px;right:12px}.sim-rc button{color:#33405a;touch-action:none;-webkit-user-select:none;user-select:none;background:#ffffffeb;border-radius:12px;place-items:center;display:grid;box-shadow:0 2px 6px #1b284022}.sim-rc button svg{width:22px;height:22px}.sim-rc [data-rc=w]{grid-area:1/2}.sim-rc [data-rc=a]{grid-area:2/1}.sim-rc [data-rc=s]{grid-area:2/2}.sim-rc [data-rc=d]{grid-area:2/3}.sim-rc button.pressed{background:var(--orange);color:#222735}.sim-rc-toggle{color:#5d6a80;background:#ffffffeb;border-radius:10px;place-items:center;width:40px;height:40px;display:grid;position:absolute;bottom:10px;right:12px;box-shadow:0 1px 4px #1b284014}.sim-expand{display:inline-grid}.sim-unsupported{text-align:center;color:#5d6a80;background:#edf0f5f2;flex-direction:column;justify-content:center;align-items:center;gap:10px;padding:24px;font-size:13px;line-height:1.6;display:flex;position:absolute;inset:0}.sim-unsupported svg{color:#e08a2c;width:36px;height:36px}.compact-only{display:none!important}.label-short{display:none}.robot-dot{background:#7d8597;border-radius:50%;width:7px;height:7px;margin-left:2px;display:inline-block}.robot-dot.on{background:#62d29e}.section-heading>div{gap:2px;display:flex}.drawer-backdrop{z-index:80;background:#1d273c66;position:fixed;inset:0}.sheet{display:none}@media (max-width:1400px){.file-actions .ghost:not(.robot-toggle)>span,.brand small{display:none}}@media (max-width:1200px){.brand>div:last-child,.project-actions>#examples .btn-label{display:none}}@media (max-width:1000px){#upload .label-long{display:none}#upload .label-short{display:inline}}@media (min-width:880px) and (min-height:521px){body.robot-hidden .main-grid{grid-template-columns:minmax(0,1fr)}body.robot-hidden .device-panel{display:none}}@media (max-width:879px),(max-height:520px){.compact-only{display:inline-flex!important}#app{min-width:0}.topbar{gap:6px;height:52px;padding:0 6px 0 8px}.brand{flex-shrink:0}.brand>div:last-child{display:none}.logo-box{width:42px;height:36px;padding:2px}.mobile-name{color:#fff;letter-spacing:-.2px;text-align:left;background:0 0;flex:1;align-items:center;gap:6px;min-width:0;padding:8px 4px;font-size:16px;font-weight:700}.mobile-name span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mobile-name svg{color:#8f99ad;width:14px;height:14px}.file-actions{flex-shrink:0;gap:2px}.file-actions>:not(.robot-toggle):not(.menu-toggle){display:none!important}.robot-toggle{color:#fff;background:#3a4254;border-radius:8px;gap:7px;padding:9px 11px}.file-actions .robot-toggle>span{white-space:nowrap;font-size:13px;display:inline}.menu-toggle{color:#e3e8f1;justify-content:center;width:42px;height:42px;padding:0}.menu-toggle svg{width:23px;height:23px}.project-bar,.editor-toolbar,footer,.workspace-note,.blocklyScrollbarHorizontal,.blocklyScrollbarVertical{display:none!important}.main-grid{grid-template-columns:minmax(0,1fr);gap:0;padding:0}.editor-panel{box-shadow:none;border:0;border-radius:0}.blocklyToolbox{padding:6px 3px!important}.blocklyToolboxCategoryContainer{height:auto!important;margin:0 0 2px!important}.blocklyToolboxCategory{border-radius:9px;justify-content:center;width:64px;min-height:50px;border-left:0!important;height:auto!important;padding:5px 2px!important}.blocklyTreeRowContentContainer{flex-direction:column;align-items:center;gap:4px;width:100%;display:flex}.blocklyToolboxCategoryIcon{border-radius:50%;visibility:visible!important;background:var(--cat,#9aa3b5)!important;width:20px!important;height:20px!important;margin:0!important;display:block!important}.blocklyToolboxSelected .blocklyToolboxCategoryIcon{box-shadow:0 0 0 2px #fff}.blocklyToolboxCategoryLabel{text-align:center;white-space:normal;line-height:1.15;padding:0!important;font-size:10px!important}.mobile-bar{height:58px;padding:0 8px env(safe-area-inset-bottom) 6px;border-top:1px solid var(--border);background:#fff;flex-shrink:0;align-items:center;gap:4px}.mobile-bar .icon-button{color:#5d6a80;flex-shrink:0;width:40px;height:40px}.mobile-bar .icon-button svg{width:21px;height:21px}.m-status{color:#5f6b80;text-align:left;background:#f3f5f9;border-radius:9px;flex:1;align-items:center;gap:7px;min-width:0;height:40px;padding:0 10px;font-size:12px;display:flex}.m-status i{background:#aab3c2;border-radius:50%;flex-shrink:0;width:8px;height:8px}.m-status span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.m-status.success i{background:#41a37f}.m-status.warn i{background:#d79a3c}.m-status.error i{background:#d0574f}.m-status.error{color:#a8443d;background:#fdf0ee}#m-sim.active{color:#e08a2c;background:#fff3e4}.sim-bar{flex-wrap:wrap;gap:4px;padding:6px}.sim-scene{flex-basis:100%;order:10;max-width:none;height:36px;font-size:13px}.sim-back{color:#5d6a80;background:0 0;justify-content:center;align-items:center;width:38px;height:36px}.sim-back svg{width:20px;height:20px}.sim-bar .icon-button{width:36px;height:36px}.sim-bar .sim-expand{display:none}.sim-hud>span{padding:4px 6px;font-size:10px}#m-upload{border-radius:10px;flex-shrink:0;min-height:44px;padding:0 16px;font-size:14px}#m-upload svg{width:18px;height:18px}.menu-sheet,.console{z-index:90;width:min(100%,640px);padding-bottom:env(safe-area-inset-bottom);background:#fff;border:0;border-radius:16px 16px 0 0;position:fixed;bottom:0;left:50%;transform:translate(-50%);box-shadow:0 -10px 30px #1b28402e}.console{height:min(62dvh,520px);display:none}body.console-open .console{flex-direction:column;display:flex}.console .logs{flex:1;height:auto;padding:8px 14px;font-size:11px}.console-header{flex-shrink:0;height:52px;padding:0 6px 0 16px;font-size:13px}.console-header button{padding:8px;font-size:12px}#console-toggle{justify-content:center;width:40px;height:40px}#console-toggle svg{width:20px;height:20px}body.menu-open .menu-sheet{max-height:92dvh;display:block;overflow:auto}.sheet-head{justify-content:space-between;align-items:center;padding:12px 8px 2px 18px;font-size:15px;display:flex}.sheet-head .icon-button{width:40px;height:40px}.menu-grid{grid-template-columns:repeat(3,1fr);gap:8px;padding:8px 12px 16px;display:grid}.menu-grid button{color:#33405a;background:#f4f6fa;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:7px;min-height:76px;padding:8px 4px;font-size:12px;font-weight:650;line-height:1.2;display:flex}.menu-grid svg{color:#e08a2c;width:23px;height:23px}.device-panel{z-index:90;visibility:hidden;border:0;border-radius:0;width:min(340px,88vw);padding:14px 16px 0;display:flex;position:fixed;top:0;bottom:0;right:0;box-shadow:-8px 0 30px #1b28403a}body.robot-open .device-panel{visibility:visible}.code-file{padding:6px 12px 6px 6px}#back-to-blocks{gap:6px;padding:8px;font-size:12px}.rename-input{width:100%;height:46px;color:var(--ink);border:1px solid #dce2ea;border-radius:8px;padding:0 12px;font-size:16px;display:block}dialog{width:94vw;max-height:90dvh;padding:18px;overflow:auto}.modal-head{margin-bottom:14px}.modal-head h2{font-size:19px}.settings-grid,.example-grid{grid-template-columns:1fr}.settings-grid{gap:16px}.example-grid{gap:10px}.example-card{padding:12px 14px}.example-icon{width:30px;height:30px;margin-bottom:6px}.example-icon svg{width:17px;height:17px}.example-card h3{margin:5px 0;font-size:15px}.example-card p{margin:0;font-size:12px;line-height:1.5}.example-link{display:none}.modal-footer{flex-wrap:wrap}.modal-footer .btn{flex:auto}#toast{text-align:center;max-width:92vw;bottom:76px}}@media (max-height:520px){.sim-scene{flex-basis:auto;order:0;max-width:260px;height:34px}.sim-hud>span:last-child{display:none}.topbar{height:46px}.mobile-bar{height:50px}.blocklyToolboxCategory{min-height:42px}.console{height:82dvh}.menu-grid{grid-template-columns:repeat(4,1fr)}.menu-grid button{gap:4px;min-height:58px}.device-panel .device-image{display:none}.device-panel .device-title{padding:6px 0 10px}}
