/* AIM STEM LAB 0.27.204 — deterministic arduino stylesheet bundle. Cascade order preserved exactly. */

/* ===== SOURCE: arduino/style.css ===== */
500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--ink:#22322f;--muted:#77827e;--teal:#137768;--line:#e0e6e2;--paper:#f6f8f6}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px 'DM Sans',sans-serif}button,input,select,textarea{font:inherit}button,.import{cursor:pointer;border:1px solid var(--line);background:white;color:var(--ink);padding:9px 13px;border-radius:7px;font-size:14px;font-weight:500}button:hover,.import:hover{background:#edf4ef;border-color:#b0c6bb}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #e2a84b;outline-offset:3px}button:disabled{opacity:.5;cursor:not-allowed}header{height:78px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:24px;padding:0 30px}.brand{display:flex;gap:10px;text-decoration:none;color:var(--ink);align-items:center;font:800 25px Manrope,sans-serif}.brand small{display:block;font:600 10px 'DM Sans',sans-serif;letter-spacing:2px}.mark{display:grid;place-items:center;width:38px;height:42px;background:var(--teal);border-radius:10px;color:white;font-size:30px}.divider{width:1px;height:30px;background:var(--line)}.labname{font-weight:600;font-size:16px}.topnote{margin-left:auto;color:var(--muted);font-size:14px}header button{border:0}.app{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:calc(100vh - 78px)}.left{background:#fff;border-right:1px solid var(--line);padding:32px 20px 20px;display:flex;flex-direction:column}.eyebrow{font-size:11px;letter-spacing:1.6px;font-weight:700;color:var(--teal)}h2{font:700 22px Manrope,sans-serif;margin:9px 0}p{line-height:1.6}.muted{color:var(--muted)}.intro{font-size:14px;margin:8px 0 32px}.sectionlabel{font-size:11px;letter-spacing:1.2px;font-weight:700;color:#7a8580;display:flex;justify-content:space-between;margin-bottom:13px}.sectionlabel span{font-size:10px;color:#95a19b}nav{display:grid;gap:7px}.projectbtn{display:flex;text-align:left;gap:12px;align-items:center;padding:13px 11px;border:1px solid transparent;background:transparent;border-radius:8px}.projectbtn .num{font:500 13px monospace;color:#99a49e}.projectbtn strong{display:block;font-size:14px;font-weight:600}.projectbtn small{display:block;font-size:12px;color:#8b9690;margin-top:4px}.projectbtn.active{background:#e9f2ed;border-color:#d4e4db;color:var(--teal)}.projectbtn.active .num{color:var(--teal)}.free{background:transparent;text-align:left;margin:23px 0 30px;border-style:dashed;font-weight:600;padding:14px}.free span{display:block;font-size:12px;font-weight:400;color:var(--muted);margin:7px 0 0 19px}.kit{background:#f5f7f4;border-radius:10px;padding:18px;margin-top:auto}.kit h3{font-size:16px;margin:10px 0}.kit p{font-size:12px;color:#78857c;line-height:1.8}.tag{font-size:10px;background:#e5ece5;color:#697d6b;padding:4px 7px;border-radius:4px}.credit{font-size:12px;margin:26px 0 0;color:#738077}.credit span{display:block;font-size:11px;margin-top:5px;color:#9aa49e}main{padding:30px 30px 16px;min-width:0}.projecthead{display:flex;align-items:center;gap:9px;margin-bottom:25px}.projecthead>div{flex:1}.projecthead h1{font:800 29px Manrope,sans-serif;letter-spacing:-1px;margin:8px 0}.projecthead p{font-size:14px;color:#7a867e;margin:0}.projecthead button,.import{font-size:12px;white-space:nowrap}.workspace{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr);gap:18px}.benchpanel,.codepanel{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:white}.toolbar{height:53px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid var(--line);gap:5px}.benchlabel{font-size:14px;font-weight:600;display:flex;align-items:center;gap:8px;white-space:nowrap}.squareicon{color:var(--teal);font-size:23px}.pill{font-size:10px;border-radius:4px;background:#eff3ef;padding:4px 6px;color:#8a968c}.tools{display:flex;gap:3px}.tools button{font-size:11px;padding:6px;border:0;color:#77847c}.benchviewport{height:355px;position:relative;overflow:hidden;background-color:#edf1ec;background-image:radial-gradient(#c9d4ca .85px,transparent .85px);background-size:16px 16px}#bench{width:800px;height:430px;position:absolute;transform-origin:top left}#parts{position:absolute;inset:0;pointer-events:none}.part{position:absolute;pointer-events:auto;user-select:none}.part.selected{outline:2px dashed #178674;outline-offset:13px}.part .handle{position:absolute;top:-30px;left:0;display:flex;align-items:center;gap:8px;font-size:12px;color:#687e6f;white-space:nowrap;cursor:grab;touch-action:none}.part .handle button{font-size:11px;padding:1px 5px;background:#f8fbf7}.part .label{margin-top:13px;font-size:11px;color:#637869;letter-spacing:1px;text-align:center}.pin{position:absolute;padding:0;width:10px;height:10px;min-width:0;border:1px solid #f5d580;border-radius:50%;background:#22382ccc;transform:translate(-50%,-50%);z-index:3}.pin:hover,.pin:focus-visible,.pin.pending{background:#ffcf60;outline:3px solid #f4c76066}.pin::after{content:attr(data-label);display:none;position:absolute;bottom:15px;left:-10px;background:#203b30;color:white;padding:5px 8px;border-radius:3px;font-size:12px;white-space:nowrap;pointer-events:none}.pin:hover::after,.pin:focus-visible::after{display:block}#wires{position:absolute;inset:0;overflow:visible;z-index:2;pointer-events:none}#wires path{pointer-events:stroke;cursor:pointer;stroke-width:3.5;fill:none;stroke-linejoin:round;filter:drop-shadow(0px 2px 1px #0002)}#wires path:hover{stroke-width:7}.benchcorner{position:absolute;left:15px;bottom:14px;pointer-events:none;font:600 9px monospace;letter-spacing:1.4px;color:#8e9f90}.benchcorner span{display:block;font-size:8px;letter-spacing:1px;margin-top:4px}.wirebar{display:flex;gap:8px;align-items:center;justify-content:space-between;padding:10px 14px;background:#f8faf7;font-size:11px;color:#718275;border-top:1px solid var(--line);min-height:39px}.wirebar label{display:flex;align-items:center;gap:7px}.wirebar input{width:20px;height:20px;padding:0;border:0;background:none}.wirebar button{font-size:11px;padding:4px}.runbar{padding:13px;display:flex;gap:9px;align-items:center;border-top:1px solid var(--line)}.primary{background:var(--teal);border-color:var(--teal);color:white;font-size:12px;padding:11px 14px}.primary:hover{background:#0b6356;color:white}.primary.running{background:#b95839;border-color:#b95839}.runbar>button:not(.primary){font-size:11px}.runbar>span{font-size:10px;color:var(--muted)}#clock{margin-left:auto;font:11px monospace}.componenttray{padding:15px 15px 12px;border-top:1px solid var(--line)}.componenttray .sectionlabel{font-size:9px;margin-bottom:8px}#drawer{display:flex;gap:6px;overflow-x:auto}#drawer button{background:#f8faf7;border:1px solid #e9eee7;flex:1;min-width:68px;display:flex;flex-direction:column;align-items:center;font-size:10px;gap:5px;padding:8px 5px}#drawer .thumb{height:32px;display:flex;align-items:center;justify-content:center;pointer-events:none}#drawer .thumb>*{transform:scale(.5)}.codepanel{display:flex;flex-direction:column;background:#fcfdfb}.codetitle{height:53px;display:flex;align-items:center;justify-content:space-between;padding:0 16px;border-bottom:1px solid var(--line);font-size:14px}.codetitle>span:first-child{color:var(--teal)}.codetitle b{color:var(--ink);margin-left:7px}.lang{font-size:10px;color:#8a978c}.filetab{height:41px;background:#f2f5f0;display:flex;align-items:center;gap:8px;padding:0 14px;font:11px monospace}.dot{width:6px;height:6px;border-radius:50%;background:#d29f48}.filetab button{margin-left:auto;font:10px 'DM Sans',sans-serif;padding:3px 5px;background:transparent;border:0;color:#7b8b7c}.editorwrap{display:flex;height:325px;padding:18px 12px 18px 0;flex:1;min-height:250px}#lines{font:12px/1.85 monospace;width:39px;flex-shrink:0;color:#b1bbae;text-align:right;padding-right:13px;overflow:hidden}textarea{width:100%;resize:none;border:0;outline:0;background:transparent;color:#2c6954;font:12px/1.85 'Consolas',monospace;white-space:pre;tab-size:2}textarea:focus{box-shadow:inset 2px 0 #e1ece2}.monitorhead{padding:10px 15px;font-size:11px;display:flex;align-items:center;justify-content:space-between;background:#f1f5ef;border-top:1px solid var(--line)}.monitorhead button{font-size:10px;padding:2px 5px;border:0;background:transparent;color:#899884}#monitor{height:86px;max-height:86px;overflow:auto;font:11px/1.6 monospace;color:#7d8e7b;white-space:pre-wrap;margin:0;padding:12px}.codefoot{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);padding:8px 12px;font-size:10px;color:#99a592}.codefoot button{font-size:10px;padding:3px;border:0;background:transparent;color:#607b61}.learning{margin-top:24px}.learnhead{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.learnhead h2{font-size:17px}.learnhead span{font-size:12px;color:#8a978e}#steps{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.step{background:white;border:1px solid var(--line);border-radius:9px;padding:16px;display:flex;gap:11px;align-items:flex-start}.step input{accent-color:var(--teal);margin-top:4px;width:17px;height:17px;flex-shrink:0}.step strong{font-size:13px}.step p{font-size:12px;color:#7e8c81;line-height:1.7;margin:5px 0 0}.step button{font-size:11px;margin-top:9px;padding:6px 9px;color:var(--teal)}.challenge{display:flex;gap:14px;background:#ecf1e7;border:1px solid #dde6d5;border-radius:8px;padding:13px 18px;margin-top:14px;align-items:center}.challengeicon{font-size:30px;color:#839764}.challenge strong{font-size:12px;color:#617c49}.challenge p{font-size:12px;margin:3px 0;color:#7f8e71}footer{display:flex;justify-content:space-between;color:#99a296;font-size:10px;margin-top:22px;gap:10px}footer a{color:inherit}dialog{border:1px solid var(--line);border-radius:16px;max-width:620px;width:calc(100% - 30px);padding:30px;color:var(--ink);box-shadow:0 25px 100px #0003}dialog::backdrop{background:#142d2470;backdrop-filter:blur(3px)}dialog h2{margin:0 30px 18px 0}dialog p,dialog li{font-size:15px;line-height:1.75}dialog code{background:#edf4ed;padding:2px 5px;border-radius:3px;font-size:13px}.close{position:absolute;right:15px;top:15px;border:0}.connectionlist{display:grid;gap:7px;max-height:240px;overflow:auto;margin:14px 0}.connectionlist>div{background:#f1f5ef;padding:9px 12px;font:13px monospace}.success{color:var(--teal)}.issue{color:#a75a35}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%) translateY(100px);background:#244a3d;color:white;padding:13px 22px;border-radius:9px;font-size:14px;z-index:20;transition:transform .2s;max-width:90vw}#toast.show{transform:translateX(-50%) translateY(0)}.partcontrol{display:block;position:absolute;top:110%;min-width:110px;background:#fff9;font-size:11px;padding:5px;border-radius:5px}.partcontrol input{width:100px;accent-color:var(--teal)}
@media(min-width:1550px){main{padding:35px 40px}.benchviewport{height:430px}.editorwrap{height:400px}.projecthead h1{font-size:34px}.workspace{grid-template-columns:minmax(0,1.7fr) minmax(320px,1fr)}}@media(max-width:1150px){.app{grid-template-columns:205px minmax(0,1fr)}main{padding:24px 18px}.left{padding:25px 13px}.workspace{grid-template-columns:minmax(0,1.25fr) minmax(260px,1fr)}.runbar{flex-wrap:wrap}.runbar #status{display:none}.tools button{font-size:10px}.benchviewport{height:300px}.projecthead h1{font-size:25px}.topnote{display:none}header button{margin-left:auto}}@media(max-width:900px){.workspace{grid-template-columns:1fr}.codepanel{min-height:420px}.editorwrap{height:260px;flex:auto}.benchviewport{height:350px}#steps{grid-template-columns:1fr}.app{grid-template-columns:185px 1fr}.projecthead{flex-wrap:wrap}.projecthead>div{flex-basis:100%}.projecthead h1{font-size:27px}.projecthead p{margin-bottom:8px}}@media(max-width:620px){header{height:67px;padding:0 15px;gap:12px}.brand{font-size:21px}.labname{font-size:13px}.topnote,.divider,header button span{display:none}.app{display:block}.left{padding:17px 15px;border-right:0;border-bottom:1px solid var(--line)}.left>h2,.left>.eyebrow,.intro,.kit,.credit,.left>.sectionlabel{display:none}nav{display:flex;overflow-x:auto;gap:7px}.projectbtn{flex-shrink:0;padding:9px 12px;border-color:var(--line)}.projectbtn small{display:none}.projectbtn .num{font-size:11px}.projectbtn strong{font-size:12px}.free{margin:10px 0 0;padding:7px 10px;font-size:12px;align-self:flex-start}.free span{display:none}main{padding:22px 13px}.projecthead h1{font-size:26px}.benchviewport{height:270px}.tools button{padding:5px;font-size:10px}.toolbar{padding:0 10px}.pill{display:none}.benchlabel{font-size:12px}.runbar button{font-size:11px}.wirebar{font-size:10px}.benchcorner{font-size:8px}.projecthead p{font-size:13px}footer{flex-direction:column}.learning{margin-top:18px}.editorwrap textarea,#lines{font-size:13px}.componenttray{padding:13px 10px}}
/* Keep everyday controls legible on dense workbenches. */
.projectbtn strong,.benchlabel,.runbar .primary,.runbar>button:not(.primary){font-size:14px}.projectbtn small,.wirebar,.tools button,.filetab,.monitorhead,.codefoot,.step p,.step strong,.challenge p,.challenge strong{font-size:13px}.projecthead button,.import,.step button{font-size:14px}.editorwrap textarea,#lines{font-size:13px}#drawer button{font-size:12px}.tools button{padding:5px}.runbar{flex-wrap:wrap}.wirebar{min-height:44px}.step p{line-height:1.7}.codefoot button,.filetab button,.monitorhead button{font-size:12px}#monitor{font-size:12px}.toolbar{height:auto;min-height:53px;flex-wrap:wrap;padding-top:8px;padding-bottom:8px}.codepanel .codetitle{min-height:53px}.step{min-width:0}.projecthead p{font-size:16px}.intro{font-size:14px}@media(max-width:620px){.projecthead p{font-size:14px}.tools button{font-size:12px}.wirebar{font-size:12px}.projectbtn strong{font-size:13px}.runbar .primary,.runbar>button:not(.primary){font-size:13px}}


/* ===== SOURCE: arduino/workbench-v080.css ===== */
/* AIM STEM LAB v0.8.0 — Arduino Workbench application redesign */
:root{
  --aim-ink:#0d2f3a;
  --aim-deep:#092833;
  --aim-deeper:#061d26;
  --aim-teal:#078b8f;
  --aim-teal-2:#0aa0a5;
  --aim-lime:#b9df34;
  --aim-paper:#f5f8f9;
  --aim-line:#d5e2e6;
  --aim-muted:#607983;
  --aim-canvas:#082a35;
  --aim-canvas-2:#0b3440;
  --sidebar-w:218px;
  --sidebar-collapsed:58px;
  --inspector-w:392px;
  --splitter-w:8px;
  --status-h:36px;
}
*{box-sizing:border-box}
html,body{height:100%;margin:0}
body.arduino-page{
  height:100dvh;
  min-height:100dvh;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  background:#eaf1f3;
  color:var(--aim-ink);
  font-family:Inter,"Segoe UI",Arial,sans-serif;
}
.arduino-page #platform-nav{flex:0 0 auto;min-width:0}
.arduino-page .aim-nav{min-height:62px;padding:9px 22px;gap:16px}
.arduino-page .aim-nav .aim-brand b{font-size:18px;padding:8px 10px}
.arduino-page .aim-nav .aim-brand span{font-size:13px}
.arduino-page .aim-nav nav a{min-height:38px;padding:8px 10px;font-size:13px}
.arduino-page .aim-version{font-size:11px}
.arduino-page button,.arduino-page .import{font-family:inherit}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.legacy-controls{position:fixed;left:-9999px;top:-9999px;width:1px;height:1px;overflow:hidden}

/* ---------- application shell ---------- */
.arduino-studio{
  flex:1 1 auto;
  min-height:0;
  display:grid;
  grid-template-rows:auto minmax(0,1fr);
  background:#edf3f5;
  overflow:hidden;
}
.studio-command{
  position:relative;
  z-index:30;
  display:grid;
  grid-template-columns:auto minmax(260px,1fr) auto;
  grid-template-rows:auto 30px;
  column-gap:18px;
  min-height:92px;
  background:#fff;
  border-bottom:1px solid var(--aim-line);
  box-shadow:0 2px 10px rgba(10,45,56,.05);
  padding:10px 16px 0;
}
.studio-identity{
  grid-row:1;
  display:flex;
  align-items:center;
  gap:10px;
  align-self:center;
  min-width:max-content;
}
.studio-mark{
  width:38px;height:38px;border-radius:10px;
  display:grid;place-items:center;
  background:#0b3b47;
  color:var(--aim-lime);
  font-size:25px;font-weight:800;
  border:1px solid #1c5866;
}
.studio-name{display:flex;flex-direction:column;line-height:1.08}
.studio-name small{font-size:8px;letter-spacing:1.4px;color:#688690;font-weight:800;margin-bottom:4px}
.studio-name strong{font-size:16px;letter-spacing:-.25px;color:#123c48}
.studio-project{grid-row:1;min-width:0;align-self:center}
.project-title-row{display:flex;align-items:center;gap:10px;min-width:0;margin-bottom:2px}
.project-kicker{font-size:8.5px;letter-spacing:1.15px;color:#0b7f84;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stage-summary{font-size:9px;font-weight:750;color:#5c7781;border-left:1px solid #dce6e9;padding-left:10px;white-space:nowrap}
.project-main-row{display:flex;align-items:baseline;gap:12px;min-width:0}
.project-main-row h1{margin:0;font-size:20px;line-height:1.05;letter-spacing:-.55px;color:#0d3340;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.project-main-row p{margin:0;font-size:11px;color:#607b84;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.project-meta-row{display:flex;align-items:center;gap:6px;margin-top:5px;overflow:hidden}
.project-meta-row span{display:inline-flex;align-items:center;min-height:20px;padding:3px 7px;border-radius:999px;background:#eef4f6;color:#607983;font-size:8.5px;font-weight:650;white-space:nowrap}
.project-meta-row b{color:#285765;font-weight:750}
.studio-actions{grid-row:1;display:flex;align-items:center;justify-content:flex-end;gap:6px;align-self:center;min-width:max-content}
.studio-actions button,.studio-actions .import{
  min-height:34px;
  height:34px;
  border:1px solid #d4e2e6;
  border-radius:9px;
  background:#fff;
  color:#214d59;
  padding:5px 9px;
  font-size:10px;
  font-weight:700;
  display:inline-flex;align-items:center;justify-content:center;gap:4px;
  cursor:pointer;
}
.studio-actions button:hover,.studio-actions .import:hover{border-color:#97c1c6;background:#f5fbfb}
.studio-actions .run-action{
  min-width:84px;
  background:var(--aim-teal);
  color:#fff;
  border-color:var(--aim-teal);
  box-shadow:0 5px 14px rgba(7,139,143,.16);
}
.studio-actions .run-action:hover{background:#066f73;border-color:#066f73}
.studio-actions .run-action.running{background:#a7473b;border-color:#a7473b}
.mobile-tool{display:none!important}

/* thin six-step progress within command bar */
.studio-progress{
  grid-column:1/-1;
  grid-row:2;
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:0;
  margin:0;
  padding:0;
  min-height:30px;
  height:30px;
  align-self:end;
  border-top:1px solid #edf2f4;
}
.studio-progress .labpath__stage{
  position:relative;
  display:flex;align-items:center;justify-content:center;gap:6px;
  min-width:0;
  height:30px;
  color:#708791;
  font-size:9px;
  font-weight:700;
  background:transparent;
  border:0;
  border-bottom:2px solid #dce7ea;
}
.studio-progress .labpath__stage i{
  display:grid;place-items:center;
  width:17px;height:17px;border-radius:50%;
  background:#e8eff1;color:#67808a;
  font-size:7.5px;font-style:normal;font-weight:850;
}
.studio-progress .labpath__stage b{font-size:8.5px;white-space:nowrap}
.studio-progress .labpath__stage small{display:none}
.studio-progress .labpath__stage.is-ready{border-bottom-color:#7bc6bd;color:#37646d}
.studio-progress .labpath__stage.is-ready i{background:#d9efea;color:#08776c}
.studio-progress .labpath__stage.is-active{border-bottom-color:var(--aim-lime);color:#173d46;background:linear-gradient(180deg,transparent,rgba(185,223,52,.08))}
.studio-progress .labpath__stage.is-active i{background:var(--aim-lime);color:#1e392e}

/* ---------- body ---------- */
.studio-body{
  min-height:0;
  display:grid;
  grid-template-columns:var(--sidebar-w) minmax(0,1fr);
  overflow:hidden;
}
.studio-sidebar{
  position:relative;
  min-width:0;
  min-height:0;
  display:flex;
  flex-direction:column;
  background:#0c2d38;
  color:#d7e8eb;
  border-right:1px solid #183f4b;
  overflow:hidden;
  z-index:20;
}
.sidebar-head{
  flex:0 0 50px;
  display:flex;align-items:center;gap:6px;
  padding:7px 8px;
  border-bottom:1px solid #1d4551;
  background:#0d303b;
}
.sidebar-tabs{display:grid;grid-template-columns:1fr 1fr;gap:3px;flex:1;min-width:0;padding:3px;background:#082630;border-radius:9px}
.sidebar-tabs button{min-height:32px;border:0;border-radius:7px;background:transparent;color:#7fa0a8;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.65px;padding:5px}
.sidebar-tabs button[aria-selected="true"]{background:#173e49;color:#fff}
.sidebar-toggle{width:34px;height:34px;min-height:34px;padding:0;border:1px solid #315864;border-radius:8px;background:#123a46;color:#afc9ce;font-size:18px}
.sidebar-toggle:hover{background:#194955;color:#fff}
.sidebar-pane{display:none;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:10px 8px 12px;flex:1 1 auto}
.sidebar-pane.is-active{display:block}
.sidebar-caption{display:flex;align-items:center;justify-content:space-between;gap:7px;margin:2px 4px 8px;color:#7699a2;font-size:8px;text-transform:uppercase;letter-spacing:.75px}
.sidebar-caption strong{color:#9db9bf;font-size:8px}
.project-list{display:grid;gap:4px}
.arduino-page .projectbtn{
  min-height:54px;
  display:flex;align-items:center;gap:9px;
  width:100%;
  text-align:left;
  padding:8px 8px;
  border:1px solid transparent;
  border-radius:9px;
  background:transparent;
  color:#d1e3e6;
}
.arduino-page .projectbtn:hover{background:#133943;border-color:#2b5662}
.arduino-page .projectbtn.active{background:#153f49;border-color:#37636e;box-shadow:inset 3px 0 var(--aim-lime)}
.arduino-page .projectbtn .num{flex:0 0 24px;color:#6f969f;font:600 10px ui-monospace,SFMono-Regular,Consolas,monospace}
.arduino-page .projectbtn.active .num{color:var(--aim-lime)}
.arduino-page .projectbtn strong{display:block;color:#e9f3f4;font-size:11px;line-height:1.2}
.arduino-page .projectbtn small{display:block;color:#779ca4;font-size:9px;margin-top:4px;white-space:nowrap}
.arduino-page .free{width:100%;margin:8px 0 0;padding:10px 11px;border:1px dashed #466b75;border-radius:10px;background:#092630;color:#e4f0f2;text-align:left;min-height:52px}
.arduino-page .free:hover{background:#123844;border-color:#6a939c}
.arduino-page .free b{display:block;font-size:11px}
.arduino-page .free span{display:block;margin-top:4px;font-size:9px;color:#7899a1}
.part-search{display:block;margin-bottom:9px}
.part-search input{width:100%;height:34px;border:1px solid #31545f;border-radius:8px;background:#08252f;color:#e7f1f3;padding:0 10px;font-size:10px;outline:0}
.part-search input::placeholder{color:#678891}
.part-search input:focus{border-color:#69aeb2;box-shadow:0 0 0 2px rgba(95,199,205,.15)}
.parts-library{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.arduino-page #drawer button{
  min-width:0!important;
  min-height:72px!important;
  width:100%;
  margin:0;
  padding:7px 4px!important;
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
  border:1px solid #2a515d!important;
  border-radius:9px!important;
  background:#10333f!important;
  color:#cfe1e4!important;
  font-size:8.5px!important;
  line-height:1.15;
  box-shadow:none!important;
}
.arduino-page #drawer button:hover{background:#164450!important;border-color:#5a8790!important;color:#fff!important}
.arduino-page #drawer .thumb{height:36px;width:48px;display:grid;place-items:center;pointer-events:none}
.arduino-page #drawer .thumb>*{transform:scale(.48);transform-origin:center}
.parts-note{margin:10px 4px;color:#73959e;font-size:9px;line-height:1.55}
.sidebar-foot{flex:0 0 auto;padding:9px 12px;border-top:1px solid #1c4350;color:#648791;font-size:8px}
.sidebar-backdrop{display:none}

body.sidebar-collapsed .studio-body{grid-template-columns:var(--sidebar-collapsed) minmax(0,1fr)}
body.sidebar-collapsed .sidebar-head{padding:7px 6px;justify-content:center}
body.sidebar-collapsed .sidebar-tabs{display:none}
body.sidebar-collapsed .sidebar-toggle{transform:rotate(180deg)}
body.sidebar-collapsed .sidebar-caption,body.sidebar-collapsed .sidebar-foot,body.sidebar-collapsed .part-search,body.sidebar-collapsed .parts-note{display:none}
body.sidebar-collapsed .sidebar-pane{padding:8px 5px}
body.sidebar-collapsed .projectbtn{min-height:46px;padding:6px 3px;justify-content:center}
body.sidebar-collapsed .projectbtn>span:last-child{display:none}
body.sidebar-collapsed .projectbtn .num{flex:0 0 auto;text-align:center;font-size:10px}
body.sidebar-collapsed .free{min-height:42px;padding:6px;text-align:center}
body.sidebar-collapsed .free b{font-size:0}
body.sidebar-collapsed .free b::after{content:'+';font-size:18px}
body.sidebar-collapsed .free span{display:none}
body.sidebar-collapsed .parts-library{grid-template-columns:1fr}
body.sidebar-collapsed #drawer button{min-height:46px!important;height:46px!important;font-size:0!important;padding:3px!important}
body.sidebar-collapsed #drawer .thumb{height:35px;width:43px}

/* ---------- main work zone ---------- */
.studio-main{min-width:0;min-height:0;overflow:hidden;padding:0;margin:0;max-width:none;width:auto;background:#dbe7ea}
.workzone{
  min-width:0;
  min-height:0;
  height:100%;
  display:grid;
  grid-template-columns:minmax(420px,1fr) var(--splitter-w) var(--inspector-w);
  overflow:hidden;
  background:#dce7ea;
}
.benchpanel{
  position:relative;
  min-width:0;min-height:0;
  display:flex;flex-direction:column;
  background:#fff;
  border:0;
  border-radius:0;
  overflow:hidden;
}
.benchviewport{
  position:relative;
  flex:1 1 auto;
  min-width:0;min-height:0;
  overflow:auto;
  overscroll-behavior:contain;
  background-color:var(--aim-canvas);
  background-image:radial-gradient(rgba(119,167,178,.26) .8px,transparent .8px),linear-gradient(rgba(255,255,255,.012),rgba(255,255,255,.012));
  background-size:18px 18px;
  touch-action:none;
  cursor:grab;
  scrollbar-color:#426570 #0a303b;
  scrollbar-width:thin;
}
.benchviewport.is-panning{cursor:grabbing;user-select:none}
.benchviewport::-webkit-scrollbar{width:10px;height:10px}.benchviewport::-webkit-scrollbar-track{background:#092d38}.benchviewport::-webkit-scrollbar-thumb{background:#3e626d;border-radius:10px;border:2px solid #092d38}
#benchstage{position:relative;min-width:0;min-height:0;margin:0}
#bench{width:var(--aim-bench-w,800px);height:var(--aim-bench-h,430px);position:absolute;left:0;top:0;transform-origin:top left}
#parts{position:absolute;inset:0;pointer-events:none}
.part{position:absolute;pointer-events:auto;user-select:none}
.part.selected{outline:2px dashed var(--aim-lime);outline-offset:12px}
.part .handle{position:absolute;top:-31px;left:0;display:flex;align-items:center;gap:6px;color:#bfd4d9;font-size:11px;white-space:nowrap;cursor:grab;touch-action:none;background:rgba(8,32,41,.76);border:1px solid rgba(104,150,161,.34);border-radius:7px;padding:3px 5px;backdrop-filter:blur(4px)}
.part .handle button{min-width:23px;min-height:23px;padding:0 4px;border-radius:5px;background:#143d49;border:1px solid #466873;color:#e0edef;font-size:11px}
.part .handle button:hover{background:#20515e}
.part .label{color:#bcd0d5}
.pin{min-height:0!important;width:11px;height:11px;padding:0;border:1px solid #ffd56f;border-radius:50%;background:#17313b;box-shadow:0 0 0 1px #17313b;z-index:3}
.pin:hover,.pin:focus-visible,.pin.pending{background:#ffce5b;outline:3px solid rgba(255,206,91,.36)}
.pin::after{font-size:11px;background:#fff;color:#173d48;border-radius:5px;box-shadow:0 5px 14px rgba(0,0,0,.18)}
#wires{position:absolute;inset:0;overflow:visible;z-index:2;pointer-events:none}
#wires path{pointer-events:stroke;cursor:pointer;stroke-width:3.5;fill:none;stroke-linejoin:round;filter:drop-shadow(0 2px 1px #0003)}
#wires path:hover{stroke-width:7}
.partcontrol{background:#edf6f8!important;color:#214b57!important;border:1px solid #a4c4cb!important;border-radius:7px!important;font-size:10px!important}

.canvas-label{
  position:absolute;z-index:14;left:12px;top:12px;
  display:flex;align-items:center;gap:7px;
  min-height:30px;padding:5px 9px;
  border:1px solid rgba(115,158,168,.27);
  border-radius:8px;
  background:rgba(6,28,36,.72);
  color:#d6e5e8;
  backdrop-filter:blur(5px);
  pointer-events:none;
  font-size:9px;
}
.canvas-label>span:first-child{color:#55bec3;font-size:14px}.canvas-label strong{font-size:10px}.canvas-partcount{color:#86a5ad;font-size:8px;border-left:1px solid #31515a;padding-left:7px}
.canvas-tools{
  position:absolute;z-index:16;display:flex;align-items:center;gap:4px;
  padding:4px;border:1px solid rgba(111,154,165,.27);border-radius:9px;
  background:rgba(8,31,40,.78);backdrop-filter:blur(7px);box-shadow:0 4px 14px rgba(0,0,0,.12)
}
.canvas-tools button{min-width:30px;height:30px;min-height:30px;padding:0 7px;border:1px solid #355864;border-radius:7px;background:#123b47;color:#d7e8eb;font-size:11px}
.canvas-tools button:hover{background:#1a4b58;border-color:#65909a;color:#fff}
.canvas-tools .tool-labelled{min-width:auto;padding:0 9px;font-weight:700}
.canvas-tools--top-left{left:12px;top:50px}
.canvas-tools--top-right{right:12px;top:12px}
.canvas-tools--zoom{right:12px;bottom:14px}
.canvas-tools--zoom #zoomlevel{min-width:42px;text-align:center;color:#b7cbd0;font:700 9px ui-monospace,SFMono-Regular,Consolas,monospace}
.tool-separator{width:1px;height:20px;background:#36535d;margin:0 1px}
.wire-colour{width:30px;height:30px;border:1px solid #355864;border-radius:7px;background:#123b47;display:grid;place-items:center;overflow:hidden;cursor:pointer}
.wire-colour span{position:absolute;left:-9999px}.wire-colour input{width:34px;height:34px;border:0;padding:0;background:none;cursor:pointer}
.benchcorner{position:absolute;z-index:5;left:14px;bottom:14px;pointer-events:none;color:#557b86;font:700 8px ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:1.25px}.benchcorner span{display:block;font-size:7px;margin-top:3px;color:#456c77}

/* status bar */
.studio-status{
  flex:0 0 var(--status-h);
  height:var(--status-h);
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  padding:0 8px 0 10px;
  background:#f7fafb;
  border-top:1px solid #ccdce0;
  color:#55717b;
  font-size:9px;
  min-width:0;
}
.status-primary{display:flex;align-items:center;gap:6px;white-space:nowrap}.status-primary i{width:7px;height:7px;border-radius:50%;background:var(--aim-lime);box-shadow:0 0 0 3px rgba(185,223,52,.12)}.status-primary strong{font-size:9px;color:#315c67;font-weight:750}
.status-context{min-width:0;overflow:hidden}
#wirehint{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#617c85}
.livebar{display:none;align-items:center;gap:8px;min-width:0;background:transparent!important;border:0!important;padding:0!important;color:#57727b!important}
.livebar #readings{display:flex;gap:8px;align-items:center;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:9px;color:#4f6e77!important}
.livebar .reading{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}.livebar .reading i{width:7px;height:7px;border-radius:50%;background:#a9bdc2}.livebar .reading i.lit{background:var(--led-colour);box-shadow:0 0 7px var(--led-colour)}
#sound{min-height:25px;height:25px;padding:2px 6px;border:1px solid #d3e1e5;border-radius:6px;background:#fff;color:#58727b;font-size:8px;white-space:nowrap}
body.simulating #wirehint{display:none}body.simulating .livebar{display:flex}
.status-metrics{display:flex;align-items:center;gap:8px;white-space:nowrap}.status-metrics span{font-size:8px;color:#718991}.status-metrics b{font-size:8px;color:#54727c}.status-metrics #clock{font:700 8.5px ui-monospace,SFMono-Regular,Consolas,monospace;background:#e9f0f2;color:#315762;border-radius:999px;padding:3px 6px}
.status-metrics #check{min-height:25px;height:25px;padding:2px 7px;border:1px solid #c7dadd;border-radius:6px;background:#fff;color:#176870;font-size:8px;font-weight:700}
.hidden-instruments{display:none!important}
.bench-feedback{position:absolute;z-index:25;left:50%;bottom:calc(var(--status-h) + 12px);transform:translateX(-50%);width:min(540px,calc(100% - 24px));padding:10px 12px;border:1px solid #e2bd86;border-radius:10px;background:#fff4e4;color:#724f27;box-shadow:0 10px 30px rgba(4,28,37,.22);font-size:11px;display:flex;gap:10px}.bench-feedback[hidden]{display:none}.bench-feedback.isgood{background:#e9f6ef;border-color:#a9d4be;color:#215d49}.bench-feedback>div{flex:1}.bench-feedback ul{margin:4px 0;padding-left:17px}.bench-feedback button{min-width:28px;height:28px;min-height:28px;padding:0;border:0;background:transparent;color:inherit;font-size:18px}
.guidedstatus{position:absolute!important;z-index:24;top:56px;left:50%;transform:translateX(-50%);width:min(560px,calc(100% - 26px));display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:1px solid #9dcbd0;border-radius:10px;background:rgba(236,249,250,.96);box-shadow:0 8px 25px rgba(4,31,40,.18);color:#285963}.guidedstatus .eyebrow{font-size:7px;color:#0a7d82}.guidedstatus strong{display:block;font-size:11px;margin:2px 0}.guidedstatus div>span:last-child{font-size:9px;color:#57757d}.guidedstatus button{min-height:30px;padding:4px 8px;border:1px solid #9ec7cc;background:#fff;border-radius:7px;color:#146970;font-size:9px}

/* ---------- splitter + inspector ---------- */
.workspace-splitter{position:relative;width:var(--splitter-w);min-width:var(--splitter-w);height:100%;background:#dce7ea;cursor:col-resize;touch-action:none;z-index:18;outline:0}
.workspace-splitter::before{content:"";position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:2px;height:38px;border-radius:999px;background:repeating-linear-gradient(to bottom,#7c9aa2 0 3px,transparent 3px 7px);opacity:.75}
.workspace-splitter:hover,.workspace-splitter:focus-visible,.workspace-splitter.is-resizing{background:#cfe4e6}.workspace-splitter:focus-visible{box-shadow:inset 0 0 0 2px #0a8c90}
body.is-resizing-workspace,body.is-resizing-workspace *{cursor:col-resize!important;user-select:none!important}
.inspector{min-width:0;min-height:0;display:flex;flex-direction:column;background:#0b2631;color:#d9e7ea;overflow:hidden;border-left:1px solid #214651}
.inspector-tabs{flex:0 0 46px;height:46px;display:grid;grid-template-columns:repeat(4,1fr);background:#f4f7f8;border-bottom:1px solid #d2e0e4}
.inspector-tabs button{position:relative;min-width:0;min-height:46px;border:0;border-radius:0;background:transparent;color:#66808a;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:3px;font-size:8px}
.inspector-tabs button span{font-size:14px;line-height:1}.inspector-tabs button b{font-size:8px;font-weight:750}.inspector-tabs button[aria-selected="true"]{background:#fff;color:#087b80}.inspector-tabs button[aria-selected="true"]::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:#0b9da0}
.inspector-body{flex:1 1 auto;min-height:0;overflow:hidden;background:#0d2d38}
.lab-side-pane{display:none;height:100%;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#42636d #0d2d38}.lab-side-pane.is-active{display:block}.lab-side-pane::-webkit-scrollbar{width:8px}.lab-side-pane::-webkit-scrollbar-track{background:#0c2934}.lab-side-pane::-webkit-scrollbar-thumb{background:#41616b;border-radius:8px}
.inspector-pane-head{display:flex;align-items:flex-start;justify-content:space-between;gap:9px;padding:14px 14px 10px;border-bottom:1px solid #214651}.inspector-pane-head small{display:block;color:#7ca0a8;font-size:7px;letter-spacing:1px;font-weight:800}.inspector-pane-head strong{display:block;color:#f0f6f7;font-size:12px;line-height:1.35;margin-top:3px}.inspector-pane-head button{min-height:30px;padding:4px 7px;border:1px solid #315a66;border-radius:7px;background:#123945;color:#bed2d7;font-size:8px}
.guidedintro{display:flex;align-items:center;gap:8px;padding:10px 14px;border-bottom:1px solid #214651;background:#10333f}.guidedintro p{margin:0;flex:1;color:#9db7bd;font-size:9.5px;line-height:1.45}.guidedintro button{min-height:31px;padding:4px 8px;border:1px solid #4d828b;border-radius:7px;background:#164b56;color:#e7f2f3;font-size:8.5px;font-weight:750;white-space:nowrap}
.guidecard{padding:13px 14px}.learnhead{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:9px}.learnhead h2{margin:0;color:#fff;font-size:12px}.learnhead span{color:#7899a2;font-size:8px}
#steps{display:grid;gap:7px}.step{display:flex;align-items:flex-start;gap:8px;padding:10px;border:1px solid #224a56;border-radius:9px;background:#0b2732;color:#c8dadd}.step input{width:16px;height:16px;accent-color:#0c9b9f;margin-top:2px;flex:0 0 auto}.step strong{display:block;color:#e9f2f4;font-size:9.5px;line-height:1.35}.step p{margin:3px 0 0;color:#89a7ae;font-size:8.8px;line-height:1.5}.step button{min-height:28px;margin-top:6px;padding:3px 7px;border:1px solid #355f6a;border-radius:6px;background:#123944;color:#a9c9cf;font-size:8px}

/* code */
.code-pane{overflow:hidden!important}.codepanel{height:100%;min-height:0;display:flex;flex-direction:column;background:#0c2833;border:0;border-radius:0;overflow:hidden}.filetab{flex:0 0 42px;height:42px;display:flex;align-items:center;gap:7px;padding:0 10px;background:#09232d;border-bottom:1px solid #1e4550;color:#adc5ca;font:9px ui-monospace,SFMono-Regular,Consolas,monospace}.filetab .dot{width:6px;height:6px;border-radius:50%;background:#e2a338}.filetab strong{font-weight:600}.filetab button{min-height:28px;height:28px;padding:3px 6px;border:1px solid #31535e;border-radius:7px;background:#123743;color:#a9c3c9;font-size:8px}.filetab #downloadino{margin-left:auto}.experiment{flex:0 0 auto;padding:9px 10px;background:#103641;border-bottom:1px solid #27505b;color:#a9c3c9}.experiment strong,.experiment label{color:#f1f6f7;font-size:9px}.experiment p{margin:4px 0 0;color:#85a6ad;font-size:8.5px;line-height:1.4}.experimenttop{display:flex;justify-content:space-between;gap:8px;font-size:9px}.experiment output{background:#eaf5f5;color:#24545e;border-radius:5px;padding:2px 5px;font:700 8px ui-monospace,SFMono-Regular,Consolas,monospace}.experiment input{width:100%;height:23px;accent-color:#0a9b9f}.editorwrap{flex:1 1 auto;min-height:0;display:flex;padding:10px 8px 10px 0;background:#0a222c}.editorwrap #lines{flex:0 0 34px;width:34px;text-align:right;padding-right:8px;overflow:hidden;color:#456d77;font:10.5px/1.72 ui-monospace,SFMono-Regular,Consolas,monospace}.editorwrap textarea#code{flex:1;width:100%;min-height:0;resize:none;border:0;outline:0;background:transparent;color:#a9e2c8;caret-color:#fff;font:11.5px/1.72 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre;tab-size:2;padding:0}.editorwrap textarea#code:focus{box-shadow:inset 2px 0 var(--aim-lime)}.codefoot{flex:0 0 32px;height:32px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 9px;border-top:1px solid #1f4651;background:#09242e;color:#668c95;font-size:7.5px}.codefoot button{border:0;background:transparent;color:#9ebdc3;font-size:8px;padding:2px}

/* monitor */
.monitor-pane{background:#091f29}.monitorhead{height:42px;display:flex;align-items:center;justify-content:space-between;padding:0 12px;border-bottom:1px solid #1e4550;background:#0e313c;color:#bfd3d7;font-size:10px}.monitorhead button{min-height:28px;padding:3px 7px;border:1px solid #315863;border-radius:7px;background:#123a46;color:#a8c4ca;font-size:8px}.monitor-pane #monitor{height:calc(100% - 72px);max-height:none;margin:0;padding:12px;overflow:auto;background:#071b24;color:#8ed0ac;white-space:pre-wrap;font:10.5px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace}.monitor-foot{height:30px;display:flex;align-items:center;justify-content:space-between;padding:0 10px;border-top:1px solid #1c3e49;background:#0a2630;color:#63858e;font-size:7.5px}

/* learn */
.learn-pane{padding:13px;background:#f6f9fa;color:#173e49}.understandcard,.engineeringnote{background:#fff;border:1px solid #d5e4e8;border-radius:10px;padding:13px;box-shadow:0 4px 14px rgba(12,48,59,.045)}.understandcard .eyebrow,.engineeringnote .eyebrow{font-size:7px;letter-spacing:1px;font-weight:850;color:#087d81}.understandcard h2,.engineeringnote h2{margin:4px 0 7px;font-size:14px;color:#153f4a}.understandcard p,.notebookprompt{margin:0;color:#5b7680;font-size:9.5px;line-height:1.55}.understandcard details{margin-top:10px;padding-top:9px;border-top:1px solid #e0eaed}.understandcard summary{cursor:pointer;color:#176b72;font-size:9px;font-weight:750}.understandcard details p{margin-top:7px}.challenge{display:flex;gap:8px;margin:9px 0;padding:10px 11px;border:1px solid #d7e6b6;border-radius:9px;background:#f3f8e5}.challengeicon{color:#79902f;font-size:18px}.challenge strong{color:#647b28;font-size:7.5px;letter-spacing:.8px}.challenge p{margin:3px 0 0;color:#5f7039;font-size:9px;line-height:1.45}.engineeringnote__head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.notebookbadge{font-size:7px;background:#e9f2f3;color:#4b7079;border-radius:999px;padding:3px 6px;white-space:nowrap}.engineeringnote textarea{width:100%;min-height:90px;margin-top:8px;resize:vertical;border:1px solid #d3e1e5;border-radius:8px;background:#f8fbfb;color:#173e48;padding:9px;font-size:9.5px;line-height:1.5}.notebookactions{display:flex;align-items:center;gap:5px;margin-top:7px;flex-wrap:wrap}.notebookactions span{flex:1 1 100%;color:#728b93;font-size:7.5px}.notebookactions button{min-height:28px;padding:3px 7px;border:1px solid #d0dfe3;border-radius:7px;background:#fff;color:#456973;font-size:8px}.notebookactions .primary{background:#07878b;border-color:#07878b;color:#fff}

/* ---------- modal / toast ---------- */
.arduino-page dialog{max-width:620px;width:calc(100% - 28px);max-height:88dvh;overflow:auto;border:1px solid #cbdce1;border-radius:15px;padding:24px;color:#173e49;box-shadow:0 30px 100px rgba(5,25,33,.35)}
.arduino-page dialog::backdrop{background:rgba(3,20,27,.62);backdrop-filter:blur(3px)}
.arduino-page dialog .close{position:absolute;right:12px;top:12px;width:34px;height:34px;min-height:34px;border:0;border-radius:8px;background:#eef4f5;color:#42616a}.arduino-page dialog h2{font-size:21px;margin:0 36px 14px 0}.arduino-page dialog p,.arduino-page dialog li{font-size:14px;line-height:1.65}.arduino-page dialog button,.arduino-page dialog .primary{min-height:38px;border-radius:8px}.arduino-page dialog select{min-height:42px;font-size:14px}
#toast{position:fixed;z-index:100;left:50%;bottom:18px;transform:translate(-50%,100px);background:#123b47;color:#fff;border-radius:9px;padding:10px 16px;font-size:12px;box-shadow:0 8px 25px rgba(4,24,32,.24);transition:transform .2s;max-width:min(560px,90vw)}#toast.show{transform:translate(-50%,0)}

/* ---------- focus mode ---------- */
body.benchfocus .studio-command{display:none}
body.benchfocus .studio-body{grid-template-columns:1fr}
body.benchfocus .studio-sidebar,body.benchfocus .workspace-splitter,body.benchfocus .inspector{display:none!important}
body.benchfocus .workzone{grid-template-columns:1fr!important}
body.benchfocus .canvas-tools--top-right #focusbench{display:block}
body.benchfocus #focusbench::after{content:''}

/* ---------- responsive: compact desktop ---------- */
@media(max-width:1439px) and (min-width:1100px){
  :root{--sidebar-w:var(--sidebar-collapsed);--inspector-w:350px}
  .studio-name small{display:none}.studio-name strong{font-size:14px}
  .studio-project .project-main-row p{display:none}
  .studio-sidebar .sidebar-tabs,.studio-sidebar .sidebar-caption,.studio-sidebar .sidebar-foot,.studio-sidebar .part-search,.studio-sidebar .parts-note{display:none}
  .studio-sidebar .sidebar-head{justify-content:center;padding:7px 6px}.studio-sidebar .sidebar-toggle{transform:rotate(180deg)}
  .studio-sidebar .sidebar-pane{padding:8px 5px}.studio-sidebar .projectbtn{min-height:46px;padding:6px 3px;justify-content:center}.studio-sidebar .projectbtn>span:last-child{display:none}.studio-sidebar .projectbtn .num{flex:0 0 auto;text-align:center}.studio-sidebar .free{min-height:42px;padding:6px;text-align:center}.studio-sidebar .free b{font-size:0}.studio-sidebar .free b::after{content:'+';font-size:18px}.studio-sidebar .free span{display:none}.studio-sidebar .parts-library{grid-template-columns:1fr}.studio-sidebar #drawer button{min-height:46px!important;height:46px!important;font-size:0!important;padding:3px!important}.studio-sidebar #drawer .thumb{height:35px;width:43px}
}

/* ---------- responsive: tablet / small laptop ---------- */
@media(max-width:1099px){
  .arduino-page .aim-nav{padding:8px 12px;gap:10px}.arduino-page .aim-nav nav{order:3;flex-basis:100%;flex-wrap:nowrap;overflow-x:auto}.arduino-page .aim-nav nav a{white-space:nowrap;min-height:34px;padding:7px 9px;font-size:12px}
  .studio-command{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto 28px;padding:8px 10px 0;min-height:82px;column-gap:9px}
  .studio-identity{display:none}
  .studio-project{grid-column:1;grid-row:1}.project-title-row{margin-bottom:1px}.project-main-row h1{font-size:17px}.project-main-row p{display:none}.project-meta-row{margin-top:4px}.project-meta-row span:nth-child(3),.project-meta-row span:nth-child(4){display:none}
  .studio-actions{grid-column:2;grid-row:1;gap:4px}.studio-actions .quiet-action span{display:none}.studio-actions .quiet-action{width:31px;padding:0;min-width:31px}.studio-actions .run-action{min-width:66px}.mobile-tool{display:inline-flex!important;width:auto!important;padding:0 7px!important;font-size:8px!important}
  .studio-progress{grid-column:1/-1;grid-row:2;height:28px;min-height:28px}.studio-progress .labpath__stage{height:28px}.studio-progress .labpath__stage b{display:none}

  .studio-body{grid-template-columns:1fr;position:relative}
  .studio-sidebar{position:absolute;z-index:60;left:0;top:0;bottom:0;width:min(280px,84vw);transform:translateX(-102%);transition:transform .2s ease;box-shadow:12px 0 35px rgba(3,24,31,.25)}
  body.sidebar-open .studio-sidebar{transform:translateX(0)}
  .sidebar-backdrop{display:block;position:absolute;z-index:55;inset:0;border:0;background:rgba(3,22,29,.46);opacity:0;pointer-events:none;transition:opacity .2s;padding:0}
  body.sidebar-open .sidebar-backdrop{opacity:1;pointer-events:auto}
  .sidebar-toggle{display:none}

  .workzone{position:relative;grid-template-columns:1fr;grid-template-rows:minmax(260px,1fr) 46px}
  body.inspector-open .workzone{grid-template-rows:minmax(260px,1fr) min(44%,430px)}
  .workspace-splitter{display:none}
  .inspector{grid-row:2;border-left:0;border-top:1px solid #c9dadd}
  .inspector-tabs{height:46px;flex:0 0 46px}.inspector-body{display:none}
  body.inspector-open .inspector-body{display:block}
  body.inspector-open .inspector{box-shadow:0 -10px 30px rgba(5,28,36,.16)}
  .canvas-label{top:10px;left:10px}.canvas-tools--top-left{left:10px;top:46px}.canvas-tools--top-right{right:10px;top:10px}.canvas-tools--zoom{right:10px;bottom:12px}
}

/* ---------- mobile ---------- */
@media(max-width:680px){
  .arduino-page .aim-nav{padding:7px 9px;gap:8px}.arduino-page .aim-brand small{display:none}.arduino-page .aim-brand b{font-size:16px;padding:7px 8px}.arduino-page .aim-brand span{font-size:12px}.arduino-page .aim-nav nav a{font-size:11px;padding:6px 8px}.arduino-page .aim-version{font-size:9px}
  .studio-command{min-height:70px;padding:7px 7px 0;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto 24px;column-gap:6px}.project-title-row{gap:6px}.project-kicker{font-size:7px}.stage-summary{font-size:7px;padding-left:6px}.project-main-row h1{font-size:15px}.project-meta-row{display:none}.studio-actions{gap:3px}.studio-actions .quiet-action{display:none}.studio-actions .run-action{height:31px;min-height:31px;min-width:58px;font-size:9px;padding:4px 7px}.mobile-tool{height:31px!important;min-height:31px!important;padding:0 6px!important;font-size:7.5px!important}
  .studio-progress{height:24px;min-height:24px}.studio-progress .labpath__stage{height:24px;border-bottom-width:2px}.studio-progress .labpath__stage i{width:14px;height:14px;font-size:6.5px}.studio-progress .labpath__stage:nth-child(n+5){display:none}
  .workzone{grid-template-rows:minmax(230px,1fr) 44px}
  body.inspector-open .workzone{grid-template-rows:minmax(210px,1fr) min(58%,480px)}
  .inspector-tabs{height:44px;flex-basis:44px}.inspector-tabs button{min-height:44px;height:44px}.inspector-tabs button span{font-size:13px}.inspector-tabs button b{font-size:7.5px}
  .canvas-label{font-size:0;padding:4px 6px;min-height:27px}.canvas-label strong{font-size:8px}.canvas-partcount{display:none}
  .canvas-tools{padding:3px;gap:3px;border-radius:8px}.canvas-tools button{width:28px;min-width:28px;height:28px;min-height:28px;padding:0 5px;font-size:10px}.canvas-tools .tool-labelled{width:auto;min-width:auto;padding:0 7px}.canvas-tools--top-left{top:44px;left:7px}.canvas-tools--top-right{top:8px;right:7px}.canvas-tools--zoom{bottom:9px;right:7px}.canvas-tools--zoom #zoomlevel{min-width:34px;font-size:8px}.wire-colour{width:28px;height:28px}.benchcorner{display:none}
  .studio-status{height:34px;flex-basis:34px;grid-template-columns:auto minmax(0,1fr) auto;gap:5px;padding:0 5px}.status-primary strong{font-size:8px;max-width:76px;overflow:hidden;text-overflow:ellipsis}.status-context{font-size:8px}.status-metrics>span:first-child{display:none}.status-metrics #clock{display:none}.status-metrics #check{height:24px;min-height:24px;padding:2px 5px;font-size:7.5px}#sound{display:none}.livebar #readings{font-size:8px}
  .guidedstatus{top:43px;width:calc(100% - 16px);padding:8px}.guidedstatus div>span:last-child{display:none}
  .sidebar-pane{padding:9px}.parts-library{grid-template-columns:repeat(2,minmax(0,1fr))}
  .inspector-pane-head{padding:10px}.guidedintro{padding:8px 10px}.guidecard{padding:10px}.step{padding:8px}.learn-pane{padding:9px}.filetab{height:38px;flex-basis:38px}.editorwrap textarea#code,.editorwrap #lines{font-size:11.5px}.monitor-pane #monitor{font-size:10px}
  .bench-feedback{font-size:9.5px;bottom:45px}
}

@media(max-width:430px){
  .studio-actions .mobile-tool{font-size:0!important;width:29px!important;padding:0!important}.studio-actions #mobileProjects::after{content:'☷';font-size:14px}.studio-actions #mobileParts::after{content:'+';font-size:17px}
  .project-main-row h1{font-size:14px}.stage-summary{display:none}.project-kicker{max-width:120px}.studio-progress .labpath__stage:nth-child(n+4){display:none}
  body.inspector-open .workzone{grid-template-rows:minmax(190px,1fr) min(64%,500px)}
  .canvas-tools--top-left .tool-separator,.wire-colour{display:none}.canvas-tools--top-left{top:42px}
  .status-primary{display:none}.studio-status{grid-template-columns:minmax(0,1fr) auto}.status-context{grid-column:1}.status-metrics{grid-column:2}
}

@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* v0.8.0 final proportion corrections after multi-viewport audit */
@media(min-width:1100px){
  .studio-command{
    height:100px;
    min-height:100px;
    grid-template-rows:60px 30px;
    padding-top:8px;
  }
  .studio-progress{align-self:stretch}
}
#steps{grid-template-columns:1fr!important}
.arduino-page .free.active{background:#16434e;border-style:solid;border-color:#688f98;box-shadow:inset 3px 0 var(--aim-lime)}
body.benchfocus #platform-nav{display:none!important}

@media(max-width:1099px){
  /* Tablet and small-laptop default: canvas first. Inspector opens only when requested. */
  .workzone{grid-template-rows:minmax(260px,1fr) 46px}
}

/* Keep the learning progress inside the command bar instead of letting it compete with the canvas. */
.studio-command{grid-template-rows:1fr!important;padding-bottom:30px!important}
.studio-progress{position:absolute!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;width:auto!important;grid-row:auto!important;grid-column:auto!important}
@media(min-width:1100px){.studio-command{height:100px!important;min-height:100px!important;padding-top:8px!important;padding-bottom:30px!important}}
@media(max-width:1099px){.studio-command{height:82px!important;min-height:82px!important;padding-bottom:28px!important}}
@media(max-width:680px){.studio-command{height:70px!important;min-height:70px!important;padding-bottom:24px!important}}

/* Compact desktop rail keeps Projects/Parts discoverable even while collapsed. */
@media(max-width:1439px) and (min-width:1100px){
  .studio-sidebar .sidebar-head{padding:6px 5px!important}
  .studio-sidebar .sidebar-tabs{display:grid!important;grid-template-columns:1fr 1fr!important;gap:3px!important;padding:2px!important;width:100%}
  .studio-sidebar .sidebar-tabs button{display:grid!important;place-items:center!important;min-height:30px!important;font-size:0!important;padding:0!important}
  .studio-sidebar .sidebar-tabs button[data-left-tab="projects"]::after{content:'P';font-size:10px;font-weight:900}
  .studio-sidebar .sidebar-tabs button[data-left-tab="parts"]::after{content:'+';font-size:15px;font-weight:800}
  .studio-sidebar .sidebar-toggle{display:none!important}
}
@media(max-width:1099px){.project-meta-row{display:none!important}}
#drawer.parts-library{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;overflow:visible!important}
@media(max-width:1439px) and (min-width:1100px){.studio-sidebar #drawer.parts-library{grid-template-columns:1fr!important}}
@media(max-width:1099px){body.inspector-code-active.inspector-open .workzone,body.inspector-monitor-active.inspector-open .workzone{grid-template-rows:minmax(220px,1fr) min(58%,500px)}}
@media(max-width:680px){body.inspector-code-active.inspector-open .workzone,body.inspector-monitor-active.inspector-open .workzone{grid-template-rows:minmax(180px,1fr) min(68%,520px)}}


/* ===== SOURCE: arduino/workbench-v081.css ===== */
/* AIM STEM LAB v0.8.1 — Arduino Workbench visual & interaction polish */
:root{
  --sidebar-w:210px;
  --inspector-w:376px;
  --status-h:38px;
  --ui-radius:10px;
}

/* ---------- global density ---------- */
.arduino-page .aim-nav{
  min-height:58px!important;
  padding:7px 20px!important;
  box-shadow:0 1px 0 rgba(15,55,66,.04);
}
.arduino-page .aim-nav .aim-brand b{font-size:18px;padding:7px 10px}
.arduino-page .aim-nav nav a{min-height:36px;padding:7px 10px}

@media(min-width:1100px){
  .studio-command{
    height:88px!important;
    min-height:88px!important;
    padding:7px 14px 26px!important;
    grid-template-columns:auto minmax(300px,1fr) auto!important;
    column-gap:16px!important;
    box-shadow:0 3px 12px rgba(13,51,62,.045);
  }
  .studio-progress{height:26px!important;min-height:26px!important}
  .studio-progress .labpath__stage{height:26px!important}
}
.studio-identity{gap:9px}
.studio-mark{width:36px;height:36px;border-radius:9px;font-size:23px}
.studio-name small{font-size:7.5px;margin-bottom:3px}
.studio-name strong{font-size:15px}
.project-title-row{margin-bottom:1px}
.project-kicker{font-size:8px}
.stage-summary{font-size:8.5px}
.project-main-row{gap:10px}
.project-main-row h1{font-size:19px;letter-spacing:-.45px}
.project-main-row p{font-size:10.5px}
.project-meta-row{gap:5px;margin-top:4px}
.project-meta-row span{min-height:18px;padding:2px 6px;font-size:8px;background:#f0f5f6}
.studio-actions{gap:5px}
.studio-actions button,.studio-actions .import{
  height:33px;min-height:33px;border-radius:9px;padding:4px 9px;
  border-color:#d6e2e5;color:#244f5b;background:#fbfdfd;
}
.studio-actions .run-action{min-width:82px;box-shadow:0 5px 15px rgba(7,139,143,.18)}
.studio-actions .run-action:hover{box-shadow:0 7px 18px rgba(7,139,143,.23)}
.studio-progress{border-top-color:#edf3f4}
.studio-progress .labpath__stage{font-weight:700;color:#78909a;border-bottom-color:#dce7e9}
.studio-progress .labpath__stage i{width:16px;height:16px;font-size:7px}
.studio-progress .labpath__stage b{font-size:8px}
.studio-progress .labpath__stage.is-active{
  background:linear-gradient(180deg,rgba(185,223,52,0),rgba(185,223,52,.10));
  box-shadow:inset 0 -1px 0 rgba(185,223,52,.7);
}

/* ---------- sidebar polish ---------- */
.studio-sidebar{
  background:linear-gradient(180deg,#0b2d38 0%,#0a2a34 100%);
  border-right-color:#1c4652;
}
.sidebar-head{flex-basis:48px;padding:7px;border-bottom-color:#1c4652;background:#0c303b}
.sidebar-tabs{gap:4px;padding:3px;background:#082630;border:1px solid #173e49}
.sidebar-tabs button{
  min-height:31px;border-radius:7px;color:#81a2aa;letter-spacing:.7px;transition:background .15s ease,color .15s ease,box-shadow .15s ease;
}
.sidebar-tabs button:hover{color:#d7e8eb;background:#113843}
.sidebar-tabs button[aria-selected="true"]{
  background:#17414c;color:#fff;box-shadow:inset 0 -2px var(--aim-lime),0 2px 8px rgba(0,0,0,.12)
}
.sidebar-toggle{width:32px;height:32px;min-height:32px;border-radius:8px}
.sidebar-pane{padding:10px 8px 12px}
.sidebar-caption{margin:2px 3px 9px}
.project-list{gap:5px}
.arduino-page .projectbtn{
  min-height:52px;border-radius:9px;padding:8px 9px;transition:background .14s ease,border-color .14s ease,transform .14s ease;
}
.arduino-page .projectbtn:hover{transform:translateX(1px)}
.arduino-page .projectbtn.active{background:#16404a;border-color:#416b75;box-shadow:inset 3px 0 var(--aim-lime),0 4px 12px rgba(0,0,0,.09)}
.arduino-page .projectbtn strong{font-size:11.25px}
.arduino-page .projectbtn small{font-size:8.75px;color:#84a3aa}
.arduino-page .free{border-radius:9px;background:#092731;margin-top:9px}
.part-search input{height:35px;border-radius:9px;background:#082731}
.parts-library{gap:7px}
.arduino-page #drawer button{
  min-height:78px!important;border-radius:10px!important;padding:7px 5px!important;
  background:linear-gradient(180deg,#113744,#0f333f)!important;
  border-color:#315864!important;font-size:9.25px!important;color:#d9e8eb!important;
  transition:transform .14s ease,background .14s ease,border-color .14s ease,box-shadow .14s ease;
}
.arduino-page #drawer button:hover{
  transform:translateY(-1px);background:#174651!important;border-color:#67929a!important;box-shadow:0 6px 14px rgba(2,17,23,.18)!important
}
.arduino-page #drawer .thumb{height:40px;width:52px}
.arduino-page #drawer .thumb>*{transform:scale(.54)}
.parts-note{
  margin:11px 2px 4px;padding:9px 10px;border:1px solid #214b56;border-radius:9px;
  background:#0c303a;color:#83a3aa;font-size:8.7px;line-height:1.5
}
.sidebar-foot{padding:8px 11px;color:#6e929a}

/* ---------- workbench: more physical, less web-card ---------- */
.workzone{background:#0a2b36}
.benchpanel{background:#082a35}
.benchviewport{
  background-color:#082b36!important;
  background-image:
    radial-gradient(circle at 1px 1px,rgba(128,180,191,.30) .75px,transparent .85px),
    linear-gradient(rgba(107,163,175,.045) 1px,transparent 1px),
    linear-gradient(90deg,rgba(107,163,175,.045) 1px,transparent 1px),
    radial-gradient(circle at 48% 45%,rgba(19,78,91,.20),rgba(5,29,38,.26) 68%,rgba(2,19,26,.34) 100%)!important;
  background-size:18px 18px,90px 90px,90px 90px,100% 100%!important;
  box-shadow:inset 0 14px 32px rgba(2,16,22,.22),inset 0 -18px 44px rgba(2,16,22,.23)!important;
}
#benchstage{filter:drop-shadow(0 15px 18px rgba(0,0,0,.08))}
#wires path{stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 1px rgba(0,0,0,.28))}
#wires path:hover{filter:drop-shadow(0 2px 2px rgba(0,0,0,.34))}
.part{transition:filter .12s ease}
.part.selected{outline:2px solid rgba(185,223,52,.95)!important;outline-offset:9px!important;filter:drop-shadow(0 0 11px rgba(185,223,52,.17))}
.part .handle{
  top:-29px!important;gap:5px!important;padding:3px 5px!important;border-radius:6px!important;
  color:#bed2d6!important;background:rgba(7,31,40,.68)!important;border-color:rgba(104,150,161,.25)!important;
  opacity:.68;transition:opacity .14s ease,background .14s ease,border-color .14s ease;
}
.part:hover .handle,.part.selected .handle{opacity:1;background:rgba(8,38,48,.92)!important;border-color:rgba(112,165,176,.48)!important}
.part .handle button{opacity:.42;transition:opacity .14s ease,background .14s ease}
.part:hover .handle button,.part.selected .handle button{opacity:1}
.canvas-label{
  background:rgba(8,32,41,.76)!important;border-color:rgba(97,148,159,.26)!important;
  box-shadow:0 5px 14px rgba(0,0,0,.10);backdrop-filter:blur(7px)
}
.canvas-label strong{font-size:9.75px}
.canvas-tools{
  background:rgba(8,31,40,.78)!important;border-color:rgba(88,139,151,.31)!important;
  box-shadow:0 6px 16px rgba(0,0,0,.15)!important;backdrop-filter:blur(8px)!important;
  padding:4px!important;gap:4px!important;border-radius:9px!important
}
.canvas-tools button{
  min-width:31px!important;width:auto;height:31px!important;min-height:31px!important;border-radius:7px!important;
  background:#123a46!important;border-color:#315965!important;color:#d8e7ea!important;padding:0 8px!important;
  transition:background .13s ease,border-color .13s ease,transform .13s ease
}
.canvas-tools button:hover{background:#1a4d59!important;border-color:#6a99a2!important;transform:translateY(-1px)}
.canvas-tools button:active{transform:translateY(0)}
.canvas-tools .tool-labelled{padding:0 10px!important}
.tool-separator{height:18px!important;background:#315460!important}
.wire-colour{width:31px!important;height:31px!important;border-radius:7px!important;border-color:#4b6570!important;box-shadow:inset 0 0 0 2px rgba(255,255,255,.06)}
.wire-colour input{width:100%!important;height:100%!important}
.canvas-tools--top-left{left:11px!important;top:48px!important}
.canvas-tools--top-right{right:11px!important;top:11px!important}
.canvas-tools--zoom{right:11px!important;bottom:12px!important}
.benchcorner{left:13px;bottom:12px;color:#527a85;opacity:.72}

/* ---------- status bar ---------- */
.studio-status{
  min-height:var(--status-h)!important;height:var(--status-h)!important;
  background:linear-gradient(180deg,#ffffff,#f5f9fa)!important;
  border-top:1px solid #cfdee2!important;
  box-shadow:0 -3px 12px rgba(7,35,44,.04);
  padding:0 9px!important;gap:9px!important
}
.status-primary{gap:7px!important;min-width:max-content}
.status-primary i{width:8px!important;height:8px!important;background:var(--aim-lime)!important;box-shadow:0 0 0 4px rgba(185,223,52,.12)}
.status-primary strong{font-size:9px!important;color:#1d4d59!important}
.status-context{color:#708993!important;font-size:8.5px!important}
.status-context #wirehint{color:#718a93}
.livebar{color:#5e7a84!important}
.livebar #readings{font-size:8.5px!important;color:#526f79!important}
.status-metrics{gap:7px!important}
.status-metrics>span{font-size:8px!important;color:#587681!important;background:#edf4f5;padding:3px 6px;border-radius:999px}
.status-metrics #clock{font-size:8px!important;background:#e8f0f2!important;color:#355c67!important;border-radius:999px;padding:3px 6px}
.status-metrics #check{height:27px!important;min-height:27px!important;border-radius:7px!important;background:#fff!important;border-color:#cbdcdf!important;color:#2d6670!important;font-weight:750}
.status-metrics #check:hover{background:#edf8f8!important;border-color:#8fc0c5!important}
#sound{height:26px!important;min-height:26px!important;border-radius:7px!important}

/* ---------- inspector balance ---------- */
.inspector{background:#0d2d38;border-left-color:#214955}
.inspector-tabs{height:44px!important;flex-basis:44px!important;background:#f5f8f9!important;border-bottom-color:#d3e1e4!important}
.inspector-tabs button{min-height:44px!important;color:#6b838c!important;gap:0!important}
.inspector-tabs button span{font-size:13px!important}
.inspector-tabs button b{font-size:7.75px!important}
.inspector-tabs button:hover{background:#eef5f6!important;color:#34636d!important}
.inspector-tabs button[aria-selected="true"]{background:#fff!important;color:#087e83!important}
.inspector-tabs button[aria-selected="true"]::after{height:2px!important;background:#099ca0!important}
.inspector-body{background:#0d2d38}
.inspector-pane-head{padding:12px 13px 9px!important;border-bottom-color:#204854!important}
.inspector-pane-head small{font-size:7px!important;color:#7fa2aa!important}
.inspector-pane-head strong{font-size:11.5px!important;margin-top:2px!important}
.inspector-pane-head button{min-height:28px!important;border-radius:7px!important;background:#143b46!important}
.guidedintro{
  display:flex!important;align-items:center!important;gap:8px!important;
  padding:9px 13px!important;background:#0f323d!important;border-bottom:1px solid #214955!important
}
.guidedintro p{flex:1;margin:0!important;color:#9db7bd!important;font-size:8.8px!important;line-height:1.45!important}
.guidedintro button{min-height:31px!important;padding:4px 9px!important;border-radius:7px!important;background:#17606c!important;border:1px solid #397783!important;color:#e5f1f3!important;font-size:8px!important;font-weight:750!important;white-space:nowrap}
.guidedintro button:hover{background:#1b6f7b!important}
.guidecard{padding:11px 12px!important}
.learnhead{margin-bottom:8px!important}
.learnhead h2{font-size:11.5px!important}
.learnhead span{font-size:7.7px!important}
#steps{gap:6px!important}
.step{
  gap:8px!important;padding:9px 9px!important;border-radius:8px!important;
  border-color:#28505b!important;background:#0c2a35!important;
  transition:background .14s ease,border-color .14s ease,transform .14s ease
}
.step:hover{background:#10343f!important;border-color:#3d6974!important;transform:translateX(1px)}
.step:has(input:checked){background:#102f38!important;border-color:#38625e!important}
.step input{width:15px!important;height:15px!important;margin-top:1px!important;accent-color:#0aa0a5!important}
.step strong{font-size:9.25px!important;color:#eaf3f4!important}
.step p{font-size:8.5px!important;color:#91abb1!important;line-height:1.45!important;margin-top:2px!important}
.step button{min-height:27px!important;margin-top:5px!important;border-radius:6px!important;background:#123c47!important;color:#b9d3d8!important}
.step button:hover{background:#194b57!important;color:#fff!important}

/* ---------- code & monitor refinement ---------- */
.code-pane,.monitor-pane{background:#0b2631}
.filetab{height:39px!important;flex-basis:39px!important;background:#0b2731!important;border-bottom-color:#204650!important;padding:0 11px!important}
.filetab strong{font-size:9px!important;color:#dce9ec!important}
.filetab button{min-height:27px!important;border-radius:6px!important;background:#123844!important;color:#9fc0c7!important;border:1px solid #315762!important}
.filetab button:hover{background:#194955!important;color:#fff!important}
.experiment{background:#10313c!important;border-bottom:1px solid #214854!important;padding:9px 11px!important}
.editorwrap{background:#0a222c!important}
.editorwrap textarea#code{font-size:12.5px!important;line-height:1.58!important;color:#a8e5c8!important}
.editorwrap #lines{font-size:11.5px!important;line-height:1.72!important;color:#507681!important}
.codefoot{min-height:31px!important;background:#09232d!important;border-top-color:#1e424d!important;padding:5px 9px!important}
.monitorhead{height:39px!important;padding:0 12px!important;background:#0d2f3a!important;border-bottom:1px solid #214a56!important}
.monitor-pane #monitor{background:#071f28!important;color:#98d0b0!important;padding:12px!important;line-height:1.6!important}
.monitor-foot{background:#092630!important;border-top-color:#1e4651!important}

/* ---------- learn panel: calm, readable ---------- */
.learn-pane{background:#f3f7f8!important;padding:11px!important}
.understandcard,.engineeringnote{border-radius:9px!important;border-color:#d7e4e7!important;box-shadow:0 3px 10px rgba(12,48,59,.035)!important}
.understandcard h2,.engineeringnote h2{font-size:13.5px!important}
.understandcard p,.notebookprompt{font-size:9.25px!important}
.challenge{border-radius:8px!important;margin:8px 0!important}

/* ---------- responsiveness: polish, don't shrink ---------- */
@media(max-width:1439px) and (min-width:1100px){
  :root{--inspector-w:344px}
  .arduino-page .aim-nav{min-height:56px!important;padding:6px 16px!important}
  .project-main-row h1{font-size:18px}
  .canvas-tools button{height:30px!important;min-height:30px!important}
}

@media(max-width:1099px){
  .arduino-page .aim-nav{min-height:56px!important;padding:6px 14px!important}
  .studio-command{box-shadow:0 2px 8px rgba(13,51,62,.04)}
  .inspector{border-top-color:#c9dadd!important}
  .studio-status{min-height:36px!important;height:36px!important}
}

@media(max-width:680px){
  .arduino-page .aim-nav{min-height:52px!important;padding:5px 9px!important}
  .arduino-page .aim-nav .aim-brand span small{display:none}
  .studio-command{padding-left:6px!important;padding-right:6px!important}
  .canvas-tools{box-shadow:0 4px 12px rgba(0,0,0,.16)!important}
  .parts-note{display:none}
  .arduino-page #drawer button{min-height:72px!important}
  .guidedintro{padding:8px 9px!important}
  .guidedintro p{font-size:8px!important}
  .guidedintro button{min-height:29px!important;font-size:7.5px!important}
}

@media(prefers-reduced-motion:reduce){
  .arduino-page #drawer button,.arduino-page .projectbtn,.canvas-tools button,.step,.part .handle{transition:none!important}
}


/* ===== SOURCE: arduino/free-build-top-v027138.css ===== */
/* AIM STEM LAB v0.27.138 — Free Build action spacing and alignment refinement. */
body.arduino-page .studio-actions .top-free-action{
  min-height:42px;
  height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  column-gap:9px;
  min-width:282px;
  padding:0 13px 0 11px;
  border:1px solid #d4e2e8;
  border-radius:10px;
  background:#fff;
  color:#214957;
  white-space:nowrap;
  cursor:pointer;
  box-shadow:0 4px 10px rgba(18,55,70,.025);
  transition:border-color .16s ease,background .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease;
}
body.arduino-page .studio-actions .top-free-action:hover{
  border-color:#a71930;
  color:#8f1026;
  background:#fff9fa;
  box-shadow:0 6px 14px rgba(151,19,42,.09);
}
body.arduino-page .studio-actions .top-free-action:active{transform:translateY(1px)}
body.arduino-page .studio-actions .top-free-action.active{
  border-color:#a71930;
  background:#a71930;
  color:#fff;
  box-shadow:0 7px 16px rgba(151,19,42,.18);
}
body.arduino-page .studio-actions .top-free-plus{
  width:19px;
  height:19px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 19px;
  font-size:16px;
  line-height:1;
  font-weight:900;
}
body.arduino-page .studio-actions .top-free-copy{
  min-width:0;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:flex-start;
  flex:1 1 auto;
  gap:10px !important;
  text-align:left;
  line-height:1;
}
body.arduino-page .studio-actions .top-free-copy strong{
  display:inline-block !important;
  margin:0 !important;
  font:850 11px/1 inherit;
  letter-spacing:0;
  color:inherit;
  flex:0 0 auto;
}
body.arduino-page .studio-actions .top-free-separator{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin:0 3px;
  color:#9aabb1;
  font-size:11px;
  line-height:1;
  flex:0 0 auto;
}
body.arduino-page .studio-actions .top-free-copy small{
  display:inline-block !important;
  margin:0 !important;
  max-width:164px;
  overflow:hidden;
  text-overflow:ellipsis;
  font:700 8.5px/1 inherit;
  color:#71858d;
  flex:0 1 auto;
}
body.arduino-page .studio-actions .top-free-action:hover .top-free-copy small{color:#9c5260}
body.arduino-page .studio-actions .top-free-action:hover .top-free-separator{color:#bc8992}
body.arduino-page .studio-actions .top-free-action.active .top-free-copy small,
body.arduino-page .studio-actions .top-free-action.active .top-free-separator{color:rgba(255,255,255,.78)}
body.arduino-page .studio-actions .top-free-arrow{
  margin-left:auto;
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:16px;
  line-height:1;
  font-weight:850;
  opacity:.72;
}
/* The Projects panel is reserved for guided projects only. */
body.arduino-page .sidebar-pane[data-left-pane="projects"] .project-list{padding-bottom:8px}

@media (max-width:1320px){
  body.arduino-page .studio-actions .top-free-action{min-width:132px;padding:0 10px;column-gap:7px}
  body.arduino-page .studio-actions .top-free-copy small,
  body.arduino-page .studio-actions .top-free-separator{display:none !important}
  body.arduino-page .studio-actions .top-free-copy strong{font-size:10px}
}
@media (max-width:1100px){
  body.arduino-page .studio-actions .top-free-action{min-width:40px;width:40px;padding:0;justify-content:center}
  body.arduino-page .studio-actions .top-free-copy,
  body.arduino-page .studio-actions .top-free-arrow{display:none !important}
}
@media (max-width:760px){
  body.arduino-page .studio-actions .top-free-action{min-height:31px;height:31px;width:34px;min-width:34px;border-radius:8px}
  body.arduino-page .studio-actions .top-free-plus{font-size:15px;width:16px;height:16px;flex-basis:16px}
}

/* v0.27.138: hard separation between the title and helper text. */
body.arduino-page .studio-actions .top-free-action > .top-free-copy > strong{margin-right:2px !important;}
body.arduino-page .studio-actions .top-free-action > .top-free-copy > small{margin-left:2px !important;}


/* ===== SOURCE: arduino/workbench-v082.css ===== */
/* AIM STEM LAB v0.8.3 — guided build + circuit intelligence */

/* Circuit coach: lives in Guide, never over the engineering canvas. */
.circuit-coach{
  margin:8px 10px 4px;
  border:1px solid #2a5964;
  border-radius:10px;
  background:linear-gradient(145deg,#0d2b35,#0b2530);
  overflow:hidden;
  box-shadow:inset 0 1px rgba(255,255,255,.025);
}
.circuit-coach[hidden]{display:none}
.coach-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 10px 7px}
.coach-head small{font-size:7.5px;letter-spacing:1.15px;font-weight:900;color:#7fa8b0}
.coach-count{font:800 9px ui-monospace,SFMono-Regular,Consolas,monospace;color:#c4d8dc;white-space:nowrap}
.coach-progress{height:3px;background:#173d48;overflow:hidden}
.coach-progress>i{display:block;height:100%;width:0;background:#b8da3c;box-shadow:0 0 12px rgba(184,218,60,.25);transition:width .22s ease}
.coach-body{padding:10px}
.coach-body strong{display:block;color:#f1f7f8;font-size:11.5px;line-height:1.35;margin-bottom:3px}
.coach-body p{margin:0;color:#90afb6;font-size:9.4px;line-height:1.5}
.coach-connection{
  margin-top:8px;padding:8px 9px;border:1px solid #28525e;border-radius:8px;background:#09212a;
  display:flex;align-items:center;gap:7px;font:700 10px ui-monospace,SFMono-Regular,Consolas,monospace;color:#dce8ea
}
.coach-connection b{font:inherit;color:#b8da3c}.coach-arrow{color:#668c95}
.coach-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}
.coach-actions button{min-height:30px;padding:4px 8px;border-radius:7px;border:1px solid #315f69;background:#123944;color:#c2d8dc;font-size:8.5px;font-weight:800}
.coach-actions button:hover{background:#194b57;color:#fff}
.coach-actions .coach-primary{background:#b8da3c;border-color:#b8da3c;color:#173229}
.coach-actions .coach-primary:hover{background:#c7e558;border-color:#c7e558;color:#10261f}
.coach-note{margin-top:8px;padding:7px 8px;border-radius:7px;background:#102f39;color:#92adb4;font-size:8.5px;line-height:1.45}
.coach-note.is-warning{background:#3b2e1b;color:#f3c980;border:1px solid #68502d}
.coach-complete{padding:2px 0}.coach-complete strong{color:#dff3a0}.coach-complete p{color:#a8c0c5}

/* v0.8.0's floating build-along card is retired in favour of the inspector coach. */
.guidedstatus{display:none!important}

/* Guided target pins and components are unmistakable but not noisy. */
.pin.guided-target{
  z-index:16!important;
  background:#c7ef37!important;
  border-color:#efffb0!important;
  outline:4px solid rgba(184,218,60,.22)!important;
  box-shadow:0 0 0 1px #17372a,0 0 16px rgba(184,218,60,.72)!important;
  animation:aimGuidePulse 1.3s ease-in-out infinite;
}
.pin.guided-origin{background:#55d2d6!important;border-color:#bdf9fb!important;outline:4px solid rgba(85,210,214,.2)!important;box-shadow:0 0 15px rgba(85,210,214,.65)!important}
.part.guided-part .handle{border-color:#78943b!important;background:rgba(37,55,39,.9)!important;color:#edf7cb!important}
@keyframes aimGuidePulse{50%{box-shadow:0 0 0 5px rgba(184,218,60,.08),0 0 22px rgba(184,218,60,.85)}}

/* Intelligent Check feedback: compact, actionable, and readable. */
.bench-feedback.smart-feedback{padding:0!important;overflow:hidden;width:min(590px,calc(100% - 24px))!important;background:#0d2a34!important;border-color:#355c66!important;color:#d9e7ea!important}
.smart-feedback-head{display:flex;align-items:center;gap:8px;padding:9px 10px;border-bottom:1px solid #284c56;background:#102f3a}
.smart-feedback-head i{width:8px;height:8px;border-radius:50%;background:#eda94a;box-shadow:0 0 0 4px rgba(237,169,74,.08)}
.smart-feedback.isgood .smart-feedback-head i{background:#b8da3c;box-shadow:0 0 0 4px rgba(184,218,60,.09)}
.smart-feedback-head strong{font-size:10.5px;color:#f0f6f7}.smart-feedback-head span{font-size:8.5px;color:#8cabb2;margin-left:auto}
.smart-feedback-list{display:grid;gap:0;max-height:188px;overflow:auto}
.smart-issue{display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:7px;align-items:start;padding:8px 10px;border-top:1px solid #21434d}
.smart-issue:first-child{border-top:0}.smart-issue-icon{display:grid;place-items:center;width:20px;height:20px;border-radius:6px;background:#49361f;color:#f1bd6e;font-size:10px;font-weight:900}
.smart-feedback.isgood .smart-issue-icon{background:#31441f;color:#d5ef7b}
.smart-issue strong{font-size:9.5px;color:#eaf2f4;display:block;margin:0 0 2px}.smart-issue p{margin:0;color:#8eabb2;font-size:8.5px;line-height:1.45}.smart-issue button{min-height:27px;padding:3px 7px;border:1px solid #345d67;border-radius:6px;background:#143943;color:#aecad0;font-size:8px}.smart-issue button:hover{background:#1a4b57;color:#fff}
.smart-feedback-close{width:30px!important;height:30px!important;min-width:30px!important;margin:5px 6px 0 0!important;color:#9fb9bf!important}

/* Issue highlighting on the bench. */
.part.circuit-issue .handle{border-color:#ad6d35!important;background:rgba(67,42,24,.9)!important;color:#ffdb9c!important;box-shadow:0 0 0 2px rgba(237,169,74,.1)}
.pin.circuit-issue-pin{background:#f2a847!important;border-color:#ffe0a8!important;outline:4px solid rgba(242,168,71,.18)!important;box-shadow:0 0 17px rgba(242,168,71,.68)!important}

/* Better wiring context in the status bar. */
.status-context #wirehint.is-guided-hint{color:#1d6570;font-weight:750}
body.simulating .status-primary i{background:#b8da3c!important;box-shadow:0 0 0 4px rgba(184,218,60,.15),0 0 12px rgba(184,218,60,.35)}

/* A quiet wiring-colour legend in Parts. */
.wire-legend{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:8px 10px 0;padding:8px;border:1px solid #214a55;border-radius:8px;background:#0c2a35;color:#769ca5;font-size:8px}
.wire-legend strong{color:#b9d0d5;font-size:8px;letter-spacing:.5px}.wire-legend span{display:inline-flex;align-items:center;gap:4px}.wire-legend i{width:8px;height:8px;border-radius:50%;display:inline-block}.wire-legend .power{background:#ef4444}.wire-legend .ground{background:#111827}.wire-legend .signal{background:#16a34a}

@media(max-width:1099px){
  .circuit-coach{margin:7px 8px 3px}
  .bench-feedback.smart-feedback{bottom:46px!important;max-height:220px}
}
@media(max-width:620px){
  .coach-head{padding:8px}.coach-body{padding:8px}.coach-actions button{flex:1 1 auto}
  .bench-feedback.smart-feedback{width:calc(100% - 12px)!important;bottom:43px!important}.smart-feedback-list{max-height:150px}.smart-issue{grid-template-columns:22px minmax(0,1fr)}.smart-issue button{grid-column:2;justify-self:start}
}
@media(prefers-reduced-motion:reduce){.pin.guided-target{animation:none!important}.coach-progress>i{transition:none!important}}


/* ===== SOURCE: arduino/workbench-v083.css ===== */
/* AIM STEM LAB v0.8.3 — realistic Wokwi-inspired orthogonal wiring */
#wires{pointer-events:none!important}
#wires .wire-group{pointer-events:none}
#wires .wire-shadow{pointer-events:none;opacity:.56}
#wires .wire-core{pointer-events:none;transition:stroke-width .12s ease,filter .12s ease;vector-effect:non-scaling-stroke}
#wires .wire-hit{pointer-events:stroke!important;cursor:pointer;outline:none;vector-effect:non-scaling-stroke}
#wires .wire-terminal{pointer-events:none;stroke:#07151c;stroke-width:1;vector-effect:non-scaling-stroke}
#wires .wire-group:hover .wire-core,#wires .wire-group.is-selected .wire-core{stroke-width:4.15;filter:drop-shadow(0 0 3px rgba(255,255,255,.18))}
#wires .wire-group.is-selected .wire-shadow{opacity:.85;stroke-width:7}

/* Pins should read like connection sockets, not large interface buttons. */
.pin{width:8px!important;height:8px!important;min-width:8px!important;min-height:8px!important;border-width:1px!important;background:#102b35!important;opacity:.78;box-shadow:0 0 0 1px rgba(255,213,111,.45)!important}
.part:hover .pin,.pin:hover,.pin:focus-visible,.pin.pending,.pin.guided-target,.pin.guided-origin,.pin.circuit-issue-pin{opacity:1}
.pin:hover,.pin:focus-visible,.pin.pending{background:#ffd15b!important}

/* Consistent conventional colour language. */
.wire-legend .power{background:#ef4444!important}.wire-legend .ground{background:#111827!important}.wire-legend .signal{background:#16a34a!important}
.wire-palette{display:flex;align-items:center;gap:4px;padding:3px;border:1px solid rgba(86,119,130,.55);background:rgba(8,33,42,.88);border-radius:8px;backdrop-filter:blur(7px)}
.wire-palette button{width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;padding:0!important;border-radius:5px!important;border:1px solid rgba(255,255,255,.24)!important;background:var(--swatch)!important;box-shadow:inset 0 0 0 1px rgba(0,0,0,.12)!important}
.wire-palette button:hover,.wire-palette button:focus-visible{transform:translateY(-1px);box-shadow:0 0 0 2px rgba(255,255,255,.2)!important}

/* Components feel seated on the engineering mat while wires remain crisp above it. */
.part> :is(wokwi-arduino-uno,wokwi-led,wokwi-resistor,wokwi-pushbutton,wokwi-potentiometer,wokwi-buzzer,wokwi-breadboard){filter:drop-shadow(0 5px 5px rgba(0,0,0,.22))}
.part.selected> :is(wokwi-arduino-uno,wokwi-led,wokwi-resistor,wokwi-pushbutton,wokwi-potentiometer,wokwi-buzzer,wokwi-breadboard){filter:drop-shadow(0 6px 7px rgba(0,0,0,.25)) drop-shadow(0 0 5px rgba(185,223,52,.2))}

@media(max-width:700px){.wire-palette{display:none}#wires .wire-core{stroke-width:3.4}#wires .wire-shadow{stroke-width:5.8}.pin{width:9px!important;height:9px!important;min-width:9px!important;min-height:9px!important}}
@media(prefers-reduced-motion:reduce){#wires .wire-core,.wire-palette button{transition:none!important}}


/* ===== SOURCE: arduino/workbench-v084.css ===== */
/* AIM STEM LAB v0.8.4 — hover labels + cleaner mounted parts */
.part .handle{
  opacity:0;
  pointer-events:none;
  transform:translateY(8px) scale(.98);
  transition:opacity .16s ease,transform .16s ease,background .16s ease,border-color .16s ease;
  background:rgba(8,32,41,.84)!important;
  border:1px solid rgba(111,162,174,.35)!important;
  border-radius:10px!important;
  padding:4px 6px!important;
  box-shadow:0 10px 24px rgba(1,14,18,.22);
  backdrop-filter:blur(8px);
}
.part:hover .handle,
.part:focus-within .handle,
.part.selected .handle,
.part.guided-part .handle,
.part.circuit-issue .handle{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0) scale(1);
}
.part .handle span{font-weight:600;letter-spacing:.01em;color:#edf4f6}
.part .handle button{box-shadow:none}
.part.seatedpart .handle{top:-34px}
.part.seatedpart{z-index:4}
.part.seatedpart .partcontrol{display:none}
#parts .part::after{
  content:attr(data-component-tip);
  position:absolute;
  left:0;
  bottom:100%;
  margin-bottom:38px;
  background:rgba(11,32,39,.92);
  color:#f1f8fa;
  padding:6px 9px;
  border-radius:8px;
  font-size:11px;
  line-height:1.35;
  white-space:pre-line;
  box-shadow:0 14px 28px rgba(1,14,18,.22);
  border:1px solid rgba(115,166,178,.22);
  opacity:0;
  transform:translateY(8px);
  pointer-events:none;
  transition:opacity .14s ease,transform .14s ease;
  max-width:180px;
}
#parts .part:hover::after,
#parts .part:focus-within::after,
#parts .part.selected::after{opacity:1;transform:translateY(0)}
#parts .part:hover .pin::after,
#parts .part:focus-within .pin::after{z-index:8}
.part.seatedpart .pin{box-shadow:0 0 0 1px rgba(255,213,111,.36)!important}
#wires path[stroke="#b9cbd3"]{stroke:#b6c6ce!important;stroke-width:2.3!important;filter:drop-shadow(0 1px 0 rgba(255,255,255,.55))}
#wires path[stroke="#b9cbd3"][d*="L"]{stroke-linecap:round;stroke-linejoin:round}
.part.breadboard-mounted wokwi-led,
.part.breadboard-mounted wokwi-resistor,
.part.breadboard-mounted wokwi-pushbutton,
.part.breadboard-mounted wokwi-buzzer,
.part.breadboard-mounted wokwi-potentiometer{filter:drop-shadow(0 4px 5px rgba(0,0,0,.18))}
@media (pointer:coarse){
  .part .handle{opacity:1;pointer-events:auto;transform:none}
  #parts .part::after{display:none}
}


/* ===== SOURCE: arduino/workbench-v085.css ===== */
/* AIM STEM LAB v0.8.5 — true breadboard placement intelligence */

/* Mounted parts should feel physically seated, not floating. */
.part.seatedpart{
  z-index:6;
  filter:none!important;
}
.part.seatedpart wokwi-led,
.part.seatedpart wokwi-resistor,
.part.seatedpart wokwi-pushbutton-6mm,
.part.seatedpart wokwi-buzzer,
.part.seatedpart wokwi-potentiometer{
  filter:drop-shadow(0 2px 2px rgba(0,0,0,.16));
}
.part.seatedpart .pin{
  opacity:.2!important;
  transform:translate(-50%,-50%) scale(.78);
}
.part.seatedpart:hover .pin,
.part.seatedpart:focus-within .pin,
.part.seatedpart .pin.guided-target,
.part.seatedpart .pin.guided-origin,
.part.seatedpart .pin.circuit-issue-pin{
  opacity:1!important;
  transform:translate(-50%,-50%) scale(1);
}
.part.seatedpart .handle{
  top:-36px!important;
}

/* A tiny seat badge appears only when the learner inspects a mounted part. */
.part-seat-badge{
  position:absolute;
  left:50%;
  top:calc(100% + 5px);
  translate:-50% 0;
  z-index:10;
  background:rgba(7,29,37,.92);
  color:#dff4ee;
  border:1px solid rgba(96,165,151,.36);
  border-radius:999px;
  padding:3px 7px;
  font:700 8px/1.2 ui-monospace,SFMono-Regular,Consolas,monospace;
  letter-spacing:.45px;
  white-space:nowrap;
  opacity:0;
  pointer-events:none;
  transition:opacity .14s ease,transform .14s ease;
  transform:translateY(-3px);
}
.part.seatedpart:hover .part-seat-badge,
.part.seatedpart:focus-within .part-seat-badge,
.part.seatedpart.selected .part-seat-badge{
  opacity:1;
  transform:translateY(0);
}

/* Snap state feedback on the moving component. */
.part.aim-snap-ready{
  outline:2px solid rgba(91,214,173,.78)!important;
  outline-offset:7px!important;
  border-radius:8px;
}
.part.aim-snap-ready::before{
  content:"RELEASE TO PLACE";
  position:absolute;
  left:50%;
  bottom:calc(100% + 11px);
  translate:-50% 0;
  z-index:14;
  padding:4px 7px;
  background:#0b3f3b;
  color:#d9fff2;
  border:1px solid #3a7567;
  border-radius:7px;
  font:800 8px/1 ui-monospace,SFMono-Regular,Consolas,monospace;
  letter-spacing:.7px;
  white-space:nowrap;
  box-shadow:0 7px 18px rgba(1,12,16,.22);
}

/* Cleaner, more solid LED appearance on the workbench. */
.part wokwi-led{
  filter:saturate(1.16) contrast(1.04) drop-shadow(0 2px 3px rgba(0,0,0,.14));
}

/* The physical lead stubs between a mounted component and a hole should be subtle. */
#wires .breadboard-lead{
  stroke:#b5bcc0;
  stroke-width:2.1;
  stroke-linecap:round;
  filter:drop-shadow(0 1px 0 rgba(255,255,255,.45));
  pointer-events:none;
}
#wires .breadboard-lead-contact{
  fill:#8c969b;
  stroke:#f4f6f6;
  stroke-width:.55;
  pointer-events:none;
}

/* Helper shown briefly when a component snaps. */
.breadboard-seat-toast{
  display:inline-flex;
  align-items:center;
  gap:5px;
}

@media(max-width:700px){
  .part.aim-snap-ready::before{display:none}
  .part-seat-badge{font-size:7px}
}
@media(prefers-reduced-motion:reduce){
  .part-seat-badge,.part.aim-snap-ready{transition:none!important}
}


/* ===== SOURCE: arduino/workbench-v086.css ===== */
/* AIM STEM LAB v0.8.6 — calm hover + click/tap component inspector */

/* Remove the verbose multi-line hover tooltip introduced in v0.8.4. */
#parts .part::after{
  content:none!important;
  display:none!important;
}

/* Hover now reveals only a compact identification chip. */
#parts .part::before{
  content:attr(data-component-short);
  position:absolute;
  left:50%;
  bottom:100%;
  z-index:18;
  translate:-50% 0;
  margin-bottom:8px;
  max-width:180px;
  padding:5px 8px;
  border:1px solid rgba(119,166,177,.28);
  border-radius:7px;
  background:rgba(7,29,37,.92);
  color:#eef7f8;
  box-shadow:0 8px 20px rgba(1,14,18,.18);
  font:600 10px/1.2 Inter,'Segoe UI',sans-serif;
  letter-spacing:.01em;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  opacity:0;
  transform:translateY(4px);
  pointer-events:none;
  transition:opacity .12s ease,transform .12s ease;
}
#parts .part:hover:not(.component-open)::before,
#parts .part:focus-visible:not(.component-open)::before{
  opacity:1;
  transform:translateY(0);
}

/* Full controls never open merely because the pointer crossed a component. */
.part:hover .handle,
.part:focus-within .handle,
.part.selected .handle,
.part.guided-part .handle,
.part.circuit-issue .handle{
  opacity:0!important;
  pointer-events:none!important;
  transform:translateY(8px) scale(.98)!important;
}

/* Click/tap is the deliberate action that opens the compact component inspector. */
.part.component-open .handle,
.part.component-open:hover .handle,
.part.component-open:focus-within .handle{
  opacity:1!important;
  pointer-events:auto!important;
  transform:translateY(0) scale(1)!important;
  z-index:24;
}
.part.component-open{
  outline:1px solid rgba(91,211,185,.42);
  outline-offset:7px;
  border-radius:5px;
}
.part.component-open::before{display:none!important}

/* Make the action strip intentionally compact and quiet. */
.part.component-open .handle{
  gap:5px!important;
  padding:4px 5px!important;
  min-height:28px;
  background:rgba(7,31,40,.94)!important;
  border-color:rgba(106,165,177,.38)!important;
  box-shadow:0 10px 28px rgba(1,14,18,.26)!important;
}
.part.component-open .handle span{
  max-width:145px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:10px!important;
}
.part.component-open .handle button{
  width:24px;
  min-width:24px!important;
  height:24px;
  min-height:24px!important;
  padding:0!important;
  display:grid;
  place-items:center;
  border-radius:6px!important;
}

/* Pins stay quiet until there is an actual wiring/diagnostic reason to show them. */
.part.component-open .pin{opacity:.72!important}
.part.component-open .pin:hover,
.part.component-open .pin:focus-visible,
.part.component-open .pin.pending,
.part.component-open .pin.guided-target,
.part.component-open .pin.guided-origin,
.part.component-open .pin.circuit-issue-pin{opacity:1!important}

/* Touch devices do not emulate hover popups. Tap opens the inspector instead. */
@media (pointer:coarse){
  #parts .part::before{display:none!important}
  .part .handle{opacity:0!important;pointer-events:none!important;transform:translateY(8px) scale(.98)!important}
  .part.component-open .handle{opacity:1!important;pointer-events:auto!important;transform:none!important}
}

@media(prefers-reduced-motion:reduce){
  #parts .part::before,.part .handle{transition:none!important}
}


/* ===== SOURCE: arduino/workbench-v088.css ===== */
/* AIM STEM LAB v0.8.8 — advanced component behaviour polish */
.arduino-page #drawer .thumb wokwi-lcd1602{transform:scale(.17)!important;transform-origin:center}
.arduino-page #drawer .thumb wokwi-membrane-keypad{transform:scale(.105)!important;transform-origin:center}
.arduino-page #drawer .thumb wokwi-servo{transform:scale(.28)!important;transform-origin:center}
.part wokwi-lcd1602,.part wokwi-membrane-keypad,.part wokwi-servo{filter:drop-shadow(0 5px 7px rgba(0,0,0,.18))}
.safe-sim-card{display:grid;grid-template-columns:1fr auto;gap:10px 12px;padding:12px 14px;background:linear-gradient(145deg,rgba(10,52,62,.92),rgba(6,35,44,.98));border:1px solid rgba(111,170,181,.26);border-radius:12px;color:#dcecef}
.safe-sim-card small{display:block;font-size:9px;letter-spacing:.14em;color:#83aeb7;font-weight:800}.safe-sim-card strong{font-size:14px;color:#fff}.safe-lock{align-self:start;padding:5px 8px;border-radius:999px;font-size:9px;font-weight:900;letter-spacing:.08em;border:1px solid}.safe-lock.locked{color:#ffdba1;background:rgba(157,91,24,.2);border-color:rgba(235,170,70,.35)}.safe-lock.unlocked{color:#c9f7d7;background:rgba(28,117,70,.22);border-color:rgba(77,193,119,.38)}.safe-sim-grid{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.safe-sim-grid span{display:flex;flex-direction:column;gap:2px;padding:7px 8px;border-radius:8px;background:rgba(255,255,255,.045);color:#91b1b8;font-size:9px}.safe-sim-grid b{font-size:12px;color:#e9f6f8}.safe-sim-card p{grid-column:1/-1;margin:0;font-size:10px;line-height:1.5;color:#9bb7bd}.safe-sim-card p b{color:#dcecef}
.part .partcontrol input[type="text"]{width:150px;max-width:150px;background:#f7fbfa;border:1px solid #b7d0d4;border-radius:6px;padding:4px 6px;font:11px ui-monospace,Consolas,monospace}
@media(max-width:700px){.safe-sim-grid{grid-template-columns:1fr}.safe-sim-card{padding:10px}}


/* ===== SOURCE: arduino/workbench-v089.css ===== */
/* AIM STEM LAB v0.8.9 — organised Parts Library */
#drawer.parts-library{
  display:block!important;
  overflow:visible!important;
}
.parts-section{margin:0 0 12px}
.parts-section:last-child{margin-bottom:0}
.parts-section-head{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  margin:2px 3px 7px;
  color:#87a9b0;
  font-size:8px;font-weight:900;letter-spacing:.1em;text-transform:uppercase;
}
.parts-section-head span:last-child{
  color:#527983;font-weight:700;letter-spacing:.03em;text-transform:none;font-size:8px
}
.parts-grid-basic{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.parts-grid-advanced{display:grid;grid-template-columns:1fr;gap:7px}

/* Keep every thumbnail inside its own clipping frame. Transforms no longer affect drawer geometry. */
.arduino-page #drawer .thumb{
  position:relative!important;
  display:block!important;
  overflow:hidden!important;
  flex:0 0 auto;
  pointer-events:none;
}
.arduino-page #drawer .thumb>*{
  position:absolute!important;
  left:50%!important;top:50%!important;
  margin:0!important;
  transform-origin:center!important;
}

/* Basic component cards */
.arduino-page #drawer .part-card-basic{
  min-height:72px!important;
  height:72px!important;
  display:flex!important;flex-direction:column!important;
  align-items:center!important;justify-content:center!important;
  gap:5px!important;
}
.arduino-page #drawer .part-card-basic .thumb{width:58px!important;height:40px!important}
.arduino-page #drawer .part-card-basic .thumb>*{transform:translate(-50%,-50%) scale(.52)!important}
.arduino-page #drawer .part-card-basic[data-part-type="breadboard"] .thumb{
  display:grid!important;place-items:center!important;font-size:19px;color:#c7dade
}

/* Advanced modules need their own row treatment, not tiny square tiles. */
.arduino-page #drawer .part-card-module{
  min-height:64px!important;
  height:64px!important;
  display:grid!important;
  grid-template-columns:78px minmax(0,1fr)!important;
  grid-template-rows:auto auto!important;
  align-items:center!important;
  column-gap:9px!important;row-gap:1px!important;
  padding:6px 8px!important;
  text-align:left!important;
}
.arduino-page #drawer .part-card-module .thumb{
  grid-column:1;grid-row:1/3;
  width:78px!important;height:50px!important;
  border-radius:7px;
  background:rgba(4,27,35,.34);
  border:1px solid rgba(100,148,158,.16);
}
.arduino-page #drawer .part-card-module .part-name{
  grid-column:2;grid-row:1;
  color:#edf7f8;font-size:10px;font-weight:800;line-height:1.15
}
.arduino-page #drawer .part-card-module .part-kind{
  grid-column:2;grid-row:2;
  color:#7199a2;font-size:8px;line-height:1.2
}
.arduino-page #drawer .part-card-module:hover .part-kind{color:#abd0d6}

/* Precise module previews: centre and clip the real Wokwi artwork. */
.arduino-page #drawer .part-card-module[data-part-type="lcd"] .thumb wokwi-lcd1602{
  transform:translate(-50%,-50%) scale(.20)!important;
}
.arduino-page #drawer .part-card-module[data-part-type="keypad"] .thumb wokwi-membrane-keypad{
  transform:translate(-50%,-50%) scale(.125)!important;
}
.arduino-page #drawer .part-card-module[data-part-type="servo"] .thumb wokwi-servo{
  transform:translate(-50%,-50%) scale(.32)!important;
}

/* Wider sidebar makes two basic columns comfortable. */
@media(min-width:1440px){
  .parts-grid-basic{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Compact desktop rail: one clean icon column, no overflow. */
@media(max-width:1439px) and (min-width:1100px){
  .parts-section-head{display:none}
  .parts-grid-basic,.parts-grid-advanced{grid-template-columns:1fr;gap:5px}
  .studio-sidebar #drawer .part-card-basic,
  .studio-sidebar #drawer .part-card-module{
    display:grid!important;place-items:center!important;
    min-height:48px!important;height:48px!important;
    grid-template-columns:1fr!important;padding:3px!important;font-size:0!important
  }
  .studio-sidebar #drawer .part-card-module .thumb,
  .studio-sidebar #drawer .part-card-basic .thumb{grid-column:1;grid-row:1;width:44px!important;height:40px!important}
  .studio-sidebar #drawer .part-name,.studio-sidebar #drawer .part-kind{display:none!important}
  .studio-sidebar #drawer .part-card-module[data-part-type="lcd"] .thumb wokwi-lcd1602{transform:translate(-50%,-50%) scale(.12)!important}
  .studio-sidebar #drawer .part-card-module[data-part-type="keypad"] .thumb wokwi-membrane-keypad{transform:translate(-50%,-50%) scale(.075)!important}
  .studio-sidebar #drawer .part-card-module[data-part-type="servo"] .thumb wokwi-servo{transform:translate(-50%,-50%) scale(.24)!important}
}

/* Tablet/mobile drawer: modules stay readable without becoming huge. */
@media(max-width:1099px){
  .parts-grid-basic{grid-template-columns:repeat(3,minmax(0,1fr))}
  .parts-grid-advanced{grid-template-columns:repeat(2,minmax(0,1fr))}
  .arduino-page #drawer .part-card-module{grid-template-columns:66px minmax(0,1fr)!important;height:62px!important}
  .arduino-page #drawer .part-card-module .thumb{width:66px!important;height:48px!important}
}
@media(max-width:620px){
  .parts-grid-basic{grid-template-columns:repeat(2,minmax(0,1fr))}
  .parts-grid-advanced{grid-template-columns:1fr}
}

/* Search hiding should collapse empty categories cleanly. */
.parts-section[hidden]{display:none!important}


/* ===== SOURCE: arduino/workbench-v0811.css ===== */
/* AIM STEM LAB v0.8.11 — advanced-system status polish */
.safe-sim-card .advanced-health{
  display:flex;flex-wrap:wrap;gap:6px;margin-top:10px;padding-top:9px;
  border-top:1px solid rgba(117,164,175,.15)
}
.advanced-health-pill{
  display:inline-flex;align-items:center;gap:5px;padding:4px 7px;border-radius:999px;
  font-size:8px;font-weight:850;letter-spacing:.03em;text-transform:uppercase;
  border:1px solid rgba(113,159,170,.18);background:rgba(4,28,35,.3);color:#86aab2
}
.advanced-health-pill i{width:6px;height:6px;border-radius:50%;background:#66858d}
.advanced-health-pill.is-ok{color:#bfe9d3;border-color:rgba(64,190,123,.24);background:rgba(30,122,74,.12)}
.advanced-health-pill.is-ok i{background:#63d98b;box-shadow:0 0 0 3px rgba(99,217,139,.09)}
.advanced-health-pill.needs-attention{color:#ffd8a8;border-color:rgba(245,158,11,.25);background:rgba(150,89,9,.12)}
.advanced-health-pill.needs-attention i{background:#f59e0b}
.advanced-last-key{display:block;margin-top:7px;font-size:8.5px;color:#77a1aa}
.part[data-component-tip^="Servo"] wokwi-servo{transition:filter .16s ease}
.part[data-component-tip^="Servo"].circuit-issue{filter:drop-shadow(0 0 8px rgba(245,158,11,.26))}
@media(max-width:620px){.safe-sim-card .advanced-health{gap:4px}.advanced-health-pill{font-size:7.5px;padding:4px 6px}}


/* ===== SOURCE: arduino/workbench-v0812.css ===== */
/* AIM STEM LAB v0.8.12 — project completion, challenges & Free Build polish */
.projectbtn{position:relative}
.projectbtn .project-progress-mark{
  margin-left:auto;align-self:center;display:inline-grid;place-items:center;
  min-width:20px;height:20px;padding:0 5px;border-radius:999px;
  border:1px solid rgba(151,186,194,.24);background:rgba(255,255,255,.04);
  color:#8fb2b9;font-size:10px;font-weight:800;line-height:1;
}
.projectbtn .project-progress-mark.is-complete{
  color:#dff67a;border-color:rgba(188,228,44,.38);background:rgba(188,228,44,.10)
}
.projectbtn .project-progress-mark.is-changed{
  color:#f8d36c;border-color:rgba(248,211,108,.34);background:rgba(248,211,108,.09)
}
.projectbtn>span:nth-child(2){min-width:0;flex:1}

.project-progress-card{
  border:1px solid #d6e5e8;border-radius:14px;background:#f8fbfb;
  padding:13px 14px;margin:0 0 10px;color:#11333d
}
.project-progress-card.is-complete{border-color:#cfe18a;background:#fbfdf5}
.project-progress-card__top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.project-progress-card__top small{display:block;color:#55737b;font-size:9px;font-weight:900;letter-spacing:.12em;margin-bottom:3px}
.project-progress-card__top strong{font-size:15px;line-height:1.15}
.project-progress-card__badge{white-space:nowrap;border:1px solid #cfdfe2;border-radius:999px;padding:4px 8px;font-size:9px;font-weight:900;color:#617b82;background:#fff}
.project-progress-card.is-complete .project-progress-card__badge{color:#526710;border-color:#c9df70;background:#f7fbdc}
.project-progress-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:11px}
.project-progress-step{display:flex;align-items:center;gap:6px;padding:7px 8px;border-radius:9px;background:#eef4f5;color:#6a8389;font-size:10px;font-weight:800}
.project-progress-step i{display:grid;place-items:center;width:17px;height:17px;border-radius:50%;font-style:normal;background:#dce7e9;color:#70888e}
.project-progress-step.is-done{background:#eff6df;color:#455716}
.project-progress-step.is-done i{background:#bce32d;color:#17313a}
.project-progress-card__hint{margin:9px 0 0;color:#688087;font-size:10px;line-height:1.45}

.challenge{position:relative}
.challenge .challenge-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.challenge .challenge-actions button{border:1px solid #c9dadd;background:#fff;border-radius:8px;padding:6px 9px;font-size:10px;font-weight:800;color:#244b55;cursor:pointer}
.challenge .challenge-actions button:hover{background:#f3f8f8;border-color:#9fc0c7}
.challenge.challenge-tried{border-color:#d6e79a!important;background:#fbfdf4!important}
.challenge .challenge-done{font-size:9px;font-weight:900;letter-spacing:.08em;color:#61750e;margin-left:4px}

.free-starter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:12px}
.free-starter-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:5px;min-height:108px;padding:12px;border:1px solid #d4e2e5;border-radius:13px;background:#f8fbfb;color:#183b44;cursor:pointer}
.free-starter-card:hover{border-color:#81b7c1;background:#f2f9fa}
.free-starter-card b{font-size:12px}
.free-starter-card span{font-size:10px;line-height:1.4;color:#617d84}
.free-starter-card i{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#0e4655;color:#dff471;font-style:normal;font-size:15px}
.free-starter-card.is-resume{border-color:#cadf78;background:#fafde9}
.free-starter-card.is-resume i{background:#c0e42f;color:#17313a}
.free-starter-foot{margin-top:10px;font-size:10px;color:#6f858a;line-height:1.45}
.free-draft-status{display:inline-flex;align-items:center;gap:5px;margin-left:6px;color:#88a5ab;font-size:9px;font-weight:700}
.free-draft-status::before{content:'';width:6px;height:6px;border-radius:50%;background:#a7c52a}

@media(max-width:520px){
  .project-progress-steps{grid-template-columns:1fr}
  .free-starter-grid{grid-template-columns:1fr}
}


/* ===== SOURCE: arduino/workbench-v0810.css ===== */
/* AIM STEM LAB v0.8.10 — true full-mat working surface */
#benchstage{min-width:100%;min-height:100%;}
#bench{min-width:800px;min-height:430px;}
.benchviewport{background-attachment:local;overscroll-behavior:contain;}


/* ===== SOURCE: arduino/workbench-v090.css ===== */
/* AIM STEM LAB v0.9.0 — scalable component catalog */
.sidebar-pane[data-left-pane="parts"]{overflow-y:auto!important;overscroll-behavior:contain}
.catalog-controls{display:flex;gap:5px;overflow-x:auto;padding:2px 0 7px;scrollbar-width:none}
.catalog-controls::-webkit-scrollbar{display:none}
.catalog-controls button{flex:0 0 auto;padding:5px 8px!important;border-radius:999px!important;font-size:8px!important;font-weight:850!important;color:#85aab2!important;background:#082a34!important;border:1px solid #174754!important;min-height:0!important;height:auto!important}
.catalog-controls button.active{color:#09242c!important;background:#b6e626!important;border-color:#b6e626!important}
.catalog-legend{display:flex;flex-wrap:wrap;gap:7px 10px;margin:0 1px 10px;color:#789ba3;font-size:7.5px;font-weight:700}
.catalog-legend span{display:flex;align-items:center;gap:4px}.catalog-legend i{width:6px;height:6px;border-radius:50%;display:inline-block}.catalog-legend i.live{background:#8fd72d}.catalog-legend i.wire{background:#46b5da}.catalog-legend i.planned{background:#6a7880}
#drawer.catalog-library{display:block!important;overflow:visible!important}
.catalog-section{margin:0 0 14px}.catalog-section[hidden]{display:none!important}.catalog-section-head{display:flex;justify-content:space-between;gap:8px;margin:2px 3px 7px;color:#9dc0c6;font-size:8px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.catalog-section-head span:last-child{color:#547d86;font-size:7.5px;font-weight:700;letter-spacing:0;text-transform:none}
.catalog-list{display:grid;grid-template-columns:1fr;gap:6px}
#drawer .catalog-card{position:relative;display:grid!important;grid-template-columns:58px minmax(0,1fr) auto!important;grid-template-rows:auto!important;align-items:center!important;gap:8px!important;min-height:58px!important;height:58px!important;padding:5px 7px!important;text-align:left!important;border-radius:10px!important;overflow:hidden!important;background:#0b3440!important;border:1px solid rgba(113,164,174,.2)!important}
#drawer .catalog-card:hover:not(:disabled){background:#10414e!important;border-color:#2e7180!important}
#drawer .catalog-thumb{position:relative!important;display:grid!important;place-items:center!important;width:58px!important;height:46px!important;overflow:hidden!important;border-radius:7px!important;background:rgba(1,20,26,.38)!important;border:1px solid rgba(104,151,161,.14)!important;font-size:11px!important;font-weight:900!important;color:#89aeb5!important;pointer-events:none!important}
#drawer .catalog-thumb>*{position:absolute!important;left:50%!important;top:50%!important;margin:0!important;transform:translate(-50%,-50%) scale(var(--preview-scale,.35))!important;transform-origin:center!important}
#drawer .catalog-copy{min-width:0;display:flex;flex-direction:column;gap:3px}.catalog-copy strong{font-size:9.5px;line-height:1.15;color:#f2f9fa;font-weight:850}.catalog-copy small{font-size:7.5px;line-height:1.25;color:#7399a2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.capability{font-size:6.5px;font-weight:900;text-transform:uppercase;letter-spacing:.05em;border-radius:999px;padding:3px 5px;white-space:nowrap}.capability.live{color:#bce96c;background:#173d26;border:1px solid #315b32}.capability.wire{color:#9edcf1;background:#103b4b;border:1px solid #235c70}.capability.planned{color:#94a0a5;background:#24353b;border:1px solid #405158}
#drawer .catalog-card.is-planned{opacity:.66!important;cursor:not-allowed!important;background:#0a2932!important}.catalog-thumb.placeholder{letter-spacing:.05em}
/* Core parts can be more compact in two columns on wide drawer. */
@media(min-width:1440px){.catalog-section[data-category-section="basics"] .catalog-list{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-section[data-category-section="basics"] .catalog-card{grid-template-columns:1fr!important;grid-template-rows:36px auto!important;height:66px!important;min-height:66px!important;text-align:center!important;gap:2px!important}.catalog-section[data-category-section="basics"] .catalog-thumb{width:100%!important;height:36px!important}.catalog-section[data-category-section="basics"] .catalog-copy small,.catalog-section[data-category-section="basics"] .capability{display:none}.catalog-section[data-category-section="basics"] .catalog-copy strong{font-size:8px}}
/* Compact rail keeps only thumbnails; users can search/filter after expanding the sidebar. */
@media(max-width:1439px) and (min-width:1100px){.catalog-controls,.catalog-legend,.catalog-section-head{display:none!important}.catalog-list{gap:5px}.studio-sidebar #drawer .catalog-card{display:grid!important;grid-template-columns:1fr!important;place-items:center!important;width:100%!important;height:48px!important;min-height:48px!important;padding:3px!important}.studio-sidebar #drawer .catalog-thumb{width:44px!important;height:40px!important}.studio-sidebar #drawer .catalog-copy,.studio-sidebar #drawer .capability{display:none!important}}
@media(max-width:1099px){.catalog-list{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-section[data-category-section="basics"] .catalog-list{grid-template-columns:repeat(3,minmax(0,1fr))}.catalog-section[data-category-section="basics"] .catalog-card{grid-template-columns:50px minmax(0,1fr)!important}.catalog-controls{padding-right:4px}}
@media(max-width:620px){.catalog-list,.catalog-section[data-category-section="basics"] .catalog-list{grid-template-columns:1fr}.catalog-controls{position:sticky;top:0;z-index:6;background:#0b313b;padding-top:5px}.catalog-legend{display:none}}


/* ===== SOURCE: labs/arduino/components/extended-library.css ===== */
/* AIM STEM LAB v0.27.27 — extended parts visual integration */
body.arduino-page.arduino-extended-library-v2727 .part-a4988,
body.arduino-page.arduino-extended-library-v2727 .part-nlsf595,
body.arduino-page.arduino-extended-library-v2727 .part-relaymod,
body.arduino-page.arduino-extended-library-v2727 .part-shift165,
body.arduino-page.arduino-extended-library-v2727 .part-shift595,
body.arduino-page.arduino-extended-library-v2727 .part-mux16,
body.arduino-page.arduino-extended-library-v2727 .part-logic8,
body.arduino-page.arduino-extended-library-v2727 .part-microsd,
body.arduino-page.arduino-extended-library-v2727 .part-dpdtrelay,
body.arduino-page.arduino-extended-library-v2727 .part-slidepot,
body.arduino-page.arduino-extended-library-v2727 .part-breadboard_half,
body.arduino-page.arduino-extended-library-v2727 .part-breadboard_mini{
  filter:drop-shadow(0 10px 16px rgba(0,0,0,.18));
}
body.arduino-page.arduino-extended-library-v2727 .part-textlabel .handle,
body.arduino-page.arduino-extended-library-v2727 .part-wifiap .handle,
body.arduino-page.arduino-extended-library-v2727 .part-customchip .handle{opacity:.34}
body.arduino-page.arduino-extended-library-v2727 .part-textlabel:hover .handle,
body.arduino-page.arduino-extended-library-v2727 .part-wifiap:hover .handle,
body.arduino-page.arduino-extended-library-v2727 .part-customchip:hover .handle{opacity:1}
body.arduino-page.arduino-extended-library-v2727 #drawer .catalog-card[data-part-type="logic8"] .catalog-thumb{background:linear-gradient(145deg,#32113d,#5d1d65)!important}
body.arduino-page.arduino-extended-library-v2727 #drawer .catalog-card[data-part-type="a4988"] .catalog-thumb,
body.arduino-page.arduino-extended-library-v2727 #drawer .catalog-card[data-part-type="relaymod"] .catalog-thumb{background:linear-gradient(145deg,#072f2a,#0d4e43)!important}


/* ===== SOURCE: arduino/workbench-v091.css ===== */
/* AIM STEM LAB v0.9.1 — I2C LCD project panel */
.i2c-project-card{padding:14px 16px;color:#dceff2;background:linear-gradient(180deg,rgba(10,52,61,.88),rgba(8,39,48,.88));border:1px solid rgba(89,160,170,.24);border-radius:14px}
.i2c-project-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.i2c-project-top small{display:block;color:#78cbd1;font-size:9px;font-weight:800;letter-spacing:.14em}.i2c-project-top strong{display:block;margin-top:3px;font-size:16px;color:#fff}.i2c-address{padding:5px 9px;border-radius:999px;background:#102f36;border:1px solid rgba(129,206,213,.22);font:700 10px ui-monospace,SFMono-Regular,Consolas,monospace;color:#a9f0d2}.i2c-project-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:12px 0 9px}.i2c-project-grid span{display:flex;flex-direction:column;gap:2px;min-width:0;padding:8px 9px;border-radius:9px;background:rgba(255,255,255,.055);font-size:9px;color:#84aeb5}.i2c-project-grid b{font-size:12px;color:#f0fafa}.i2c-project-card p{margin:0;color:#9bc1c6;font-size:10px;line-height:1.45}
@media(max-width:620px){.i2c-project-grid{grid-template-columns:repeat(2,1fr)}}


/* ===== SOURCE: labs/arduino/workbench/workbench.css ===== */
/* AIM Arduino modular workbench polish v1 */
body.arduino-page{
  --arduino-mat:#082f3a;
  --arduino-mat-deep:#072833;
  --arduino-grid:rgba(122,177,188,.17);
  --arduino-wire-shadow:rgba(0,0,0,.46);
}
body.arduino-page .benchviewport{
  background-color:var(--arduino-mat)!important;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.018) 1px,transparent 1px),
    radial-gradient(var(--arduino-grid) 1px,transparent 1.1px)!important;
  background-size:80px 80px,80px 80px,20px 20px!important;
  background-position:0 0!important;
  cursor:default;
  scroll-behavior:auto;
}
body.arduino-page .benchviewport.is-part-drop-target{
  box-shadow:inset 0 0 0 3px rgba(94,234,212,.72),inset 0 0 70px rgba(20,184,166,.11);
}
body.arduino-page .benchviewport.is-part-drop-target::after{
  content:'Drop component here';position:sticky;left:50%;top:50%;z-index:30;display:grid;place-items:center;width:max-content;transform:translate(-50%,-50%);padding:10px 16px;border-radius:999px;background:rgba(7,35,44,.9);border:1px solid rgba(94,234,212,.55);color:#dffcf8;font-size:11px;font-weight:850;pointer-events:none;box-shadow:0 16px 40px rgba(0,0,0,.28)
}
body.arduino-page #benchstage{min-width:100%;min-height:100%;}
body.arduino-page #bench{isolation:isolate;}
body.arduino-page #wires{z-index:1!important;pointer-events:none;}
body.arduino-page #parts{position:absolute;inset:0;z-index:2;pointer-events:none;}
body.arduino-page #wires .wire-shadow{stroke:var(--arduino-wire-shadow)!important;}
body.arduino-page #wires .wire-core{filter:drop-shadow(0 1px 1px rgba(0,0,0,.32));}
body.arduino-page .part{
  z-index:2;cursor:grab;touch-action:none;transition:filter .14s ease,transform .14s ease;
}
body.arduino-page .part:hover{filter:drop-shadow(0 8px 10px rgba(0,0,0,.16));}
body.arduino-page .part.is-dragging{cursor:grabbing!important;filter:drop-shadow(0 12px 16px rgba(0,0,0,.25));z-index:8;}
body.arduino-page .part .pin{z-index:5!important;cursor:crosshair;}
body.arduino-page .part .handle{
  opacity:.42;transform:translateY(2px);transition:opacity .14s ease,transform .14s ease,background .14s ease;box-shadow:0 5px 14px rgba(0,0,0,.13);
}
body.arduino-page .part:hover .handle,
body.arduino-page .part:focus-within .handle,
body.arduino-page .part.is-dragging .handle{opacity:1;transform:translateY(0);background:rgba(7,34,43,.94)}
body.arduino-page .part .handle::before{content:'⠿';color:#78aeb7;font-size:12px;margin-right:1px}
body.arduino-page.arduino-sim-running .part{cursor:default;}
body.arduino-page.arduino-sim-running .part .handle{cursor:default;}
body.arduino-page .canvas-label{backdrop-filter:blur(8px);background:rgba(7,35,44,.74)!important;border-color:rgba(101,155,166,.32)!important;}
body.arduino-page .canvas-tools{backdrop-filter:blur(9px);box-shadow:0 8px 18px rgba(0,0,0,.15)}
body.arduino-page .canvas-tools--zoom #zoomlevel{min-width:48px}
body.arduino-page #drawer button[data-part-type]{cursor:grab;}
body.arduino-page #drawer button[data-part-type]:active{cursor:grabbing;}
body.arduino-page.arduino-library-dragging .benchviewport{box-shadow:inset 0 0 0 1px rgba(94,234,212,.26)}

/* Code workspace: calm IDE-style surface, with optional 50/50 split. */
body.arduino-page [data-studio-pane="code"]{background:#0e1726!important;}
body.arduino-page [data-studio-pane="code"] .codepanel{height:100%;background:#0e1726!important;color:#d9e6f2!important;border:0!important;border-radius:0!important;display:flex!important;flex-direction:column!important;}
body.arduino-page [data-studio-pane="code"] .filetab{
  min-height:44px;height:44px;flex:0 0 44px;background:#131f30!important;border-bottom:1px solid #26364b!important;color:#dce8f6!important;padding:0 10px!important;gap:7px!important;
}
body.arduino-page [data-studio-pane="code"] .filetab strong{font-size:11px;color:#f1f6fb}
body.arduino-page [data-studio-pane="code"] .filetab button{color:#9db3c8!important;background:#17273a!important;border:1px solid #2c4057!important;border-radius:7px!important;padding:5px 7px!important;margin-left:0!important;}
body.arduino-page [data-studio-pane="code"] .filetab button:hover{background:#213650!important;color:#fff!important;}
body.arduino-page [data-studio-pane="code"] .filetab #downloadino{margin-left:auto!important;}
body.arduino-page [data-studio-pane="code"] .code-expand{white-space:nowrap;}
body.arduino-page [data-studio-pane="code"] .code-shortcuts{font-size:8px;color:#658099;white-space:nowrap;margin-left:3px;}
body.arduino-page [data-studio-pane="code"] .experiment{background:#0f1a2a!important;color:#a8bed2!important;border-bottom:1px solid #203149!important;}
body.arduino-page [data-studio-pane="code"] .editorwrap{height:auto!important;min-height:0!important;flex:1 1 auto!important;background:#0b1320!important;padding:14px 12px 18px 0!important;}
body.arduino-page [data-studio-pane="code"] #lines{color:#536a82!important;background:#0b1320!important;font-size:12px!important;line-height:1.75!important;}
body.arduino-page [data-studio-pane="code"] textarea#code{color:#d7e4f2!important;background:#0b1320!important;font:500 12.5px/1.75 ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace!important;caret-color:#5eead4;scrollbar-color:#31465e #0b1320;}
body.arduino-page [data-studio-pane="code"] textarea#code:focus{box-shadow:inset 3px 0 #14b8a6!important;}
body.arduino-page [data-studio-pane="code"] .codefoot{background:#111c2c!important;border-top:1px solid #25364b!important;color:#7890a7!important;min-height:36px;padding:7px 10px!important;}
body.arduino-page [data-studio-pane="code"] .codefoot button{color:#8fc9c4!important;}
body.arduino-page.arduino-code-wide .workzone{grid-template-columns:minmax(420px,1fr) var(--splitter-w) var(--inspector-w)!important;}
body.arduino-page.arduino-code-wide .inspector{box-shadow:-18px 0 40px rgba(2,18,26,.12)}

@media(max-width:1299px){
  body.arduino-page [data-studio-pane="code"] .code-shortcuts{display:none}
  body.arduino-page [data-studio-pane="code"] .code-expand{display:none}
}
@media(max-width:1099px){
  body.arduino-page .part .handle{opacity:.78}
  body.arduino-page [data-studio-pane="code"] .editorwrap{min-height:280px!important}
}


/* AIM Arduino Workbench v0.27.10 — precision wiring + clean builder refinements */
body.arduino-page #wires{z-index:1!important}
body.arduino-page #parts{z-index:3!important}
body.arduino-page .part{z-index:3}
body.arduino-page .part.is-dragging{z-index:12!important}

/* Pins are actual electrical terminals: keep their centre exactly on the component pin coordinates. */
body.arduino-page .pin{
  transform:translate(-50%,-50%)!important;
  width:12px!important;height:12px!important;min-width:12px!important;min-height:12px!important;
  border:1.5px solid #d9b952!important;
  background:rgba(7,36,45,.34)!important;
  box-shadow:0 0 0 1px rgba(4,23,29,.9),0 1px 4px rgba(0,0,0,.28)!important;
  transition:background .12s ease,border-color .12s ease,box-shadow .12s ease,transform .12s ease;
}
body.arduino-page .pin:hover,body.arduino-page .pin:focus-visible,body.arduino-page .pin.pending{
  background:#ffd65c!important;border-color:#fff0a9!important;transform:translate(-50%,-50%) scale(1.18)!important;
}
body.arduino-page .pin.is-connected{
  --pin-wire:#16a34a;
  border-color:var(--pin-wire)!important;
  background:radial-gradient(circle,var(--pin-wire) 0 34%,#0c2d37 38% 100%)!important;
  box-shadow:0 0 0 2px color-mix(in srgb,var(--pin-wire) 42%,transparent),0 1px 4px rgba(0,0,0,.32)!important;
}
body.arduino-page .part-resistor .pin{
  width:14px!important;height:14px!important;min-width:14px!important;min-height:14px!important;
  border-width:2px!important;
}
body.arduino-page .part-resistor wokwi-resistor{filter:drop-shadow(0 2px 2px rgba(0,0,0,.16))}

/* Movable wiring palette */
body.arduino-page .canvas-tools--top-left.aim-wire-tool{
  top:50px;left:14px;right:auto;bottom:auto;
  padding:5px 6px 5px 5px!important;
  border-radius:11px!important;
  border:1px solid rgba(112,163,175,.42)!important;
  background:rgba(6,31,40,.91)!important;
  box-shadow:0 12px 30px rgba(0,0,0,.18)!important;
  z-index:25!important;
  transition:box-shadow .14s ease,border-color .14s ease;
}
body.arduino-page .canvas-tools--top-left.aim-wire-tool.is-tool-dragging{
  border-color:rgba(94,234,212,.7)!important;box-shadow:0 18px 42px rgba(0,0,0,.3)!important;user-select:none
}
body.arduino-page .tool-drag-grip{
  width:25px!important;min-width:25px!important;padding:0!important;cursor:grab!important;
  font:900 13px/1 ui-monospace,SFMono-Regular,Consolas,monospace!important;color:#7aa5ae!important;
  background:#0b303b!important;border-color:#2e5762!important
}
body.arduino-page .tool-drag-grip:active{cursor:grabbing!important}
body.arduino-page .canvas-tools--top-left.aim-wire-tool .wire-palette{display:flex;gap:4px;align-items:center}
body.arduino-page .canvas-tools--top-left.aim-wire-tool .wire-palette button{width:22px!important;min-width:22px!important;height:22px!important;min-height:22px!important;border-radius:6px!important}

/* Code should read like a clean sketch editor, not a spreadsheet gutter. */
body.arduino-page [data-studio-pane="code"] #lines{display:none!important}
body.arduino-page [data-studio-pane="code"] .editorwrap{padding:16px 14px 20px!important;display:block!important}
body.arduino-page [data-studio-pane="code"] textarea#code{
  padding:0!important;width:100%!important;height:100%!important;display:block!important;
  color:#e3edf7!important;background:#0b1320!important;
  font:500 13px/1.78 ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace!important;
  caret-color:#f5c451!important;box-shadow:none!important;border:0!important;outline:0!important;
}
body.arduino-page [data-studio-pane="code"] textarea#code:focus{box-shadow:none!important;outline:0!important}
body.arduino-page [data-studio-pane="code"] .editorwrap:focus-within{box-shadow:inset 0 0 0 1px rgba(89,116,146,.22)!important}

/* Parts catalogue: prioritise readable names over tiny two-column cards. */
body.arduino-page .sidebar-pane[data-left-pane="parts"]{scrollbar-gutter:stable}
body.arduino-page #drawer.catalog-library .catalog-list{grid-template-columns:1fr!important;gap:7px!important}
body.arduino-page #drawer.catalog-library .catalog-card{
  grid-template-columns:60px minmax(0,1fr) auto!important;grid-template-rows:1fr!important;
  height:62px!important;min-height:62px!important;padding:6px 8px!important;text-align:left!important;gap:9px!important;
}
body.arduino-page #drawer.catalog-library .catalog-thumb{width:58px!important;height:48px!important}
body.arduino-page #drawer.catalog-library .catalog-copy{display:flex!important;min-width:0!important;text-align:left!important}
body.arduino-page #drawer.catalog-library .catalog-copy strong{font-size:10px!important;white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
body.arduino-page #drawer.catalog-library .catalog-copy small{display:-webkit-box!important;font-size:7.3px!important}
body.arduino-page #drawer.catalog-library .capability{display:inline-flex!important;align-items:center!important}
body.arduino-page .catalog-controls{position:sticky;top:0;z-index:8;background:#0b313b;padding:5px 0 8px!important}
body.arduino-page .catalog-section-head{margin-top:8px!important}
@media(max-width:1439px) and (min-width:1100px){
  body.arduino-page .catalog-controls{display:flex!important}
  body.arduino-page .catalog-legend{display:flex!important}
  body.arduino-page .catalog-section-head{display:flex!important}
  body.arduino-page .studio-sidebar #drawer.catalog-library .catalog-card{grid-template-columns:54px minmax(0,1fr)!important;height:56px!important;min-height:56px!important;padding:4px 6px!important}
  body.arduino-page .studio-sidebar #drawer.catalog-library .catalog-thumb{width:52px!important;height:44px!important}
  body.arduino-page .studio-sidebar #drawer.catalog-library .catalog-copy{display:flex!important}
  body.arduino-page .studio-sidebar #drawer.catalog-library .capability{display:none!important}
}
body.sidebar-collapsed #drawer.catalog-library .catalog-copy,body.sidebar-collapsed #drawer.catalog-library .capability{display:none!important}
body.sidebar-collapsed #drawer.catalog-library .catalog-card{grid-template-columns:1fr!important;place-items:center!important;height:48px!important;min-height:48px!important;padding:3px!important}
body.arduino-page.arduino-grid-hidden .benchviewport{
  background-image:linear-gradient(rgba(255,255,255,.012),rgba(255,255,255,.012))!important;
}
body.arduino-page #wires .wire-terminal{filter:drop-shadow(0 0 2px rgba(0,0,0,.48))}

/* v0.27.11 — dedicated floating wire card + breadboard presentation */
body.arduino-page .canvas-tools--top-left.aim-edit-tools{padding:4px!important;gap:4px!important;background:rgba(7,34,43,.82)!important;backdrop-filter:blur(8px)}
body.arduino-page .aim-wire-card{
  position:absolute;z-index:28;width:214px;border-radius:15px;border:1px solid rgba(111,166,176,.42);
  background:rgba(5,29,38,.94);box-shadow:0 18px 42px rgba(0,0,0,.24);backdrop-filter:blur(12px);overflow:hidden;
}
body.arduino-page .aim-wire-card.is-tool-dragging{border-color:rgba(94,234,212,.72);box-shadow:0 24px 58px rgba(0,0,0,.34)}
body.arduino-page .aim-wire-card-head{height:40px;display:grid;grid-template-columns:30px 1fr auto;gap:8px;align-items:center;padding:5px 7px;border-bottom:1px solid rgba(93,145,156,.24);background:linear-gradient(180deg,rgba(18,58,69,.96),rgba(8,39,49,.96))}
body.arduino-page .aim-wire-card-grip{width:30px!important;height:30px!important;min-width:30px!important;padding:0!important;border-radius:8px!important;border:1px solid #315b66!important;background:#092f3a!important;color:#83adb6!important;cursor:grab!important;font:900 14px/1 ui-monospace,SFMono-Regular,Consolas,monospace!important}
body.arduino-page .aim-wire-card-grip:active{cursor:grabbing!important}
body.arduino-page .aim-wire-card-head small{display:block;color:#6f9da7;font-size:6px;font-weight:900;letter-spacing:.12em}
body.arduino-page .aim-wire-card-head strong{display:block;color:#eefbfb;font-size:10px;margin-top:1px}
body.arduino-page .aim-wire-card-state{min-width:48px;padding:5px 7px;border-radius:999px;background:#103f49;color:#bcebe4;font-size:7px;font-weight:900;text-align:center}
body.arduino-page .aim-wire-card-body{display:grid;grid-template-columns:auto 31px 1fr;gap:6px;align-items:center;padding:7px}
body.arduino-page .aim-wire-card-body #wirebuilder{width:auto!important;min-width:62px!important;height:31px!important;min-height:31px!important;border-radius:8px!important;padding:0 9px!important;background:#0b5961!important;border-color:#2f7880!important;color:#e7ffff!important;font-weight:900!important}
body.arduino-page .aim-wire-card-body .wire-colour{display:grid!important;width:31px!important;height:31px!important}
body.arduino-page .aim-wire-card-body .wire-palette{display:grid!important;grid-template-columns:repeat(5,1fr);gap:4px;padding:0!important;border:0!important;background:transparent!important;backdrop-filter:none!important}
body.arduino-page .aim-wire-card-body .wire-palette button{width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;border-radius:7px!important;transition:transform .12s ease,box-shadow .12s ease!important}
body.arduino-page .aim-wire-card-body .wire-palette button.is-active{transform:translateY(-1px);box-shadow:0 0 0 2px #e8ffff,0 0 0 4px rgba(94,234,212,.22)!important}
body.arduino-page .aim-wire-card-body #cancelwire{grid-column:1/-1;width:100%!important;height:29px!important;min-height:29px!important;border-radius:8px!important;color:#ffdddd!important;background:#4a252b!important;border-color:#6b343d!important}
body.arduino-page .part.part-breadboard{filter:drop-shadow(0 10px 16px rgba(0,0,0,.16));}
body.arduino-page .part.part-breadboard:hover{filter:drop-shadow(0 14px 20px rgba(0,0,0,.22));}
body.arduino-page .part.part-breadboard .handle{background:rgba(17,44,52,.86)!important;border-color:rgba(139,173,179,.35)!important}
body.arduino-page .part.part-breadboard .handle span{color:#e8f3f5!important}
body.arduino-page .part.part-breadboard .pin{width:10px!important;height:10px!important;min-width:10px!important;min-height:10px!important;opacity:.62;background:rgba(8,39,47,.2)!important;border-color:rgba(168,153,86,.78)!important}
body.arduino-page .part.part-breadboard .pin:hover,body.arduino-page .part.part-breadboard .pin.pending,body.arduino-page .part.part-breadboard .pin.first-project-target{opacity:1!important}
body.arduino-page .part.part-breadboard .pin.is-connected{opacity:1!important}
@media(max-width:900px){body.arduino-page .aim-wire-card{width:195px}.aim-wire-card-body .wire-palette{grid-template-columns:repeat(5,1fr)!important}}


/* ===== SOURCE: labs/arduino/design/approved-ui.css ===== */
/* AIM Arduino Approved UI v0.27.12
   Visual target: approved AIM Arduino Workbench concept.
   Scope: Arduino page only. Existing simulator logic remains unchanged.
*/
body.arduino-page.arduino-approved-v2713{
  --approved-teal:#0aa1a2;
  --approved-teal-dark:#08777d;
  --approved-lime:#b7e82f;
  --approved-dark:#07303a;
  --approved-dark-2:#082a34;
  --approved-panel:#0d3440;
  --approved-code:#0b1a2d;
  --approved-code-2:#102238;
  --approved-line:#dce7ec;
  --approved-text:#0f2c3b;
  --approved-muted:#617985;
  background:#f4f8fa;
}

/* ----- Global AIM navigation ----- */
body.arduino-page.arduino-approved-v2713 .aim-nav{
  min-height:64px!important;
  padding:9px 24px!important;
  gap:20px!important;
  flex-wrap:nowrap!important;
  border-bottom:1px solid #dbe7eb!important;
  box-shadow:0 1px 0 rgba(13,47,60,.02);
}
body.arduino-page.arduino-approved-v2713 .aim-brand b{
  padding:9px 12px!important;
  border-radius:9px!important;
  font-size:20px!important;
  background:#0a8b8e!important;
}
body.arduino-page.arduino-approved-v2713 .aim-brand span{font-size:13px!important;line-height:1.15}
body.arduino-page.arduino-approved-v2713 .aim-brand small{font-size:11px!important;margin-top:3px}
body.arduino-page.arduino-approved-v2713 .aim-nav nav{gap:5px!important;flex:0 1 auto!important;white-space:nowrap}
body.arduino-page.arduino-approved-v2713 .aim-nav nav a{min-height:38px!important;padding:8px 11px!important;font-size:13px!important}
body.arduino-page.arduino-approved-v2713 .aim-nav nav a[aria-current=page]{background:linear-gradient(135deg,#b0172f,#8a1020)!important;color:#fff!important;box-shadow:0 8px 18px rgba(138,16,32,.18)!important}
body.arduino-page.arduino-approved-v2713 .arduino-nav-extras{margin-left:auto;display:flex;align-items:center;gap:10px;min-width:0}
body.arduino-page.arduino-approved-v2713 .arduino-global-search{position:relative;width:clamp(270px,29vw,480px)}
body.arduino-page.arduino-approved-v2713 .arduino-global-search::before{content:'⌕';position:absolute;left:13px;top:50%;transform:translateY(-50%);font-size:19px;color:#607787;pointer-events:none}
body.arduino-page.arduino-approved-v2713 .arduino-global-search input{width:100%;height:38px;border:1px solid #d6e2e8;border-radius:10px;background:#fbfdfe;padding:0 14px 0 38px;color:#183b49;font-size:12px;outline:none;box-shadow:inset 0 1px 1px rgba(13,42,55,.02)}
body.arduino-page.arduino-approved-v2713 .arduino-global-search input:focus{border-color:#82c8ca;box-shadow:0 0 0 3px rgba(10,161,162,.10)}
body.arduino-page.arduino-approved-v2713 .arduino-nav-icon{width:36px;height:36px;border:0;background:#fff;color:#214756;border-radius:50%;display:grid;place-items:center;font-size:16px}
body.arduino-page.arduino-approved-v2713 .arduino-nav-icon:hover{background:#f0f6f7}
body.arduino-page.arduino-approved-v2713 .arduino-profile{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#315f85;color:#fff;font-size:11px;font-weight:900;box-shadow:0 0 0 3px #eef5f7}
body.arduino-page.arduino-approved-v2713 .aim-version{font-size:10px!important;margin-left:4px!important;color:#68808a!important}

/* ----- Command / project bar ----- */
body.arduino-page.arduino-approved-v2713 .arduino-studio{min-height:calc(100vh - 64px)!important}
body.arduino-page.arduino-approved-v2713 .studio-command{
  min-height:118px!important;
  padding:10px 22px 0!important;
  grid-template-columns:250px minmax(0,1fr) auto!important;
  grid-template-rows:auto 35px!important;
  column-gap:18px!important;
  row-gap:5px!important;
  background:#fff!important;
  border-bottom:1px solid #dce8ec!important;
}
body.arduino-page.arduino-approved-v2713 .studio-identity{align-self:center;gap:12px!important}
body.arduino-page.arduino-approved-v2713 .studio-mark{width:50px!important;height:50px!important;border-radius:11px!important;background:linear-gradient(180deg,#103e52,#0b3041)!important;color:#c5f233!important;box-shadow:0 8px 18px rgba(7,42,55,.12)!important;font-size:24px!important}
body.arduino-page.arduino-approved-v2713 .studio-name small{font-size:9px!important;letter-spacing:.14em!important;color:#547680!important}
body.arduino-page.arduino-approved-v2713 .studio-name strong{font-size:18px!important;color:#163c49!important}
body.arduino-page.arduino-approved-v2713 .studio-project{padding-top:0!important;align-self:center}
body.arduino-page.arduino-approved-v2713 .project-title-row{gap:12px!important;align-items:center}
body.arduino-page.arduino-approved-v2713 #projectmeta{font-size:9px!important;letter-spacing:.14em!important;color:#07898e!important;font-weight:900!important}
body.arduino-page.arduino-approved-v2713 #stageSummary{display:none!important}
body.arduino-page.arduino-approved-v2713 .project-main-row{display:flex!important;align-items:baseline!important;gap:8px!important;min-width:0}
body.arduino-page.arduino-approved-v2713 .project-main-row h1{font-size:22px!important;line-height:1.08!important;margin:2px 0 0!important;letter-spacing:-.025em!important;color:#12343f!important;white-space:nowrap}
body.arduino-page.arduino-approved-v2713 .project-main-row p{font-size:11px!important;color:#657b86!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0!important}
body.arduino-page.arduino-approved-v2713 .project-meta-row{margin-top:5px!important;gap:6px!important}
body.arduino-page.arduino-approved-v2713 .project-meta-row span{min-height:22px!important;padding:3px 8px!important;border-radius:999px!important;background:#f0f5f7!important;color:#506b78!important;border:0!important;font-size:9px!important}
body.arduino-page.arduino-approved-v2713 .project-meta-row b{font-size:9px!important;color:#315765!important}
body.arduino-page.arduino-approved-v2713 .studio-actions{align-self:center;gap:7px!important}
body.arduino-page.arduino-approved-v2713 .studio-actions .quiet-action{min-height:42px!important;height:42px!important;border-radius:10px!important;padding:0 14px!important;background:#fff!important;border:1px solid #d4e2e8!important;color:#214957!important;font-size:11px!important;font-weight:800!important;box-shadow:0 4px 10px rgba(18,55,70,.025)}
body.arduino-page.arduino-approved-v2713 .studio-actions .run-action{min-height:42px!important;height:42px!important;border-radius:10px!important;padding:0 25px!important;background:linear-gradient(90deg,#0da19f,#07938f)!important;color:#fff!important;border:0!important;font-size:12px!important;font-weight:900!important;box-shadow:0 8px 18px rgba(10,153,151,.16)}
body.arduino-page.arduino-approved-v2713 .studio-actions .run-action::after{content:'⌄';margin-left:12px;font-size:11px;opacity:.86}
body.arduino-page.arduino-approved-v2713 .studio-actions .run-action.running{background:linear-gradient(90deg,#b9473d,#9f3832)!important}
body.arduino-page.arduino-approved-v2713 .studio-actions .run-action.running::after{content:'';margin-left:0}
body.arduino-page.arduino-approved-v2713 .studio-progress{grid-column:1/-1!important;grid-row:2!important;min-height:35px!important;height:35px!important;margin:0 -22px!important;padding:0 22px!important;background:#fff!important;border-top:1px solid #edf2f4!important;display:grid!important;grid-template-columns:repeat(6,1fr)!important;gap:0!important}
body.arduino-page.arduino-approved-v2713 .studio-progress .labpath__stage{min-width:0!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;border-bottom:3px solid transparent!important;padding:0!important;color:#55727d!important}
body.arduino-page.arduino-approved-v2713 .studio-progress .labpath__stage i{width:22px!important;height:22px!important;border-radius:50%!important;background:#e4f2f3!important;color:#3d6b75!important;font-size:9px!important;font-style:normal!important;font-weight:900!important;display:grid!important;place-items:center!important}
body.arduino-page.arduino-approved-v2713 .studio-progress .labpath__stage b{font-size:9px!important;white-space:nowrap}
body.arduino-page.arduino-approved-v2713 .studio-progress .labpath__stage small{display:none!important}
body.arduino-page.arduino-approved-v2713 .studio-progress .labpath__stage.is-active,
body.arduino-page.arduino-approved-v2713 .studio-progress .labpath__stage.active{border-bottom-color:#31bd88!important;color:#1b5f5c!important;background:linear-gradient(180deg,#fff,#f4fbf7)!important}
body.arduino-page.arduino-approved-v2713 .studio-progress .labpath__stage.is-active i,
body.arduino-page.arduino-approved-v2713 .studio-progress .labpath__stage.active i{background:#13a872!important;color:#fff!important;box-shadow:0 0 0 3px rgba(19,168,114,.11)}

/* ----- Main three-zone engineering studio ----- */
body.arduino-page.arduino-approved-v2713 .studio-body{height:calc(100vh - 182px)!important;min-height:600px!important;display:grid!important;grid-template-columns:300px minmax(620px,1fr)!important;background:#082f39!important;overflow:hidden!important}
body.arduino-page.arduino-approved-v2713 .studio-sidebar{width:300px!important;min-width:300px!important;background:linear-gradient(180deg,#083541,#07303b)!important;border-right:1px solid rgba(118,183,192,.22)!important;color:#d8ecef!important;overflow:hidden!important}
body.arduino-page.arduino-approved-v2713 .sidebar-head{height:58px!important;padding:9px 12px!important;border-bottom:1px solid rgba(134,192,199,.12)!important;gap:8px!important}
body.arduino-page.arduino-approved-v2713 .sidebar-tabs{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important}
body.arduino-page.arduino-approved-v2713 .sidebar-tabs button{min-height:40px!important;border:1px solid rgba(138,199,207,.13)!important;border-radius:9px!important;background:#0b3c48!important;color:#9dbbc1!important;font-size:11px!important;font-weight:800!important}
body.arduino-page.arduino-approved-v2713 .sidebar-tabs button[aria-selected=true]{background:#0d4855!important;color:#fff!important;box-shadow:inset 0 -3px var(--approved-lime)!important;border-color:#2d6570!important}
body.arduino-page.arduino-approved-v2713 .sidebar-toggle{width:36px!important;height:40px!important;border-radius:9px!important;background:#0b3c48!important;color:#b5d0d5!important;border:1px solid rgba(138,199,207,.13)!important}
body.arduino-page.arduino-approved-v2713 .sidebar-pane[data-left-pane=parts]{padding:10px 12px 70px!important;overflow:auto!important;scrollbar-width:thin;scrollbar-color:#2f6470 transparent}
body.arduino-page.arduino-approved-v2713 .part-search{display:block!important;margin:0 0 10px!important}
body.arduino-page.arduino-approved-v2713 .part-search input{width:100%!important;height:42px!important;border-radius:9px!important;border:1px solid #245764!important;background:#0a3540!important;color:#e5f2f4!important;padding:0 12px!important;font-size:11px!important}
body.arduino-page.arduino-approved-v2713 .part-search input::placeholder{color:#8eb1b9!important}
body.arduino-page.arduino-approved-v2713 .sidebar-caption{padding:3px 1px 7px!important;color:#8bb3bc!important;font-size:9px!important;letter-spacing:.08em!important}
body.arduino-page.arduino-approved-v2713 .catalog-controls{display:flex!important;gap:6px!important;flex-wrap:wrap!important;margin:0 0 10px!important}
body.arduino-page.arduino-approved-v2713 .catalog-controls button{height:30px!important;min-height:30px!important;border-radius:999px!important;padding:0 11px!important;background:#0a3945!important;border:1px solid #275966!important;color:#b5d0d6!important;font-size:9px!important;font-weight:800!important}
body.arduino-page.arduino-approved-v2713 .catalog-controls button.active{background:#b9ed3b!important;border-color:#b9ed3b!important;color:#193f30!important;box-shadow:0 5px 12px rgba(185,237,59,.12)}
body.arduino-page.arduino-approved-v2713 #drawer.catalog-library{display:grid!important;gap:7px!important;overflow:visible!important}
body.arduino-page.arduino-approved-v2713 #drawer .catalog-section{margin:0!important}
body.arduino-page.arduino-approved-v2713 #drawer .catalog-section-head{min-height:34px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;color:#d9ecf0!important;border:0!important;padding:4px 2px!important;cursor:pointer!important}
body.arduino-page.arduino-approved-v2713 #drawer .catalog-section-head span:first-child{font-size:10px!important;font-weight:900!important}
body.arduino-page.arduino-approved-v2713 #drawer .catalog-section-head span:first-child::after{content:'⌄';margin-left:8px;color:#87abb2}
body.arduino-page.arduino-approved-v2713 #drawer .catalog-section-head span:last-child{display:none!important}
body.arduino-page.arduino-approved-v2713 #drawer .catalog-list{display:grid!important;grid-template-columns:1fr!important;gap:7px!important}
body.arduino-page.arduino-approved-v2713 #drawer .catalog-card{position:relative!important;min-height:58px!important;height:58px!important;display:grid!important;grid-template-columns:58px minmax(0,1fr) 20px!important;align-items:center!important;gap:9px!important;padding:5px 8px!important;border-radius:10px!important;border:1px solid #255966!important;background:#0d3b47!important;color:#eaf6f7!important;text-align:left!important;box-shadow:none!important}
body.arduino-page.arduino-approved-v2713 #drawer .catalog-card::after{content:'⋮';grid-column:3;grid-row:1;color:#a6c6cc;font-size:18px;justify-self:center;line-height:1}
body.arduino-page.arduino-approved-v2713 #drawer .catalog-card:hover{background:#104653!important;border-color:#337480!important;transform:translateY(-1px)!important}
body.arduino-page.arduino-approved-v2713 #drawer .catalog-thumb{width:54px!important;height:46px!important;border-radius:8px!important;background:#0a303a!important;display:grid!important;place-items:center!important;overflow:hidden!important}
body.arduino-page.arduino-approved-v2713 #drawer .catalog-copy{display:flex!important;flex-direction:column!important;gap:1px!important;min-width:0!important}
body.arduino-page.arduino-approved-v2713 #drawer .catalog-copy strong{font-size:10px!important;color:#fff!important;white-space:normal!important}
body.arduino-page.arduino-approved-v2713 #drawer .catalog-copy small{font-size:7.5px!important;line-height:1.35!important;color:#91b0b7!important;display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body.arduino-page.arduino-approved-v2713 #drawer .capability{display:none!important}
body.arduino-page.arduino-approved-v2713 #drawer .is-planned{opacity:.55!important}
body.arduino-page.arduino-approved-v2713 .parts-note{display:none!important}
body.arduino-page.arduino-approved-v2713 .sidebar-foot{position:absolute!important;bottom:0!important;left:0!important;right:0!important;height:36px!important;padding:10px 12px!important;border-top:1px solid rgba(140,194,201,.11)!important;background:#062a34!important;color:#7da6ae!important;font-size:8px!important}

/* ----- Workbench and right dock split ----- */
body.arduino-page.arduino-approved-v2713 .studio-main{min-width:0!important;overflow:hidden!important;background:#082f39!important}
body.arduino-page.arduino-approved-v2713 .workzone{height:100%!important;display:grid!important;grid-template-columns:minmax(620px,1fr) 470px!important;gap:0!important;overflow:hidden!important}
body.arduino-page.arduino-approved-v2713 .workspace-splitter{display:none!important}
body.arduino-page.arduino-approved-v2713 .benchpanel{position:relative!important;min-width:0!important;height:100%!important;border:0!important;border-radius:0!important;background:#082f39!important;overflow:hidden!important}
body.arduino-page.arduino-approved-v2713 .benchviewport{height:100%!important;min-height:0!important;border-radius:0!important;border:0!important;background-color:#082f39!important;background-image:radial-gradient(rgba(100,173,184,.20) 1px,transparent 1.3px)!important;background-size:22px 22px!important;box-shadow:none!important}
body.arduino-page.arduino-approved-v2713 .canvas-label{left:18px!important;top:14px!important;min-height:40px!important;border-radius:9px!important;background:#0b3844!important;border:1px solid #285965!important;padding:0 12px!important;color:#eaf5f6!important;display:flex!important;align-items:center!important;gap:8px!important;box-shadow:0 8px 18px rgba(0,0,0,.12)!important;z-index:40!important}
body.arduino-page.arduino-approved-v2713 .canvas-label>span:first-child{color:#27c0b6!important}
body.arduino-page.arduino-approved-v2713 .canvas-label strong{font-size:10px!important}
body.arduino-page.arduino-approved-v2713 .canvas-partcount{display:none!important}
body.arduino-page.arduino-approved-v2713 .bench-project-name{height:40px;display:flex;align-items:center;gap:8px;padding:0 11px;border-radius:9px;border:1px solid #285965;background:#0b3844;color:#d7eaed;font-size:9px;font-weight:750;position:absolute;left:220px;top:14px;z-index:40;box-shadow:0 8px 18px rgba(0,0,0,.10)}
body.arduino-page.arduino-approved-v2713 .bench-project-name button{width:24px;height:24px;border:0;background:transparent;color:#92b6bd;font-size:11px;border-radius:7px}
body.arduino-page.arduino-approved-v2713 .bench-project-name button:hover{background:#124954;color:#fff}
body.arduino-page.arduino-approved-v2713 .canvas-tools--top-right{right:18px!important;top:14px!important;z-index:43!important;background:transparent!important;border:0!important;padding:0!important;gap:7px!important}
body.arduino-page.arduino-approved-v2713 .canvas-tools--top-right button{width:40px!important;height:40px!important;border-radius:9px!important;background:#0b3844!important;color:#d5eaed!important;border:1px solid #285965!important;box-shadow:0 8px 18px rgba(0,0,0,.10)!important}
body.arduino-page.arduino-approved-v2713 .canvas-tools--zoom{right:20px!important;bottom:54px!important;z-index:43!important;background:#0b3844!important;border:1px solid #285965!important;border-radius:11px!important;padding:5px!important;gap:5px!important;box-shadow:0 10px 20px rgba(0,0,0,.13)!important}
body.arduino-page.arduino-approved-v2713 .canvas-tools--zoom button{height:34px!important;min-height:34px!important;border-radius:8px!important;background:#0f4653!important;border:1px solid #346775!important;color:#e4f2f4!important}
body.arduino-page.arduino-approved-v2713 .canvas-tools--zoom #zoomlevel{min-width:52px!important;font-size:9px!important;color:#dcecef!important}
body.arduino-page.arduino-approved-v2713 .canvas-tools--top-left.aim-edit-tools{left:18px!important;top:62px!important;background:transparent!important;border:0!important;padding:0!important;gap:7px!important;z-index:42!important}
body.arduino-page.arduino-approved-v2713 .canvas-tools--top-left.aim-edit-tools button{width:38px!important;height:34px!important;border-radius:8px!important;background:#0b3844!important;color:#94b5bc!important;border:1px solid #285965!important}
body.arduino-page.arduino-approved-v2713 .tool-separator{display:none!important}
body.arduino-page.arduino-approved-v2713 .benchcorner{left:18px!important;bottom:56px!important;color:#426d76!important;font-size:7px!important;letter-spacing:1.2px!important}
body.arduino-page.arduino-approved-v2713 #bench{transform-origin:top left!important}
body.arduino-page.arduino-approved-v2713 #wires{z-index:1!important}
body.arduino-page.arduino-approved-v2713 #parts{z-index:2!important}
body.arduino-page.arduino-approved-v2713 #wires path{stroke-width:4!important;filter:drop-shadow(0 2px 1px rgba(0,0,0,.32))!important;stroke-linecap:round!important;stroke-linejoin:round!important}
body.arduino-page.arduino-approved-v2713 .part{filter:drop-shadow(0 9px 11px rgba(0,0,0,.16))}
body.arduino-page.arduino-approved-v2713 .part:hover{filter:drop-shadow(0 12px 15px rgba(0,0,0,.22))}
body.arduino-page.arduino-approved-v2713 .part .handle{opacity:.45!important;transition:opacity .12s ease!important;background:#0e3943!important;border-color:#2a5b65!important;color:#c5d9dd!important}
body.arduino-page.arduino-approved-v2713 .part:hover .handle,body.arduino-page.arduino-approved-v2713 .part.selected .handle{opacity:1!important}

/* ----- Floating wire colour card ----- */
body.arduino-page.arduino-approved-v2713 .aim-wire-card{width:205px!important;border-radius:12px!important;border:1px solid #2c5f6c!important;background:#0a3541!important;box-shadow:0 18px 36px rgba(0,0,0,.24)!important;z-index:80!important;overflow:hidden!important}
body.arduino-page.arduino-approved-v2713 .aim-wire-card-head{height:39px!important;padding:0 10px!important;display:flex!important;align-items:center!important;gap:7px!important;border-bottom:1px solid rgba(137,190,199,.12)!important;background:#0b3945!important;cursor:grab!important}
body.arduino-page.arduino-approved-v2713 .aim-wire-card-grip{width:24px!important;height:24px!important;border-radius:6px!important;background:transparent!important;border:0!important;color:#7da9b1!important;font-size:13px!important}
body.arduino-page.arduino-approved-v2713 .aim-wire-card-head div{flex:1!important}
body.arduino-page.arduino-approved-v2713 .aim-wire-card-head div small{display:none!important}
body.arduino-page.arduino-approved-v2713 .aim-wire-card-head div strong{font-size:10px!important;color:#e7f2f4!important}
body.arduino-page.arduino-approved-v2713 .aim-wire-card-head div strong::before{content:'Wire Color';font-size:10px}
body.arduino-page.arduino-approved-v2713 .aim-wire-card-head div strong{font-size:0!important}
body.arduino-page.arduino-approved-v2713 .aim-wire-card-head .aim-wire-card-state{display:none!important}
body.arduino-page.arduino-approved-v2713 .aim-wire-card-head::after{content:'×';width:24px;height:24px;border-radius:6px;display:grid;place-items:center;color:#a8c5ca;font-size:13px}
body.arduino-page.arduino-approved-v2713 .aim-wire-card-body{display:flex!important;align-items:center!important;gap:8px!important;padding:9px 11px!important;justify-content:center!important}
body.arduino-page.arduino-approved-v2713 .aim-wire-card-body #wirebuilder{display:none!important}
body.arduino-page.arduino-approved-v2713 .aim-wire-card-body .wire-colour{display:none!important}
body.arduino-page.arduino-approved-v2713 .aim-wire-card-body .wire-palette{display:flex!important;gap:9px!important;align-items:center!important;padding:0!important;border:0!important;background:transparent!important}
body.arduino-page.arduino-approved-v2713 .aim-wire-card-body .wire-palette button{width:22px!important;height:22px!important;min-width:22px!important;min-height:22px!important;border-radius:50%!important;border:2px solid rgba(255,255,255,.28)!important;box-shadow:0 2px 5px rgba(0,0,0,.18)!important}
body.arduino-page.arduino-approved-v2713 .aim-wire-card-body .wire-palette button.is-active{box-shadow:0 0 0 2px #eaffff,0 0 0 4px rgba(58,211,205,.35)!important;transform:none!important}
body.arduino-page.arduino-approved-v2713 .aim-wire-card-body #cancelwire{position:absolute!important;right:6px!important;top:6px!important;width:28px!important;height:28px!important;min-height:28px!important;grid-column:auto!important;font-size:0!important;background:#4d252c!important;border:1px solid #76404b!important}
body.arduino-page.arduino-approved-v2713 .aim-wire-card-body #cancelwire::after{content:'×';font-size:12px;color:#ffe5e7}

/* ----- Realistic first-project component scale/position polish ----- */
body.arduino-page.arduino-approved-v2713 .part.part-uno wokwi-arduino-uno{filter:saturate(1.03) contrast(1.02)}
body.arduino-page.arduino-approved-v2713 .part.part-breadboard{filter:drop-shadow(0 14px 18px rgba(0,0,0,.20))!important}
body.arduino-page.arduino-approved-v2713 .part.part-breadboard wokwi-breadboard{filter:brightness(1.03) contrast(1.02)}
body.arduino-page.arduino-approved-v2713 .part.part-breadboard .pin{opacity:.48!important}
body.arduino-page.arduino-approved-v2713 .part.part-breadboard .pin:hover,
body.arduino-page.arduino-approved-v2713 .part.part-breadboard .pin.pending,
body.arduino-page.arduino-approved-v2713 .part.part-breadboard .pin.first-project-target,
body.arduino-page.arduino-approved-v2713 .part.part-breadboard .pin.is-connected{opacity:1!important}
body.arduino-page.arduino-approved-v2713 .pin.is-connected{background:var(--pin-wire,#16a34a)!important;border-color:#d9ffff!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--pin-wire,#16a34a) 35%,transparent)!important}

/* ----- Status bar inside workbench ----- */
body.arduino-page.arduino-approved-v2713 .studio-status{position:absolute!important;left:18px!important;right:18px!important;bottom:12px!important;min-height:38px!important;height:38px!important;border-radius:10px!important;border:1px solid #285965!important;background:rgba(8,47,58,.94)!important;color:#dcecef!important;z-index:45!important;padding:0 10px!important;box-shadow:0 10px 24px rgba(0,0,0,.16)!important;display:flex!important;align-items:center!important;gap:12px!important}
body.arduino-page.arduino-approved-v2713 .status-primary{display:flex!important;align-items:center!important;gap:7px!important;white-space:nowrap}
body.arduino-page.arduino-approved-v2713 .status-primary i{width:10px!important;height:10px!important;border-radius:50%!important;background:#b6e62c!important;box-shadow:0 0 0 5px rgba(182,230,44,.10),0 0 12px rgba(182,230,44,.42)!important}
body.arduino-page.arduino-approved-v2713 .status-primary strong{font-size:9px!important;color:#eaf4f5!important}
body.arduino-page.arduino-approved-v2713 .status-context{flex:1!important;min-width:0!important;display:flex!important;align-items:center!important;gap:9px!important;overflow:hidden!important}
body.arduino-page.arduino-approved-v2713 #wirehint{display:none!important}
body.arduino-page.arduino-approved-v2713 .livebar{display:flex!important;align-items:center!important;gap:7px!important;min-width:0!important}
body.arduino-page.arduino-approved-v2713 #readings{font-size:8px!important;color:#cbe0e3!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.arduino-page.arduino-approved-v2713 #sound{height:27px!important;min-height:27px!important;border-radius:7px!important;background:#0e4350!important;border:1px solid #315f69!important;color:#b9d3d8!important;font-size:8px!important;padding:0 8px!important}
body.arduino-page.arduino-approved-v2713 .status-metrics{display:flex!important;align-items:center!important;gap:7px!important;margin-left:auto!important}
body.arduino-page.arduino-approved-v2713 .status-metrics span{font-size:8px!important;color:#b7d0d5!important}
body.arduino-page.arduino-approved-v2713 .status-metrics #check{height:27px!important;min-height:27px!important;border-radius:7px!important;background:#0c4b56!important;border:1px solid #35717a!important;color:#dff4f4!important;font-size:8px!important;padding:0 9px!important}

/* ----- Right code / monitor dock ----- */
body.arduino-page.arduino-approved-v2713 .inspector{width:470px!important;min-width:470px!important;height:100%!important;border-left:1px solid #d8e3e7!important;background:#0a1a2d!important;overflow:hidden!important}
body.arduino-page.arduino-approved-v2713 .inspector-tabs{height:58px!important;display:grid!important;grid-template-columns:repeat(4,1fr)!important;background:#fff!important;border-bottom:1px solid #dce7ea!important}
body.arduino-page.arduino-approved-v2713 .inspector-tabs button{border:0!important;border-right:1px solid #e9eef0!important;background:#fff!important;color:#54707d!important;font-size:9px!important;display:grid!important;place-items:center!important;align-content:center!important;gap:3px!important;min-height:58px!important;box-shadow:none!important}
body.arduino-page.arduino-approved-v2713 .inspector-tabs button span{font-size:14px!important;color:#527985!important}
body.arduino-page.arduino-approved-v2713 .inspector-tabs button b{font-size:9px!important}
body.arduino-page.arduino-approved-v2713 .inspector-tabs button[aria-selected=true]{color:#087f83!important;box-shadow:inset 0 -3px #10a6a3!important}
body.arduino-page.arduino-approved-v2713 .inspector-tabs button[aria-selected=true] span{color:#0aa09e!important}
body.arduino-page.arduino-approved-v2713 .inspector-body{height:calc(100% - 58px)!important;background:#0a1a2d!important;overflow:hidden!important}
body.arduino-page.arduino-approved-v2713 .lab-side-pane{height:100%!important;min-height:0!important;background:#0a1a2d!important;color:#e2edf2!important;overflow:auto!important}
body.arduino-page.arduino-approved-v2713 .guide-pane{display:none!important}
body.arduino-page.arduino-approved-v2713 .code-pane{padding:0!important;background:#0b1a2d!important}
body.arduino-page.arduino-approved-v2713 .codepanel{height:100%!important;background:#0b1a2d!important;color:#e6eef7!important;display:grid!important;grid-template-rows:50px auto minmax(250px,1fr) auto 34px 150px!important}
body.arduino-page.arduino-approved-v2713 .filetab{height:50px!important;background:#102238!important;border-bottom:1px solid #24364b!important;padding:0 13px!important;color:#e7eef7!important;font-family:Inter,'Segoe UI',sans-serif!important;display:flex!important;align-items:center!important;gap:8px!important}
body.arduino-page.arduino-approved-v2713 .filetab .dot{width:8px!important;height:8px!important;background:#7fd957!important;box-shadow:0 0 0 3px rgba(127,217,87,.10)!important}
body.arduino-page.arduino-approved-v2713 .filetab strong{font-size:10px!important}
body.arduino-page.arduino-approved-v2713 .filetab button{margin-left:0!important;height:30px!important;border-radius:7px!important;border:1px solid #29415c!important;background:#10283d!important;color:#a8bfd0!important;padding:0 9px!important;font-size:8px!important}
body.arduino-page.arduino-approved-v2713 .filetab #codeExpand{margin-left:auto!important}
body.arduino-page.arduino-approved-v2713 .code-shortcuts{font-size:7px!important;color:#6f8ca1!important;margin-left:4px!important}
body.arduino-page.arduino-approved-v2713 #experiment{padding:11px 14px!important;background:#0e2034!important;border-bottom:1px solid #1f3347!important;color:#b6c8d5!important;min-height:0!important}
body.arduino-page.arduino-approved-v2713 #experiment strong{font-size:9px!important;color:#e4eef6!important}
body.arduino-page.arduino-approved-v2713 #experiment p{font-size:8px!important;color:#8ca4b5!important;margin:4px 0!important}
body.arduino-page.arduino-approved-v2713 #experiment input[type=range]{accent-color:#1ebfc0!important}
body.arduino-page.arduino-approved-v2713 .editorwrap{position:relative!important;min-height:0!important;height:auto!important;padding:0!important;background:#0b1a2d!important;border:0!important;overflow:hidden!important;display:block!important}
body.arduino-page.arduino-approved-v2713 #lines{display:none!important}
body.arduino-page.arduino-approved-v2713 #code{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;margin:0!important;padding:18px 20px!important;background:transparent!important;color:transparent!important;caret-color:#f4fbff!important;-webkit-text-fill-color:transparent!important;font:500 13px/1.72 ui-monospace,SFMono-Regular,Consolas,Monaco,monospace!important;white-space:pre!important;overflow:auto!important;resize:none!important;z-index:3!important;tab-size:2!important;outline:0!important;box-shadow:none!important}
body.arduino-page.arduino-approved-v2713 #code::selection{background:rgba(54,141,207,.32)!important}
body.arduino-page.arduino-approved-v2713 .approved-code-highlight{position:absolute;inset:0;margin:0;padding:18px 20px;pointer-events:none;overflow:hidden;white-space:pre;font:500 13px/1.72 ui-monospace,SFMono-Regular,Consolas,Monaco,monospace;color:#e6edf5;z-index:2;tab-size:2}
body.arduino-page.arduino-approved-v2713 .approved-code-highlight .kw{color:#e78ce6}
body.arduino-page.arduino-approved-v2713 .approved-code-highlight .fn{color:#69c5ff}
body.arduino-page.arduino-approved-v2713 .approved-code-highlight .num{color:#f5c46f}
body.arduino-page.arduino-approved-v2713 .approved-code-highlight .str{color:#9ddd79}
body.arduino-page.arduino-approved-v2713 .approved-code-highlight .com{color:#71919a;font-style:italic}
body.arduino-page.arduino-approved-v2713 .approved-code-highlight .const{color:#f4a5d5}
body.arduino-page.arduino-approved-v2713 .codefoot{min-height:34px!important;background:#0c1c2d!important;border-top:1px solid #203247!important;padding:0 12px!important;color:#66849a!important;font-size:7px!important}
body.arduino-page.arduino-approved-v2713 .codefoot button{color:#6fc6ce!important;font-size:7px!important}
body.arduino-page.arduino-approved-v2713 .approved-code-hint{margin:8px 10px 10px!important;padding:12px!important;border-radius:10px!important;background:#10283d!important;border:1px solid #29445a!important;color:#bcd0dc!important;display:flex!important;gap:10px!important;align-items:flex-start!important}
body.arduino-page.arduino-approved-v2713 .approved-code-hint i{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#f4bf32;color:#fff;font-style:normal;flex:0 0 auto}
body.arduino-page.arduino-approved-v2713 .approved-code-hint strong{font-size:9px!important;color:#e5eef6!important}
body.arduino-page.arduino-approved-v2713 .approved-code-hint p{font-size:8px!important;color:#90a7b7!important;line-height:1.5!important;margin:3px 0 0!important}
body.arduino-page.arduino-approved-v2713 .approved-serial-panel{height:150px;margin:0 10px 10px;border-radius:10px;border:1px solid #29445a;background:#0c1c2d;overflow:hidden;display:grid;grid-template-rows:38px minmax(0,1fr)}
body.arduino-page.arduino-approved-v2713 .approved-serial-head{height:38px;padding:0 11px;display:flex;align-items:center;gap:8px;border-bottom:1px solid #263c50;color:#d9e8ef}
body.arduino-page.arduino-approved-v2713 .approved-serial-head i{width:9px;height:9px;border-radius:2px;background:#1eb36c;box-shadow:0 0 0 3px rgba(30,179,108,.11)}
body.arduino-page.arduino-approved-v2713 .approved-serial-head strong{font-size:9px}
body.arduino-page.arduino-approved-v2713 .approved-serial-head select{margin-left:auto;height:26px;border-radius:7px;background:#10283d;color:#a8c0d0;border:1px solid #2d465c;font-size:8px;padding:0 8px}
body.arduino-page.arduino-approved-v2713 .approved-serial-head button{height:26px;border-radius:7px;background:#10283d;color:#a8c0d0;border:1px solid #2d465c;font-size:8px;padding:0 9px}
body.arduino-page.arduino-approved-v2713 .approved-serial-output{margin:0;padding:10px 12px;overflow:auto;white-space:pre-wrap;font:8px/1.7 ui-monospace,Consolas,monospace;color:#6ca6bb;background:#091827}
body.arduino-page.arduino-approved-v2713 .monitor-pane{background:#0a1a2d!important;color:#dbe8f1!important}
body.arduino-page.arduino-approved-v2713 .monitor-pane .monitorhead{height:46px!important;background:#102238!important;border:0!important;border-bottom:1px solid #263a50!important;color:#e7eef7!important;font-size:9px!important}
body.arduino-page.arduino-approved-v2713 .monitor-pane #monitor{height:calc(100% - 80px)!important;max-height:none!important;background:#091827!important;color:#6ca6bb!important;font-size:10px!important;padding:14px!important}
body.arduino-page.arduino-approved-v2713 .monitor-pane .monitor-foot{background:#102238!important;color:#7692a6!important}
body.arduino-page.arduino-approved-v2713 .approved-monitor-pane{padding:14px!important;background:#0a1a2d!important;color:#dbe8f1!important}
body.arduino-page.arduino-approved-v2713 .approved-monitor-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
body.arduino-page.arduino-approved-v2713 .approved-monitor-card{padding:14px;border-radius:10px;background:#102238;border:1px solid #284055}
body.arduino-page.arduino-approved-v2713 .approved-monitor-card small{display:block;font-size:7px;letter-spacing:.09em;color:#6e8fa3;font-weight:900}
body.arduino-page.arduino-approved-v2713 .approved-monitor-card strong{display:block;margin-top:5px;color:#e5eef5;font-size:15px}
body.arduino-page.arduino-approved-v2713 .approved-monitor-live{margin-top:10px;padding:13px;border-radius:10px;background:#102238;border:1px solid #284055;color:#9bb4c4;font-size:9px;line-height:1.6}
body.arduino-page.arduino-approved-v2713 .learn-pane{background:#f7fbfc!important;color:#173845!important;padding:14px!important}

/* ----- First-project instructor + Yentumi robot ----- */
body.arduino-page.arduino-approved-v2713 .aim-build-coach{
  position:absolute!important;
  z-index:300!important;
  top:52px!important;
  left:50%!important;
  right:auto!important;
  bottom:auto!important;
  width:520px!important;
  min-height:180px!important;
  transform:translateX(-50%)!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
  backdrop-filter:none!important;
  pointer-events:none!important;
}
body.arduino-page.arduino-approved-v2713 .aim-coach-shell{display:grid;grid-template-columns:minmax(0,360px) 150px;gap:10px;align-items:end;position:relative;pointer-events:none}
body.arduino-page.arduino-approved-v2713 .aim-coach-panel{pointer-events:auto;border:1px solid #d0e1e6;border-radius:18px;background:rgba(255,255,255,.98);box-shadow:0 24px 58px rgba(0,24,36,.24);overflow:hidden;position:relative}
body.arduino-page.arduino-approved-v2713 .aim-coach-progress{height:4px!important;background:#e9f2f4!important}
body.arduino-page.arduino-approved-v2713 .aim-coach-progress i{background:linear-gradient(90deg,#12a6a3,#b8e435)!important}
body.arduino-page.arduino-approved-v2713 .aim-coach-head{padding:12px 15px 0!important}
body.arduino-page.arduino-approved-v2713 .aim-coach-step{font-size:9px!important;color:#0b9092!important}
body.arduino-page.arduino-approved-v2713 .aim-coach-close{width:28px!important;height:28px!important;border-radius:8px!important;background:#f7fbfc!important;border:1px solid #d9e6e9!important;color:#6d8189!important}
body.arduino-page.arduino-approved-v2713 .aim-coach-body{padding:6px 15px 12px!important}
body.arduino-page.arduino-approved-v2713 .aim-coach-body h3{font-size:18px!important;line-height:1.12!important;margin:0 0 6px!important;letter-spacing:-.015em!important;color:#153541!important}
body.arduino-page.arduino-approved-v2713 .aim-coach-body p{font-size:11px!important;line-height:1.5!important;color:#607986!important}
body.arduino-page.arduino-approved-v2713 .aim-coach-connection{margin-top:9px!important;padding:9px!important;border-radius:10px!important;background:#eef8f8!important;border:1px solid #cde5e6!important;font-size:10px!important;color:#285461!important}
body.arduino-page.arduino-approved-v2713 .aim-coach-actions{padding:0 15px 15px!important;display:flex!important;align-items:center!important;gap:8px!important}
body.arduino-page.arduino-approved-v2713 .aim-coach-actions button{height:36px!important;min-height:36px!important;border-radius:9px!important;padding:0 13px!important;font-size:10px!important;font-weight:850!important}
body.arduino-page.arduino-approved-v2713 .aim-coach-actions .primary{background:#0ba3a1!important;border-color:#0ba3a1!important;color:#fff!important}
body.arduino-page.arduino-approved-v2713 .aim-coach-actions .soft{background:#eef7f8!important;color:#0b7d82!important;border-color:#cbe3e5!important}
body.arduino-page.arduino-approved-v2713 .aim-coach-actions .aim-coach-count{margin-left:auto;color:#7b8e95;font-size:10px;font-weight:800}
body.arduino-page.arduino-approved-v2713 .aim-robot-zone{position:relative;height:174px;pointer-events:none;display:flex;align-items:flex-end;justify-content:center}
body.arduino-page.arduino-approved-v2713 .aim-robot-bubble{position:absolute;top:0;left:0;padding:8px 10px;border-radius:10px;background:#fff;color:#47616c;border:1px solid #d8e5e8;box-shadow:0 8px 18px rgba(4,35,47,.12);font-size:9px;font-weight:800;animation:aimRobotBubble 2.4s ease-in-out infinite}
body.arduino-page.arduino-approved-v2713 .aim-robot-bubble::after{content:'';position:absolute;right:18px;bottom:-7px;border:7px solid transparent;border-top-color:#fff}
body.arduino-page.arduino-approved-v2713 .aim-robot{position:relative;width:112px;height:132px;animation:aimRobotFloat 3s ease-in-out infinite;transform-origin:50% 90%}
body.arduino-page.arduino-approved-v2713 .aim-robot-antenna{position:absolute;left:54px;top:0;width:4px;height:20px;background:#29c8ca;border-radius:5px;transform:rotate(4deg);box-shadow:0 0 10px rgba(41,200,202,.6)}
body.arduino-page.arduino-approved-v2713 .aim-robot-antenna::after{content:'';position:absolute;left:-4px;top:-7px;width:12px;height:12px;border-radius:50%;background:#66ecdf;box-shadow:0 0 15px #45ded6}
body.arduino-page.arduino-approved-v2713 .aim-robot-head{position:absolute;left:14px;top:22px;width:86px;height:66px;border-radius:28px;background:linear-gradient(145deg,#f7ffff,#d7ecec 64%,#9bc8ca);border:4px solid #dff7f6;box-shadow:0 10px 20px rgba(0,31,43,.24),0 0 0 2px rgba(64,224,215,.15)}
body.arduino-page.arduino-approved-v2713 .aim-robot-screen{position:absolute;inset:9px;border-radius:19px;background:linear-gradient(180deg,#0b2c37,#113f4a);box-shadow:inset 0 0 18px rgba(18,204,194,.14)}
body.arduino-page.arduino-approved-v2713 .aim-robot-eye{position:absolute;top:20px;width:10px;height:5px;border-bottom:3px solid #5df1df;border-radius:0 0 10px 10px;animation:aimRobotBlink 4s infinite}
body.arduino-page.arduino-approved-v2713 .aim-robot-eye.left{left:15px;transform:rotate(8deg)}
body.arduino-page.arduino-approved-v2713 .aim-robot-eye.right{right:15px;transform:rotate(-8deg)}
body.arduino-page.arduino-approved-v2713 .aim-robot-mouth{position:absolute;left:50%;bottom:12px;width:22px;height:10px;transform:translateX(-50%);border-bottom:3px solid #5df1df;border-radius:0 0 18px 18px}
body.arduino-page.arduino-approved-v2713 .aim-robot-ear{position:absolute;top:41px;width:15px;height:27px;border-radius:9px;background:linear-gradient(#25c4c4,#0d8f91);box-shadow:0 0 0 3px #cfebeb}
body.arduino-page.arduino-approved-v2713 .aim-robot-ear.left{left:5px}.aim-robot-ear.right{right:5px}
body.arduino-page.arduino-approved-v2713 .aim-robot-body{position:absolute;left:34px;top:88px;width:46px;height:38px;border-radius:18px 18px 20px 20px;background:linear-gradient(160deg,#f5ffff,#c4e3e3);box-shadow:0 8px 13px rgba(0,37,48,.18)}
body.arduino-page.arduino-approved-v2713 .aim-robot-body::before{content:'';position:absolute;left:17px;top:9px;width:12px;height:12px;border-radius:50%;background:#17b9b6;box-shadow:0 0 0 4px #daf3f1}
body.arduino-page.arduino-approved-v2713 .aim-robot-arm{position:absolute;top:92px;width:28px;height:10px;border-radius:10px;background:#d4eeee}
body.arduino-page.arduino-approved-v2713 .aim-robot-arm.left{left:16px;transform:rotate(22deg)}
body.arduino-page.arduino-approved-v2713 .aim-robot-arm.right{right:15px;transform:rotate(-30deg)}
body.arduino-page.arduino-approved-v2713 .aim-robot-leg{position:absolute;top:119px;width:11px;height:18px;border-radius:8px;background:#c9e7e6}
body.arduino-page.arduino-approved-v2713 .aim-robot-leg.left{left:41px;transform:rotate(15deg)}.aim-robot-leg.right{right:40px;transform:rotate(-15deg)}
body.arduino-page.arduino-approved-v2713 .aim-robot-spark{position:absolute;color:#48e9dc;font-size:16px;font-weight:900;animation:aimRobotSpark 1.8s ease-in-out infinite}
body.arduino-page.arduino-approved-v2713 .aim-robot-spark.s1{right:-2px;top:23px}.aim-robot-spark.s2{right:7px;top:7px;animation-delay:.45s}.aim-robot-spark.s3{left:4px;top:17px;animation-delay:.8s}

/* target helper label on highlighted pin */
body.arduino-page.arduino-approved-v2713 .pin.first-project-target::before{content:attr(data-label);position:absolute;left:50%;bottom:20px;transform:translateX(-50%);padding:5px 7px;border-radius:6px;background:#f1ffff;border:1px solid #bee8e5;color:#0e7377;font-size:8px;font-weight:900;white-space:nowrap;box-shadow:0 7px 15px rgba(0,40,50,.12)}

/* ----- Bottom footer from approved concept ----- */
body.arduino-page.arduino-approved-v2713 .arduino-approved-footer{height:30px;background:#fff;border-top:1px solid #dce7eb;position:fixed;bottom:0;left:0;right:0;z-index:500;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:0 24px;color:#627985;font-size:8px}
body.arduino-page.arduino-approved-v2713 .arduino-approved-footer .centre{display:flex;align-items:center;gap:12px;color:#35777c}.arduino-approved-footer .heart{color:#ec4b72;font-size:13px}.arduino-approved-footer .right{justify-self:end;display:flex;gap:12px}.arduino-approved-footer button{border:0;background:transparent;color:#64808b;font-size:8px;padding:0}
body.arduino-page.arduino-approved-v2713 .studio-body{padding-bottom:30px!important}

@keyframes aimRobotFloat{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-7px) rotate(1deg)}}
@keyframes aimRobotBlink{0%,44%,52%,100%{height:5px}48%{height:1px}}
@keyframes aimRobotBubble{0%,100%{transform:translateY(0)}50%{transform:translateY(-3px)}}
@keyframes aimRobotSpark{0%,100%{opacity:.3;transform:scale(.8)}50%{opacity:1;transform:scale(1.15)}}

/* Desktop proportional tuning matching the approved 1680px design */
@media(min-width:1500px){
  body.arduino-page.arduino-approved-v2713 .studio-body{grid-template-columns:305px minmax(700px,1fr)!important}
  body.arduino-page.arduino-approved-v2713 .studio-sidebar{width:305px!important;min-width:305px!important}
  body.arduino-page.arduino-approved-v2713 .workzone{grid-template-columns:minmax(720px,1fr) 470px!important}
  body.arduino-page.arduino-approved-v2713 .inspector{width:470px!important;min-width:470px!important}
}
@media(max-width:1299px){
  body.arduino-page.arduino-approved-v2713 .arduino-global-search{display:none}
  body.arduino-page.arduino-approved-v2713 .studio-command{grid-template-columns:220px minmax(0,1fr) auto!important}
  body.arduino-page.arduino-approved-v2713 .studio-body{grid-template-columns:250px minmax(0,1fr)!important}
  body.arduino-page.arduino-approved-v2713 .studio-sidebar{width:250px!important;min-width:250px!important}
  body.arduino-page.arduino-approved-v2713 .workzone{grid-template-columns:minmax(560px,1fr) 410px!important}
  body.arduino-page.arduino-approved-v2713 .inspector{width:410px!important;min-width:410px!important}
  body.arduino-page.arduino-approved-v2713 .aim-build-coach{width:475px!important}
  body.arduino-page.arduino-approved-v2713 .aim-coach-shell{grid-template-columns:minmax(0,335px) 130px}
}
@media(max-width:1040px){
  body.arduino-page.arduino-approved-v2713 .studio-body{display:block!important;height:auto!important;overflow:auto!important}
  body.arduino-page.arduino-approved-v2713 .studio-sidebar{width:100%!important;min-width:0!important;max-height:360px!important}
  body.arduino-page.arduino-approved-v2713 .workzone{display:grid!important;grid-template-columns:1fr!important;height:auto!important}
  body.arduino-page.arduino-approved-v2713 .benchpanel{height:650px!important}
  body.arduino-page.arduino-approved-v2713 .inspector{width:100%!important;min-width:0!important;height:660px!important}
  body.arduino-page.arduino-approved-v2713 .aim-build-coach{width:min(520px,calc(100vw - 40px))!important}
  body.arduino-page.arduino-approved-v2713 .arduino-approved-footer{display:none}
  body.arduino-page.arduino-approved-v2713 .studio-body{padding-bottom:0!important}
}
@media(max-width:760px){
  body.arduino-page.arduino-approved-v2713 .aim-nav{flex-wrap:wrap!important}
  body.arduino-page.arduino-approved-v2713 .arduino-nav-extras{display:none}
  body.arduino-page.arduino-approved-v2713 .studio-command{grid-template-columns:1fr!important;grid-template-rows:auto auto auto!important;height:auto!important}
  body.arduino-page.arduino-approved-v2713 .studio-identity{display:none!important}
  body.arduino-page.arduino-approved-v2713 .studio-project{grid-column:1!important}
  body.arduino-page.arduino-approved-v2713 .studio-actions{grid-column:1!important;justify-self:start!important}
  body.arduino-page.arduino-approved-v2713 .studio-progress{grid-row:3!important;grid-column:1!important;overflow:auto!important}
  body.arduino-page.arduino-approved-v2713 .project-main-row{display:block!important}.project-main-row p{white-space:normal!important}
  body.arduino-page.arduino-approved-v2713 .aim-coach-shell{grid-template-columns:1fr!important}.aim-robot-zone{display:none!important}
  body.arduino-page.arduino-approved-v2713 .aim-build-coach{top:14px!important;width:calc(100% - 24px)!important}
}
@media(prefers-reduced-motion:reduce){
  body.arduino-page.arduino-approved-v2713 .aim-robot,body.arduino-page.arduino-approved-v2713 .aim-robot-bubble,body.arduino-page.arduino-approved-v2713 .aim-robot-eye,body.arduino-page.arduino-approved-v2713 .aim-robot-spark{animation:none!important}
}

/* v0.27.13 performance pass */
body.arduino-page.arduino-approved-v2713 .canvas-label,
body.arduino-page.arduino-approved-v2713 .canvas-tools,
body.arduino-page.arduino-approved-v2713 .aim-wire-card{backdrop-filter:none!important}
body.arduino-page.arduino-approved-v2713 .aim-wire-card{background:#0a3541!important}
body.arduino-page.arduino-approved-v2713 .inspector,
body.arduino-page.arduino-approved-v2713 .studio-sidebar{contain:layout style paint;}
body.arduino-page.arduino-approved-v2713 .approved-code-highlight{contain:strict;}
body.arduino-page.arduino-approved-v2713.arduino-sim-running .part,
body.arduino-page.arduino-approved-v2713.arduino-sim-running #wires path{filter:none!important}


/* ===== SOURCE: labs/arduino/shell/phase1-shell.css ===== */
/* AIM Arduino v0.27.14 — Phase 1 shell alignment
   Approved reference scope only:
   - global navigation
   - project/lab header
   - project actions
   - learning-cycle strip
   - three-column desktop proportions
   No component, wiring, robot, code-editor-content or simulator behaviour changes.
*/
body.arduino-page.arduino-phase1-shell-v2714{
  --shell-nav-h:64px;
  --shell-command-h:120px;
  --shell-footer-h:30px;
  --shell-sidebar-w:300px;
  --shell-inspector-w:460px;
  --shell-border:#dbe6ea;
  --shell-text:#123541;
  --shell-muted:#617985;
  --shell-teal:#0b9c9a;
  --shell-teal-dark:#087a7e;
  --shell-green:#10a974;
  --shell-lime:#b9e52e;
  background:#f4f8fa;
}

/* ---------- Global AIM bar ---------- */
body.arduino-page.arduino-phase1-shell-v2714 .aim-nav{
  height:var(--shell-nav-h)!important;
  min-height:var(--shell-nav-h)!important;
  padding:8px 24px!important;
  gap:20px!important;
  flex-wrap:nowrap!important;
  align-items:center!important;
  border-bottom:1px solid var(--shell-border)!important;
  background:#fff!important;
  box-shadow:0 1px 0 rgba(13,47,60,.02)!important;
}
body.arduino-page.arduino-phase1-shell-v2714 .aim-brand{
  gap:11px!important;
  flex:0 0 auto!important;
}
body.arduino-page.arduino-phase1-shell-v2714 .aim-brand b{
  width:58px!important;
  height:46px!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  border-radius:9px!important;
  background:#0b8b8e!important;
  color:#fff!important;
  font-size:21px!important;
  font-weight:900!important;
  letter-spacing:-.7px!important;
}
body.arduino-page.arduino-phase1-shell-v2714 .aim-brand span{
  font-size:14px!important;
  line-height:1.08!important;
  color:#173846!important;
}
body.arduino-page.arduino-phase1-shell-v2714 .aim-brand small{
  margin-top:4px!important;
  font-size:11px!important;
  color:#5e7783!important;
}
body.arduino-page.arduino-phase1-shell-v2714 .aim-nav nav{
  flex:0 0 auto!important;
  gap:6px!important;
  white-space:nowrap!important;
}
body.arduino-page.arduino-phase1-shell-v2714 .aim-nav nav a{
  min-height:40px!important;
  display:flex!important;
  align-items:center!important;
  padding:0 12px!important;
  border-radius:8px!important;
  font-size:13px!important;
  color:#244653!important;
}
body.arduino-page.arduino-phase1-shell-v2714 .aim-nav nav a[aria-current=page]{
  background:linear-gradient(135deg,#b0172f,#8a1020)!important;
  color:#fff!important;
  box-shadow:0 8px 18px rgba(138,16,32,.18)!important;
  font-weight:800!important;
}
body.arduino-page.arduino-phase1-shell-v2714 .arduino-nav-extras{
  margin-left:auto!important;
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  min-width:0!important;
}
body.arduino-page.arduino-phase1-shell-v2714 .arduino-global-search{
  width:clamp(350px,29vw,470px)!important;
}
body.arduino-page.arduino-phase1-shell-v2714 .arduino-global-search input{
  height:40px!important;
  border-radius:10px!important;
  background:#fbfdfe!important;
  border-color:#d4e2e8!important;
  font-size:12px!important;
}
body.arduino-page.arduino-phase1-shell-v2714 .arduino-nav-icon{
  width:36px!important;height:36px!important;
}
body.arduino-page.arduino-phase1-shell-v2714 .arduino-profile{
  width:38px!important;height:38px!important;
}
body.arduino-page.arduino-phase1-shell-v2714 .aim-version{
  margin-left:2px!important;
  font-size:9px!important;
  color:#718690!important;
}

/* ---------- Lab/project command area ---------- */
body.arduino-page.arduino-phase1-shell-v2714 .arduino-studio{
  min-height:calc(100dvh - var(--shell-nav-h))!important;
}
body.arduino-page.arduino-phase1-shell-v2714 .studio-command{
  height:var(--shell-command-h)!important;
  min-height:var(--shell-command-h)!important;
  padding:9px 24px 0!important;
  display:grid!important;
  grid-template-columns:280px minmax(0,1fr) max-content!important;
  grid-template-rows:72px 39px!important;
  column-gap:18px!important;
  row-gap:0!important;
  background:#fff!important;
  border-bottom:1px solid var(--shell-border)!important;
  overflow:visible!important;
}
body.arduino-page.arduino-phase1-shell-v2714 .studio-identity{
  grid-column:1!important;
  grid-row:1!important;
  align-self:center!important;
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  min-width:0!important;
}
body.arduino-page.arduino-phase1-shell-v2714 .studio-mark{
  width:50px!important;height:50px!important;
  flex:0 0 50px!important;
  border-radius:11px!important;
  background:linear-gradient(180deg,#103e52,#0a3040)!important;
  color:#c5f233!important;
  box-shadow:0 8px 18px rgba(7,42,55,.12)!important;
}
body.arduino-page.arduino-phase1-shell-v2714 .studio-name small{
  display:block!important;
  font-size:9px!important;
  letter-spacing:.14em!important;
  color:#55747f!important;
}
body.arduino-page.arduino-phase1-shell-v2714 .studio-name strong{
  display:block!important;
  margin-top:2px!important;
  font-size:18px!important;
  line-height:1.05!important;
  color:#163a47!important;
}
body.arduino-page.arduino-phase1-shell-v2714 .studio-project{
  grid-column:2!important;
  grid-row:1!important;
  align-self:center!important;
  min-width:0!important;
  padding:0!important;
}
body.arduino-page.arduino-phase1-shell-v2714 .project-title-row{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  min-height:15px!important;
}
body.arduino-page.arduino-phase1-shell-v2714 #projectmeta{
  font-size:9px!important;
  font-weight:950!important;
  letter-spacing:.14em!important;
  color:#07898e!important;
}
body.arduino-page.arduino-phase1-shell-v2714 #stageSummary{display:none!important}
body.arduino-page.arduino-phase1-shell-v2714 .project-main-row{
  display:flex!important;
  align-items:baseline!important;
  gap:9px!important;
  min-width:0!important;
  margin-top:1px!important;
}
body.arduino-page.arduino-phase1-shell-v2714 .project-main-row h1{
  flex:0 1 auto!important;
  margin:0!important;
  font-size:22px!important;
  line-height:1.08!important;
  letter-spacing:-.025em!important;
  white-space:nowrap!important;
  color:#12343f!important;
}
body.arduino-page.arduino-phase1-shell-v2714 .project-main-row p{
  flex:1 1 auto!important;
  min-width:0!important;
  margin:0!important;
  font-size:10.5px!important;
  line-height:1.3!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  color:#647b86!important;
}
body.arduino-page.arduino-phase1-shell-v2714 .project-meta-row{
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  margin-top:5px!important;
}
body.arduino-page.arduino-phase1-shell-v2714 .project-meta-row span{
  min-height:20px!important;
  padding:3px 8px!important;
  display:inline-flex!important;
  align-items:center!important;
  border:0!important;
  border-radius:999px!important;
  background:#f0f5f7!important;
  color:#536d79!important;
  font-size:8.5px!important;
  line-height:1!important;
}
body.arduino-page.arduino-phase1-shell-v2714 .project-meta-row b{
  font-size:8.5px!important;
  color:#325763!important;
}
body.arduino-page.arduino-phase1-shell-v2714 .studio-actions{
  grid-column:3!important;
  grid-row:1!important;
  align-self:center!important;
  justify-self:end!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  white-space:nowrap!important;
}
body.arduino-page.arduino-phase1-shell-v2714 .studio-actions .mobile-tool{display:none!important}
body.arduino-page.arduino-phase1-shell-v2714 .studio-actions .quiet-action{
  height:42px!important;
  min-height:42px!important;
  padding:0 15px!important;
  border-radius:10px!important;
  border:1px solid #d5e2e8!important;
  background:#fff!important;
  color:#214957!important;
  font-size:11px!important;
  font-weight:850!important;
  box-shadow:0 4px 10px rgba(18,55,70,.025)!important;
}
body.arduino-page.arduino-phase1-shell-v2714 .studio-actions .run-action{
  min-width:126px!important;
  height:42px!important;
  min-height:42px!important;
  padding:0 19px!important;
  border:0!important;
  border-radius:10px!important;
  background:linear-gradient(90deg,#0ba4a0,#07958f)!important;
  color:#fff!important;
  font-size:12px!important;
  font-weight:900!important;
  box-shadow:0 8px 18px rgba(10,153,151,.17)!important;
}
body.arduino-page.arduino-phase1-shell-v2714 .studio-actions .run-action::after{
  content:'⌄';
  margin-left:12px;
  opacity:.9;
}
body.arduino-page.arduino-phase1-shell-v2714 .studio-actions .run-action.running::after{content:'';margin-left:0}

/* ---------- Six-stage learning path ---------- */
body.arduino-page.arduino-phase1-shell-v2714 .studio-progress{
  grid-column:1/-1!important;
  grid-row:2!important;
  height:39px!important;
  min-height:39px!important;
  margin:0 -24px!important;
  padding:0!important;
  display:grid!important;
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  gap:0!important;
  border-top:1px solid #edf2f4!important;
  background:#fff!important;
  overflow:visible!important;
}
body.arduino-page.arduino-phase1-shell-v2714 .studio-progress .labpath__stage{
  position:relative!important;
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  padding:0 6px!important;
  border:0!important;
  border-bottom:3px solid transparent!important;
  background:#fff!important;
  color:#5d7580!important;
}
body.arduino-page.arduino-phase1-shell-v2714 .studio-progress .labpath__stage i{
  width:23px!important;height:23px!important;
  flex:0 0 23px!important;
  display:grid!important;place-items:center!important;
  border-radius:50%!important;
  background:#e7f2f3!important;
  color:#456d76!important;
  font-style:normal!important;
  font-size:9px!important;
  font-weight:950!important;
  box-shadow:none!important;
}
body.arduino-page.arduino-phase1-shell-v2714 .studio-progress .labpath__stage b{
  font-size:9px!important;
  font-weight:850!important;
  white-space:nowrap!important;
}
body.arduino-page.arduino-phase1-shell-v2714 .studio-progress .labpath__stage small{display:none!important}
body.arduino-page.arduino-phase1-shell-v2714 .studio-progress .labpath__stage.is-complete{
  border-bottom-color:#17b47d!important;
  color:#285f59!important;
}
body.arduino-page.arduino-phase1-shell-v2714 .studio-progress .labpath__stage.is-complete i{
  background:#10a974!important;
  color:#fff!important;
  box-shadow:0 0 0 1px rgba(16,169,116,.08)!important;
}
body.arduino-page.arduino-phase1-shell-v2714 .studio-progress .labpath__stage.is-active,
body.arduino-page.arduino-phase1-shell-v2714 .studio-progress .labpath__stage.active{
  border-bottom-color:#7bd74a!important;
  color:#244f45!important;
  background:linear-gradient(180deg,#fff 0%,#f5fbef 100%)!important;
}
body.arduino-page.arduino-phase1-shell-v2714 .studio-progress .labpath__stage.is-active i,
body.arduino-page.arduino-phase1-shell-v2714 .studio-progress .labpath__stage.active i{
  background:var(--shell-lime)!important;
  color:#234c2a!important;
  box-shadow:0 0 0 4px rgba(185,229,46,.16),0 4px 10px rgba(126,176,35,.14)!important;
}

/* ---------- Approved three-column shell proportions ---------- */
body.arduino-page.arduino-phase1-shell-v2714 .studio-body{
  height:calc(100dvh - var(--shell-nav-h) - var(--shell-command-h))!important;
  min-height:590px!important;
  display:grid!important;
  grid-template-columns:var(--shell-sidebar-w) minmax(0,1fr)!important;
  overflow:hidden!important;
  background:#082f39!important;
  padding-bottom:var(--shell-footer-h)!important;
}
body.arduino-page.arduino-phase1-shell-v2714 .studio-sidebar{
  width:var(--shell-sidebar-w)!important;
  min-width:var(--shell-sidebar-w)!important;
  max-width:var(--shell-sidebar-w)!important;
}
body.arduino-page.arduino-phase1-shell-v2714 .studio-main{
  min-width:0!important;
  overflow:hidden!important;
}
body.arduino-page.arduino-phase1-shell-v2714 .workzone{
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) var(--shell-inspector-w)!important;
  gap:0!important;
  overflow:hidden!important;
}
body.arduino-page.arduino-phase1-shell-v2714 .benchpanel{
  min-width:0!important;
  width:auto!important;
}
body.arduino-page.arduino-phase1-shell-v2714 .inspector{
  width:var(--shell-inspector-w)!important;
  min-width:var(--shell-inspector-w)!important;
  max-width:var(--shell-inspector-w)!important;
}
body.arduino-page.arduino-phase1-shell-v2714 .workspace-splitter{display:none!important}

/* ---------- Responsive shell only ---------- */
@media (min-width:1800px){
  body.arduino-page.arduino-phase1-shell-v2714{--shell-sidebar-w:305px;--shell-inspector-w:470px}
}
@media (max-width:1450px){
  body.arduino-page.arduino-phase1-shell-v2714{--shell-sidebar-w:270px;--shell-inspector-w:420px}
  body.arduino-page.arduino-phase1-shell-v2714 .arduino-global-search{width:clamp(280px,25vw,390px)!important}
  body.arduino-page.arduino-phase1-shell-v2714 .studio-command{grid-template-columns:245px minmax(0,1fr) max-content!important}
  body.arduino-page.arduino-phase1-shell-v2714 .project-main-row h1{font-size:20px!important}
}
@media (max-width:1180px){
  body.arduino-page.arduino-phase1-shell-v2714{--shell-sidebar-w:245px;--shell-inspector-w:380px}
  body.arduino-page.arduino-phase1-shell-v2714 .arduino-global-search{display:none!important}
  body.arduino-page.arduino-phase1-shell-v2714 .studio-command{grid-template-columns:220px minmax(0,1fr) max-content!important}
  body.arduino-page.arduino-phase1-shell-v2714 .project-main-row p{display:none!important}
}
@media (max-width:980px){
  body.arduino-page.arduino-phase1-shell-v2714 .studio-body{
    height:auto!important;
    display:block!important;
    overflow:visible!important;
    padding-bottom:0!important;
  }
  body.arduino-page.arduino-phase1-shell-v2714 .studio-sidebar{
    width:100%!important;min-width:0!important;max-width:none!important;max-height:340px!important;
  }
  body.arduino-page.arduino-phase1-shell-v2714 .workzone{
    display:grid!important;
    grid-template-columns:1fr!important;
    height:auto!important;
  }
  body.arduino-page.arduino-phase1-shell-v2714 .benchpanel{height:640px!important}
  body.arduino-page.arduino-phase1-shell-v2714 .inspector{width:100%!important;min-width:0!important;max-width:none!important;height:650px!important}
}
@media (max-width:760px){
  body.arduino-page.arduino-phase1-shell-v2714 .aim-nav{height:auto!important;min-height:64px!important;flex-wrap:wrap!important;padding:8px 14px!important;gap:9px!important}
  body.arduino-page.arduino-phase1-shell-v2714 .aim-nav nav{order:3;flex-basis:100%!important;overflow:auto!important}
  body.arduino-page.arduino-phase1-shell-v2714 .arduino-nav-extras{display:none!important}
  body.arduino-page.arduino-phase1-shell-v2714 .studio-command{
    height:auto!important;min-height:0!important;
    padding:10px 14px 0!important;
    grid-template-columns:1fr!important;
    grid-template-rows:auto auto 42px!important;
    row-gap:7px!important;
  }
  body.arduino-page.arduino-phase1-shell-v2714 .studio-identity{display:none!important}
  body.arduino-page.arduino-phase1-shell-v2714 .studio-project{grid-column:1!important;grid-row:1!important}
  body.arduino-page.arduino-phase1-shell-v2714 .studio-actions{grid-column:1!important;grid-row:2!important;justify-self:start!important;overflow-x:auto!important;max-width:100%!important}
  body.arduino-page.arduino-phase1-shell-v2714 .studio-progress{grid-column:1!important;grid-row:3!important;margin:0 -14px!important;overflow-x:auto!important}
  body.arduino-page.arduino-phase1-shell-v2714 .studio-progress .labpath__stage{min-width:110px!important}
  body.arduino-page.arduino-phase1-shell-v2714 .project-main-row{display:block!important}
  body.arduino-page.arduino-phase1-shell-v2714 .project-main-row h1{font-size:19px!important;white-space:normal!important}
}


/* ===== SOURCE: labs/arduino/sidebar/phase2-sidebar.css ===== */
/* AIM Arduino v0.27.15 — Phase 2: approved Projects / Parts sidebar.
   Intentionally scoped to #studioSidebar only. */
body.arduino-page.arduino-phase2-sidebar-v2715{
  --p2-sidebar:#073641;
  --p2-sidebar-deep:#062f39;
  --p2-card:#0c414d;
  --p2-card-hover:#10505d;
  --p2-line:#245b67;
  --p2-line-soft:rgba(128,190,199,.14);
  --p2-text:#edf7f8;
  --p2-muted:#8fb0b8;
  --p2-teal:#1bc0b4;
  --p2-lime:#b9ea2f;
}

/* Sidebar shell */
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar{
  background:linear-gradient(180deg,#073743 0%,#06313b 100%)!important;
  border-right:1px solid #174d59!important;
  color:var(--p2-text)!important;
  overflow:hidden!important;
  box-shadow:inset -1px 0 rgba(255,255,255,.025)!important;
}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .sidebar-head{
  flex:0 0 auto!important;
  min-height:64px!important;
  padding:10px 12px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 38px!important;
  gap:8px!important;
  align-items:center!important;
  border-bottom:1px solid var(--p2-line-soft)!important;
  background:#08343f!important;
}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .sidebar-tabs{
  display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;
  padding:4px!important;border:1px solid #225661!important;border-radius:11px!important;background:#062c36!important;
}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .sidebar-tabs button{
  position:relative!important;min-width:0!important;height:42px!important;padding:0 10px!important;border:0!important;border-radius:8px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;
  background:transparent!important;color:#9ab9c0!important;font-size:11px!important;font-weight:850!important;box-shadow:none!important;
}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .sidebar-tabs button[aria-selected=true]{
  background:#0d4652!important;color:#fff!important;box-shadow:inset 0 -3px var(--p2-lime)!important;
}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .phase2-tab-icon{font-size:13px!important;color:#65b7be!important}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .sidebar-tabs button[aria-selected=true] .phase2-tab-icon{color:#25c6bc!important}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar #sidebarToggle{
  width:38px!important;height:38px!important;border-radius:9px!important;border:1px solid #285b66!important;background:#0b414d!important;color:#b8d0d5!important;font-size:18px!important;
}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar #sidebarToggle:hover{background:#11505d!important;color:#fff!important}

/* Independent panes */
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .sidebar-pane{
  min-height:0!important;overflow:auto!important;overscroll-behavior:contain!important;scrollbar-gutter:stable!important;scrollbar-width:thin!important;scrollbar-color:#2a6570 transparent!important;
  padding:12px 12px 60px!important;background:transparent!important;
}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .sidebar-pane::-webkit-scrollbar{width:8px}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .sidebar-pane::-webkit-scrollbar-track{background:transparent}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .sidebar-pane::-webkit-scrollbar-thumb{background:#2a6570;border-radius:999px;border:2px solid transparent;background-clip:padding-box}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .sidebar-caption{display:flex!important;align-items:center!important;justify-content:space-between!important;margin:8px 2px 10px!important;color:#b7d1d6!important}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .sidebar-caption strong{font-size:8px!important;letter-spacing:.12em!important;text-transform:uppercase!important;color:#c7dde1!important}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .sidebar-caption span{font-size:7.5px!important;color:#6f9aa3!important}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .sidebar-foot{
  position:absolute!important;left:0!important;right:0!important;bottom:0!important;height:36px!important;display:flex!important;align-items:center!important;padding:0 14px!important;
  background:#062b34!important;border-top:1px solid var(--p2-line-soft)!important;color:#78a0a8!important;font-size:8px!important;z-index:8!important;
}

/* Search */
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .part-search{position:relative!important;display:block!important;margin:0 0 12px!important}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .part-search::before{content:'⌕';position:absolute;left:13px;top:50%;transform:translateY(-52%);z-index:2;color:#a4c0c7;font-size:16px;pointer-events:none}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar #partSearch{
  width:100%!important;height:42px!important;border-radius:10px!important;border:1px solid #2a626d!important;background:#0a3a46!important;color:#f2f9fa!important;padding:0 13px 0 38px!important;font-size:10.5px!important;outline:0!important;box-shadow:none!important;
}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar #partSearch::placeholder{color:#84a9b1!important}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar #partSearch:focus{border-color:#39bfb8!important;box-shadow:0 0 0 3px rgba(44,193,184,.09)!important}

/* Filter chips */
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .phase2-filter-row{
  display:flex!important;flex-wrap:wrap!important;gap:7px!important;margin:0 0 10px!important;
}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .phase2-filter-row button{
  height:30px!important;min-height:30px!important;padding:0 12px!important;border-radius:999px!important;border:1px solid #2a616d!important;background:#0a3945!important;color:#a9c6cc!important;font-size:8.5px!important;font-weight:850!important;box-shadow:none!important;
}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .phase2-filter-row button:hover{background:#104b57!important;color:#fff!important}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .phase2-filter-row button.is-active{
  background:linear-gradient(180deg,#baf03c,#a8df27)!important;border-color:#b7e936!important;color:#173312!important;box-shadow:0 4px 10px rgba(145,202,26,.14)!important;
}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar [data-left-pane=parts]>.sidebar-caption{display:none!important}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .parts-note{display:none!important}

/* Component groups */
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar #drawer.phase2-library{display:grid!important;grid-template-columns:1fr!important;gap:4px!important;overflow:visible!important}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .phase2-library-group{display:block!important;margin:0!important;padding:0!important}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .phase2-group-head{
  width:100%!important;min-height:40px!important;padding:0 4px!important;border:0!important;background:transparent!important;color:#d7e8eb!important;border-radius:8px!important;
  display:grid!important;grid-template-columns:20px minmax(0,1fr) auto 20px!important;gap:7px!important;align-items:center!important;text-align:left!important;box-shadow:none!important;
}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .phase2-group-head:hover{background:rgba(255,255,255,.025)!important}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .phase2-group-icon{display:grid;place-items:center;color:#a4c0c7;font-size:11px!important}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .phase2-group-head strong{font-size:10px!important;color:#e6f1f3!important;white-space:nowrap!important}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .phase2-group-count{font-size:7px!important;color:#6e9aa3!important;background:#0a3a45!important;border-radius:999px!important;padding:3px 6px!important}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .phase2-group-chevron{font-size:18px!important;color:#8eb0b7!important;transition:transform .16s ease!important}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .phase2-library-group.is-open .phase2-group-chevron{transform:rotate(90deg)!important}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .phase2-group-list{display:none!important;gap:7px!important;padding:0 0 8px!important}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .phase2-library-group.is-open .phase2-group-list{display:grid!important}

/* Component cards */
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar #drawer .phase2-part-card{
  position:relative!important;width:100%!important;min-height:58px!important;height:58px!important;margin:0!important;padding:5px 8px!important;
  display:grid!important;grid-template-columns:58px minmax(0,1fr) 22px!important;align-items:center!important;gap:9px!important;
  border-radius:10px!important;border:1px solid #255a66!important;background:linear-gradient(180deg,#0d424e,#0c3c48)!important;color:#eff8f9!important;text-align:left!important;box-shadow:0 3px 8px rgba(0,0,0,.035)!important;transition:background .14s ease,border-color .14s ease,transform .14s ease!important;
}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar #drawer .phase2-part-card:hover{
  background:linear-gradient(180deg,#12515e,#104955)!important;border-color:#397784!important;transform:translateY(-1px)!important;box-shadow:0 7px 14px rgba(0,0,0,.09)!important;
}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar #drawer .phase2-part-card:active{cursor:grabbing!important;transform:translateY(0)!important}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar #drawer .catalog-thumb{
  width:54px!important;height:46px!important;border-radius:8px!important;background:#092f39!important;border:1px solid rgba(118,177,187,.10)!important;display:grid!important;place-items:center!important;overflow:hidden!important;
}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar #drawer .catalog-copy{display:flex!important;flex-direction:column!important;gap:3px!important;min-width:0!important}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar #drawer .catalog-copy strong{font-size:10px!important;line-height:1.15!important;color:#fff!important;font-weight:850!important;white-space:normal!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar #drawer .catalog-copy small{display:block!important;max-width:100%!important;font-size:7.3px!important;line-height:1.25!important;color:#8fb0b8!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar #drawer .capability{display:none!important}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar #drawer .phase2-card-more{grid-column:3!important;justify-self:center!important;color:#abc8cd!important;font-size:17px!important;line-height:1!important;pointer-events:none!important}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar #drawer .is-planned{display:none!important}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .phase2-my-empty{
  min-height:58px;padding:8px 10px;border:1px dashed #2b606b;border-radius:10px;background:#093641;color:#8db0b7;display:flex;align-items:center;gap:10px;
}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .phase2-my-empty>span{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;background:#0d4652;color:#86cbd0;font-size:16px}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .phase2-my-empty strong{display:block;color:#d4e6e9;font-size:9px}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .phase2-my-empty small{display:block;margin-top:2px;font-size:7px;color:#799fa7}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .phase2-no-results{margin:10px 0;padding:22px 12px;border:1px dashed #2b606b;border-radius:11px;background:#093641;text-align:center;color:#8db0b7;display:grid;gap:4px}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .phase2-no-results>span{font-size:22px;color:#7fb7bf}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .phase2-no-results strong{font-size:10px;color:#dbeaed}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .phase2-no-results small{font-size:7.5px}

/* Projects tab */
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .phase2-projects-pane .sidebar-caption{margin-top:2px!important;margin-bottom:8px!important}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar #projects.project-list{display:grid!important;gap:7px!important}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar #projects .phase2-project-card{
  position:relative!important;width:100%!important;min-height:64px!important;padding:9px 32px 9px 10px!important;border:1px solid #245965!important;border-radius:10px!important;background:#0b3b47!important;color:#e8f4f5!important;display:grid!important;grid-template-columns:30px minmax(0,1fr)!important;align-items:center!important;gap:9px!important;text-align:left!important;box-shadow:none!important;
}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar #projects .phase2-project-card:hover{background:#104b57!important;border-color:#397582!important;transform:translateY(-1px)!important}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar #projects .phase2-project-card.active{
  background:linear-gradient(180deg,#114d58,#0f4651)!important;border-color:#4b8089!important;box-shadow:inset 3px 0 var(--p2-lime)!important;
}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar #projects .phase2-project-card .num{
  width:28px;height:28px;display:grid!important;place-items:center!important;border-radius:9px!important;background:#092f39!important;color:#79a4ac!important;font:800 8px ui-monospace,SFMono-Regular,Consolas,monospace!important;
}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar #projects .phase2-project-card.active .num{background:#b5e634!important;color:#173510!important}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar #projects .phase2-project-card strong{display:block!important;font-size:10px!important;color:#f3f9fa!important;line-height:1.2!important;white-space:normal!important}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar #projects .phase2-project-card small{display:block!important;margin-top:4px!important;font-size:7.5px!important;color:#86aab2!important}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .phase2-project-arrow{position:absolute;right:10px;top:50%;transform:translateY(-50%);color:#89abb2;font-size:18px;pointer-events:none}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar #projects .project-progress-mark{right:29px!important;top:8px!important}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .phase2-free-build{
  width:100%!important;min-height:62px!important;margin:10px 0 0!important;padding:8px 32px 8px 10px!important;border-radius:10px!important;border:1px dashed #39727d!important;background:#093843!important;color:#e8f3f5!important;display:grid!important;grid-template-columns:36px 1fr!important;gap:9px!important;align-items:center!important;text-align:left!important;position:relative!important;
}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .phase2-free-build:hover{background:#0d4652!important;border-color:#55a0a8!important}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .phase2-free-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;background:#0d4a56;color:#b6e832;font-size:17px}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .phase2-free-build b{display:block;font-size:10px;color:#fff}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .phase2-free-build small{display:block;margin-top:3px;font-size:7.4px;color:#86a9b1}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .phase2-free-build>span:nth-child(2){margin:0!important}

/* Collapsed/sidebar responsive preservation */
body.arduino-page.arduino-phase2-sidebar-v2715.sidebar-collapsed #studioSidebar .sidebar-head{grid-template-columns:1fr!important;padding:8px 6px!important}
body.arduino-page.arduino-phase2-sidebar-v2715.sidebar-collapsed #studioSidebar .sidebar-tabs{grid-template-columns:1fr!important}
body.arduino-page.arduino-phase2-sidebar-v2715.sidebar-collapsed #studioSidebar .sidebar-tabs button span:not(.phase2-tab-icon),
body.arduino-page.arduino-phase2-sidebar-v2715.sidebar-collapsed #studioSidebar #sidebarToggle,
body.arduino-page.arduino-phase2-sidebar-v2715.sidebar-collapsed #studioSidebar .part-search,
body.arduino-page.arduino-phase2-sidebar-v2715.sidebar-collapsed #studioSidebar .phase2-filter-row,
body.arduino-page.arduino-phase2-sidebar-v2715.sidebar-collapsed #studioSidebar .sidebar-caption,
body.arduino-page.arduino-phase2-sidebar-v2715.sidebar-collapsed #studioSidebar .phase2-group-head strong,
body.arduino-page.arduino-phase2-sidebar-v2715.sidebar-collapsed #studioSidebar .phase2-group-count,
body.arduino-page.arduino-phase2-sidebar-v2715.sidebar-collapsed #studioSidebar .phase2-group-chevron,
body.arduino-page.arduino-phase2-sidebar-v2715.sidebar-collapsed #studioSidebar .catalog-copy,
body.arduino-page.arduino-phase2-sidebar-v2715.sidebar-collapsed #studioSidebar .phase2-card-more,
body.arduino-page.arduino-phase2-sidebar-v2715.sidebar-collapsed #studioSidebar .phase2-project-card>span:nth-child(2),
body.arduino-page.arduino-phase2-sidebar-v2715.sidebar-collapsed #studioSidebar .phase2-project-arrow,
body.arduino-page.arduino-phase2-sidebar-v2715.sidebar-collapsed #studioSidebar .phase2-free-build>span:not(.phase2-free-icon){display:none!important}
body.arduino-page.arduino-phase2-sidebar-v2715.sidebar-collapsed #studioSidebar .sidebar-pane{padding:8px 5px 44px!important}
body.arduino-page.arduino-phase2-sidebar-v2715.sidebar-collapsed #studioSidebar .phase2-group-head{grid-template-columns:1fr!important;place-items:center!important}
body.arduino-page.arduino-phase2-sidebar-v2715.sidebar-collapsed #studioSidebar .phase2-group-list{padding-bottom:5px!important}
body.arduino-page.arduino-phase2-sidebar-v2715.sidebar-collapsed #studioSidebar #drawer .phase2-part-card{height:50px!important;min-height:50px!important;grid-template-columns:1fr!important;padding:3px!important;place-items:center!important}
body.arduino-page.arduino-phase2-sidebar-v2715.sidebar-collapsed #studioSidebar #drawer .catalog-thumb{width:48px!important;height:42px!important}
body.arduino-page.arduino-phase2-sidebar-v2715.sidebar-collapsed #studioSidebar #projects .phase2-project-card{grid-template-columns:1fr!important;place-items:center!important;padding:5px!important;min-height:50px!important}
body.arduino-page.arduino-phase2-sidebar-v2715.sidebar-collapsed #studioSidebar .phase2-free-build{grid-template-columns:1fr!important;place-items:center!important;padding:5px!important;min-height:50px!important}

@media(max-width:900px){
  body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar{width:min(330px,88vw)!important;max-width:88vw!important}
  body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .sidebar-pane{padding-bottom:70px!important}
}
@media(prefers-reduced-motion:reduce){
  body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar *{transition:none!important}
}


/* ===== SOURCE: labs/arduino/workbench/phase3-workbench.css ===== */
/* AIM Arduino Phase 3 — Engineering Workbench shell v0.27.16
   Scope: centre workbench chrome only. Hardware rendering, wiring engine,
   onboarding and right code workspace remain owned by their existing modules. */

body.arduino-page.arduino-phase3-workbench-v2716{
  --p3-mat:#07313b;
  --p3-mat-deep:#062a34;
  --p3-panel:#0a3945;
  --p3-panel-2:#0e4350;
  --p3-line:#2b5f6b;
  --p3-line-soft:rgba(126,179,190,.18);
  --p3-text:#e5f1f3;
  --p3-muted:#91b1b8;
  --p3-teal:#25c2b8;
  --p3-lime:#b6e62c;
}

/* ----- Workbench frame ----- */
body.arduino-page.arduino-phase3-workbench-v2716 .benchpanel{
  position:relative!important;
  min-width:0!important;
  height:100%!important;
  overflow:hidden!important;
  border:0!important;
  border-radius:0!important;
  background:var(--p3-mat-deep)!important;
  box-shadow:none!important;
}
body.arduino-page.arduino-phase3-workbench-v2716 .benchviewport{
  position:relative!important;
  height:100%!important;
  min-height:0!important;
  overflow:auto!important;
  border:0!important;
  border-radius:0!important;
  background-color:var(--p3-mat)!important;
  background-image:
    linear-gradient(rgba(255,255,255,.014) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.014) 1px,transparent 1px),
    radial-gradient(rgba(108,174,185,.18) 1px,transparent 1.25px)!important;
  background-size:88px 88px,88px 88px,22px 22px!important;
  background-position:0 0!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important;
  scrollbar-color:#3f6872 #082f39!important;
  scrollbar-width:thin!important;
}
body.arduino-page.arduino-phase3-workbench-v2716 .benchviewport::before{
  content:'';
  position:absolute;
  left:0;right:0;top:0;
  height:78px;
  z-index:8;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(5,34,43,.26),rgba(5,34,43,0));
}
body.arduino-page.arduino-phase3-workbench-v2716 .benchviewport::after{
  content:'';
  position:absolute;
  left:0;right:0;bottom:0;
  height:72px;
  z-index:8;
  pointer-events:none;
  background:linear-gradient(0deg,rgba(5,34,43,.30),rgba(5,34,43,0));
}
body.arduino-page.arduino-phase3-workbench-v2716 #benchstage{
  min-width:100%!important;
  min-height:100%!important;
  filter:none!important;
}
body.arduino-page.arduino-phase3-workbench-v2716 #bench{
  transform-origin:top left!important;
}

/* ----- Workbench identity chrome ----- */
body.arduino-page.arduino-phase3-workbench-v2716 .canvas-label{
  left:16px!important;
  top:16px!important;
  min-width:188px!important;
  height:42px!important;
  min-height:42px!important;
  padding:0 13px!important;
  gap:9px!important;
  border:1px solid var(--p3-line)!important;
  border-radius:10px!important;
  background:rgba(8,53,64,.96)!important;
  color:var(--p3-text)!important;
  box-shadow:0 9px 22px rgba(0,0,0,.14)!important;
  backdrop-filter:none!important;
  z-index:50!important;
}
body.arduino-page.arduino-phase3-workbench-v2716 .canvas-label>span:first-child{
  color:var(--p3-teal)!important;
  font-size:14px!important;
}
body.arduino-page.arduino-phase3-workbench-v2716 .canvas-label strong{
  font-size:10.5px!important;
  font-weight:800!important;
  letter-spacing:-.01em!important;
}
body.arduino-page.arduino-phase3-workbench-v2716 .canvas-partcount{display:none!important}

body.arduino-page.arduino-phase3-workbench-v2716 .bench-project-name{
  position:absolute!important;
  left:214px!important;
  top:16px!important;
  z-index:50!important;
  width:188px!important;
  height:42px!important;
  padding:0 9px 0 13px!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  border:1px solid var(--p3-line)!important;
  border-radius:10px!important;
  background:rgba(8,53,64,.96)!important;
  color:#d9ebee!important;
  box-shadow:0 9px 22px rgba(0,0,0,.12)!important;
}
body.arduino-page.arduino-phase3-workbench-v2716 .bench-project-name span{
  min-width:0!important;
  flex:1!important;
  overflow:hidden!important;
  white-space:nowrap!important;
  text-overflow:ellipsis!important;
  font-size:9.5px!important;
  font-weight:750!important;
}
body.arduino-page.arduino-phase3-workbench-v2716 .bench-project-name button{
  width:28px!important;
  height:28px!important;
  min-width:28px!important;
  min-height:28px!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  border:0!important;
  border-radius:7px!important;
  background:transparent!important;
  color:#9fc0c6!important;
  font-size:11px!important;
}
body.arduino-page.arduino-phase3-workbench-v2716 .bench-project-name button:hover{
  background:#124854!important;
  color:#fff!important;
}

/* ----- Edit / viewport tools ----- */
body.arduino-page.arduino-phase3-workbench-v2716 .canvas-tools--top-left.aim-edit-tools{
  left:auto!important;
  right:116px!important;
  top:16px!important;
  z-index:52!important;
  padding:0!important;
  gap:7px!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
body.arduino-page.arduino-phase3-workbench-v2716 .canvas-tools--top-left.aim-edit-tools .tool-separator{display:none!important}
body.arduino-page.arduino-phase3-workbench-v2716 .canvas-tools--top-left.aim-edit-tools button{
  width:42px!important;
  min-width:42px!important;
  height:42px!important;
  min-height:42px!important;
  padding:0!important;
  border:1px solid var(--p3-line)!important;
  border-radius:10px!important;
  background:rgba(8,53,64,.96)!important;
  color:#a5c3c9!important;
  box-shadow:0 9px 22px rgba(0,0,0,.12)!important;
  font-size:13px!important;
}
body.arduino-page.arduino-phase3-workbench-v2716 .canvas-tools--top-left.aim-edit-tools button:hover:not(:disabled){
  background:#104652!important;
  color:#fff!important;
}
body.arduino-page.arduino-phase3-workbench-v2716 .canvas-tools--top-left.aim-edit-tools button:disabled{opacity:.38!important}

body.arduino-page.arduino-phase3-workbench-v2716 .canvas-tools--top-right{
  right:16px!important;
  top:16px!important;
  z-index:52!important;
  padding:0!important;
  gap:7px!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
}
body.arduino-page.arduino-phase3-workbench-v2716 .canvas-tools--top-right button{
  width:42px!important;
  min-width:42px!important;
  height:42px!important;
  min-height:42px!important;
  padding:0!important;
  border:1px solid var(--p3-line)!important;
  border-radius:10px!important;
  background:rgba(8,53,64,.96)!important;
  color:#d8ebee!important;
  box-shadow:0 9px 22px rgba(0,0,0,.12)!important;
  font-size:12px!important;
}
body.arduino-page.arduino-phase3-workbench-v2716 .canvas-tools--top-right button:hover{
  background:#104652!important;
  color:#fff!important;
}

/* ----- Movable wire palette: only shell placement/appearance in Phase 3 ----- */
body.arduino-page.arduino-phase3-workbench-v2716 .aim-wire-card{
  width:206px!important;
  border:1px solid var(--p3-line)!important;
  border-radius:11px!important;
  background:#093642!important;
  box-shadow:0 18px 36px rgba(0,0,0,.22)!important;
  overflow:hidden!important;
  z-index:54!important;
  backdrop-filter:none!important;
}
body.arduino-page.arduino-phase3-workbench-v2716 .aim-wire-card-head{
  height:38px!important;
  padding:0 9px!important;
  gap:7px!important;
  border-bottom:1px solid rgba(137,190,199,.12)!important;
  background:#0a3a46!important;
}
body.arduino-page.arduino-phase3-workbench-v2716 .aim-wire-card-head div strong::before{content:'Wire Color'!important}
body.arduino-page.arduino-phase3-workbench-v2716 .aim-wire-card-body{
  min-height:47px!important;
  padding:9px 10px!important;
  gap:8px!important;
  justify-content:center!important;
}
body.arduino-page.arduino-phase3-workbench-v2716 .aim-wire-card-body .wire-palette{gap:9px!important}
body.arduino-page.arduino-phase3-workbench-v2716 .aim-wire-card-body .wire-palette button{
  width:22px!important;
  min-width:22px!important;
  height:22px!important;
  min-height:22px!important;
  border-radius:50%!important;
}

/* ----- Bottom status cluster ----- */
body.arduino-page.arduino-phase3-workbench-v2716 .studio-status{
  position:absolute!important;
  left:16px!important;
  right:auto!important;
  bottom:16px!important;
  z-index:53!important;
  width:auto!important;
  max-width:calc(100% - 190px)!important;
  min-height:42px!important;
  height:42px!important;
  padding:4px!important;
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  overflow:hidden!important;
  border:1px solid var(--p3-line)!important;
  border-radius:11px!important;
  background:rgba(8,53,64,.96)!important;
  color:var(--p3-text)!important;
  box-shadow:0 11px 26px rgba(0,0,0,.15)!important;
}
body.arduino-page.arduino-phase3-workbench-v2716 .status-primary{
  height:32px!important;
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  padding:0 10px!important;
  border-radius:8px!important;
  background:#0d4450!important;
  white-space:nowrap!important;
}
body.arduino-page.arduino-phase3-workbench-v2716 .status-primary i{
  width:10px!important;
  height:10px!important;
  border-radius:50%!important;
  background:var(--p3-lime)!important;
  box-shadow:0 0 0 5px rgba(182,230,44,.09),0 0 12px rgba(182,230,44,.34)!important;
}
body.arduino-page.arduino-phase3-workbench-v2716 .status-primary strong{
  font-size:8.5px!important;
  color:#e9f5f6!important;
}
body.arduino-page.arduino-phase3-workbench-v2716 .status-context{
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  overflow:hidden!important;
}
body.arduino-page.arduino-phase3-workbench-v2716 #wirehint{display:none!important}
body.arduino-page.arduino-phase3-workbench-v2716 .livebar{
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
}
body.arduino-page.arduino-phase3-workbench-v2716 #readings{
  min-width:0!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  color:#cce0e4!important;
  font-size:8px!important;
}
body.arduino-page.arduino-phase3-workbench-v2716 #sound{
  height:30px!important;
  min-height:30px!important;
  padding:0 9px!important;
  border:1px solid #315f69!important;
  border-radius:8px!important;
  background:#0d4350!important;
  color:#c2d9dd!important;
  font-size:8px!important;
}
body.arduino-page.arduino-phase3-workbench-v2716 .status-metrics{
  height:32px!important;
  display:flex!important;
  align-items:center!important;
  gap:6px!important;
  margin-left:auto!important;
  white-space:nowrap!important;
}
body.arduino-page.arduino-phase3-workbench-v2716 .status-metrics span{
  min-height:26px!important;
  display:inline-flex!important;
  align-items:center!important;
  padding:0 8px!important;
  border-radius:7px!important;
  background:#0b3f4b!important;
  color:#b9d0d5!important;
  font-size:7.5px!important;
}
body.arduino-page.arduino-phase3-workbench-v2716 .status-metrics #check{
  height:30px!important;
  min-height:30px!important;
  padding:0 10px!important;
  border:1px solid #3a7680!important;
  border-radius:8px!important;
  background:#0d5360!important;
  color:#e9f8f8!important;
  font-size:8px!important;
  font-weight:850!important;
}

/* ----- Zoom / fit cluster ----- */
body.arduino-page.arduino-phase3-workbench-v2716 .canvas-tools--zoom{
  right:16px!important;
  bottom:16px!important;
  z-index:53!important;
  height:50px!important;
  padding:5px!important;
  gap:5px!important;
  border:1px solid var(--p3-line)!important;
  border-radius:11px!important;
  background:rgba(8,53,64,.96)!important;
  box-shadow:0 11px 26px rgba(0,0,0,.15)!important;
  backdrop-filter:none!important;
}
body.arduino-page.arduino-phase3-workbench-v2716 .canvas-tools--zoom button{
  width:38px!important;
  min-width:38px!important;
  height:38px!important;
  min-height:38px!important;
  padding:0!important;
  border:1px solid #356b76!important;
  border-radius:8px!important;
  background:#0d4652!important;
  color:#e5f2f4!important;
  font-size:12px!important;
}
body.arduino-page.arduino-phase3-workbench-v2716 .canvas-tools--zoom #zoomlevel{
  min-width:54px!important;
  padding:0 5px!important;
  text-align:center!important;
  color:#dbecef!important;
  font-size:8.5px!important;
  font-weight:800!important;
}
body.arduino-page.arduino-phase3-workbench-v2716 .canvas-tools--zoom #fit{
  width:38px!important;
  min-width:38px!important;
  font-size:13px!important;
}

/* ----- Corner identity ----- */
body.arduino-page.arduino-phase3-workbench-v2716 .benchcorner{
  left:18px!important;
  bottom:70px!important;
  z-index:9!important;
  color:#416e77!important;
  font-size:6.7px!important;
  letter-spacing:1.35px!important;
  line-height:1.35!important;
}
body.arduino-page.arduino-phase3-workbench-v2716 .benchcorner span{font-size:6px!important;color:#365f68!important}

/* ----- Workbench state polish ----- */
body.arduino-page.arduino-phase3-workbench-v2716 .benchviewport.is-panning{cursor:grabbing!important}
body.arduino-page.arduino-phase3-workbench-v2716 .benchviewport.is-part-drop-target{
  box-shadow:inset 0 0 0 2px rgba(69,221,210,.65),inset 0 0 64px rgba(37,194,184,.08)!important;
}
body.arduino-page.arduino-phase3-workbench-v2716.arduino-grid-hidden .benchviewport{
  background-image:linear-gradient(rgba(255,255,255,.014) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.014) 1px,transparent 1px)!important;
  background-size:88px 88px!important;
}

/* ----- Responsive Phase 3 shell only ----- */
@media(max-width:1450px){
  body.arduino-page.arduino-phase3-workbench-v2716 .canvas-label{min-width:174px!important}
  body.arduino-page.arduino-phase3-workbench-v2716 .bench-project-name{left:202px!important;width:166px!important}
  body.arduino-page.arduino-phase3-workbench-v2716 .aim-wire-card{width:196px!important}
}
@media(max-width:1180px){
  body.arduino-page.arduino-phase3-workbench-v2716 .bench-project-name{display:none!important}
  body.arduino-page.arduino-phase3-workbench-v2716 .canvas-tools--top-left.aim-edit-tools{right:116px!important}
  body.arduino-page.arduino-phase3-workbench-v2716 .studio-status{max-width:calc(100% - 170px)!important}
}
@media(max-width:980px){
  body.arduino-page.arduino-phase3-workbench-v2716 .benchpanel{height:640px!important}
  body.arduino-page.arduino-phase3-workbench-v2716 .canvas-label{left:12px!important;top:12px!important}
  body.arduino-page.arduino-phase3-workbench-v2716 .canvas-tools--top-right{right:12px!important;top:12px!important}
  body.arduino-page.arduino-phase3-workbench-v2716 .canvas-tools--top-left.aim-edit-tools{top:60px!important;right:12px!important}
  body.arduino-page.arduino-phase3-workbench-v2716 .studio-status{left:12px!important;bottom:12px!important;max-width:calc(100% - 156px)!important}
  body.arduino-page.arduino-phase3-workbench-v2716 .canvas-tools--zoom{right:12px!important;bottom:12px!important}
}
@media(max-width:680px){
  body.arduino-page.arduino-phase3-workbench-v2716 .canvas-label{min-width:0!important;width:auto!important}
  body.arduino-page.arduino-phase3-workbench-v2716 .canvas-label strong{font-size:9px!important}
  body.arduino-page.arduino-phase3-workbench-v2716 .canvas-tools--top-left.aim-edit-tools{display:none!important}
  body.arduino-page.arduino-phase3-workbench-v2716 .canvas-tools--top-right #reset{display:none!important}
  body.arduino-page.arduino-phase3-workbench-v2716 .studio-status{max-width:calc(100% - 140px)!important}
  body.arduino-page.arduino-phase3-workbench-v2716 .status-context{display:none!important}
  body.arduino-page.arduino-phase3-workbench-v2716 .status-metrics>span{display:none!important}
}


/* ===== SOURCE: labs/arduino/hardware/phase4-hardware.css ===== */
/* AIM Arduino Phase 4 — Hardware visual system v0.27.17
   Scope: visual presentation of hardware on the Engineering Workbench only.
   No circuit rules, pin semantics, wiring engine, onboarding flow or code editor changes. */

body.arduino-page.arduino-phase4-hardware-v2717{
  --p4-hardware-shadow:0 15px 28px rgba(0,0,0,.24);
  --p4-hardware-shadow-soft:0 9px 18px rgba(0,0,0,.17);
  --p4-pin-idle:rgba(236,213,112,.34);
  --p4-pin-border:rgba(244,219,114,.78);
  --p4-label-bg:rgba(7,42,51,.92);
  --p4-label-line:rgba(122,184,194,.32);
}

/* ----- Physical objects: calm until the learner interacts ----- */
body.arduino-page.arduino-phase4-hardware-v2717 #parts .part{
  transition:filter .16s ease,opacity .16s ease;
  isolation:isolate;
}
body.arduino-page.arduino-phase4-hardware-v2717 #parts .part:not(.is-dragging):hover{
  z-index:8!important;
}
body.arduino-page.arduino-phase4-hardware-v2717 #parts .part.is-dragging{
  z-index:18!important;
  filter:drop-shadow(0 18px 24px rgba(0,0,0,.34));
}

/* The approved reference does not place permanent translucent name plates over hardware.
   Keep movement/info controls available, but reveal them only on interaction. */
body.arduino-page.arduino-phase4-hardware-v2717 #parts .part>.handle{
  top:-27px!important;
  left:0!important;
  min-height:24px!important;
  max-height:24px!important;
  padding:2px 4px 2px 8px!important;
  gap:4px!important;
  border:1px solid var(--p4-label-line)!important;
  border-radius:7px!important;
  background:var(--p4-label-bg)!important;
  color:#d7e8eb!important;
  box-shadow:0 6px 14px rgba(0,0,0,.14)!important;
  opacity:0!important;
  transform:translateY(3px)!important;
  visibility:hidden!important;
  pointer-events:none!important;
  transition:opacity .12s ease,transform .12s ease,visibility .12s ease!important;
  z-index:22!important;
}
body.arduino-page.arduino-phase4-hardware-v2717 #parts .part:hover>.handle,
body.arduino-page.arduino-phase4-hardware-v2717 #parts .part:focus-within>.handle,
body.arduino-page.arduino-phase4-hardware-v2717 #parts .part.is-dragging>.handle{
  opacity:1!important;
  transform:translateY(0)!important;
  visibility:visible!important;
  pointer-events:auto!important;
}
body.arduino-page.arduino-phase4-hardware-v2717 #parts .part>.handle span{
  max-width:152px!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  color:#e5f2f4!important;
  font-size:9px!important;
  font-weight:800!important;
  letter-spacing:.01em!important;
}
body.arduino-page.arduino-phase4-hardware-v2717 #parts .part>.handle button{
  width:20px!important;
  min-width:20px!important;
  height:20px!important;
  min-height:20px!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
  border:0!important;
  border-radius:5px!important;
  background:rgba(255,255,255,.06)!important;
  color:#a9c7cd!important;
  font-size:9px!important;
}
body.arduino-page.arduino-phase4-hardware-v2717 #parts .part>.handle button:hover{
  background:rgba(255,255,255,.12)!important;
  color:#fff!important;
}

/* ----- Arduino Uno ----- */
body.arduino-page.arduino-phase4-hardware-v2717 .part-uno{
  filter:drop-shadow(0 17px 22px rgba(0,0,0,.25));
}
body.arduino-page.arduino-phase4-hardware-v2717 .part-uno wokwi-arduino-uno{
  filter:saturate(1.08) contrast(1.045) brightness(1.01);
  transition:filter .16s ease;
}
body.arduino-page.arduino-phase4-hardware-v2717 .part-uno:hover wokwi-arduino-uno{
  filter:saturate(1.11) contrast(1.055) brightness(1.025);
}

/* ----- Breadboard ----- */
body.arduino-page.arduino-phase4-hardware-v2717 .part-breadboard{
  filter:drop-shadow(0 15px 22px rgba(0,0,0,.24))!important;
}
body.arduino-page.arduino-phase4-hardware-v2717 .part-breadboard wokwi-breadboard{
  --bb-shell:#dfe3e1;
  --bb-edge:#aeb9bb;
  --bb-board-top:#fffefa;
  --bb-board-bottom:#eeefeb;
  --bb-zone:#fbfbf7;
  --bb-zone-stroke:#e0e4e2;
  --bb-trench-top:#e6e8e5;
  --bb-trench-bottom:#cfd4d1;
  --bb-socket-rim:#c9ced0;
  --bb-socket:#4c5459;
  --bb-socket-edge:#7f888d;
  --bb-spring:#252c30;
  --bb-red:#e45b5d;
  --bb-blue:#4b9fd1;
  filter:brightness(1.025) contrast(1.025)!important;
}

/* ----- Small components ----- */
body.arduino-page.arduino-phase4-hardware-v2717 .part-led wokwi-led{
  filter:saturate(1.16) contrast(1.035) drop-shadow(0 7px 7px rgba(0,0,0,.23));
}
body.arduino-page.arduino-phase4-hardware-v2717 .part-resistor wokwi-resistor{
  filter:saturate(1.08) contrast(1.04) drop-shadow(0 4px 4px rgba(0,0,0,.20))!important;
}
body.arduino-page.arduino-phase4-hardware-v2717 .part-button wokwi-pushbutton,
body.arduino-page.arduino-phase4-hardware-v2717 .part-pot wokwi-potentiometer,
body.arduino-page.arduino-phase4-hardware-v2717 .part-buzzer wokwi-buzzer,
body.arduino-page.arduino-phase4-hardware-v2717 .part-servo wokwi-servo{
  filter:saturate(1.06) contrast(1.04) drop-shadow(0 8px 9px rgba(0,0,0,.22));
}
body.arduino-page.arduino-phase4-hardware-v2717 .part-hcsr04 wokwi-hc-sr04,
body.arduino-page.arduino-phase4-hardware-v2717 .part-mq2 wokwi-gas-sensor,
body.arduino-page.arduino-phase4-hardware-v2717 .part-dht22 wokwi-dht22,
body.arduino-page.arduino-phase4-hardware-v2717 .part-pir wokwi-pir-motion-sensor,
body.arduino-page.arduino-phase4-hardware-v2717 .part-ldr wokwi-photoresistor-sensor,
body.arduino-page.arduino-phase4-hardware-v2717 .part-ntc wokwi-ntc-temperature-sensor,
body.arduino-page.arduino-phase4-hardware-v2717 .part-mpu6050 wokwi-mpu6050,
body.arduino-page.arduino-phase4-hardware-v2717 .part-rtc wokwi-ds1307{
  filter:saturate(1.04) contrast(1.035) drop-shadow(0 8px 9px rgba(0,0,0,.20));
}

/* ----- Breadboard-seated parts should visually belong to the board ----- */
body.arduino-page.arduino-phase4-hardware-v2717 .part.is-seated{
  filter:drop-shadow(0 3px 4px rgba(0,0,0,.18));
}
body.arduino-page.arduino-phase4-hardware-v2717 .part.is-seated>.handle{
  top:-24px!important;
}
body.arduino-page.arduino-phase4-hardware-v2717 .part.is-seated.part-led wokwi-led,
body.arduino-page.arduino-phase4-hardware-v2717 .part.is-seated.part-resistor wokwi-resistor{
  filter:saturate(1.12) contrast(1.04) drop-shadow(0 3px 3px rgba(0,0,0,.17))!important;
}

/* ----- Connection targets: quiet at rest, obvious when needed ----- */
body.arduino-page.arduino-phase4-hardware-v2717 #parts .pin{
  width:9px!important;
  height:9px!important;
  min-width:9px!important;
  min-height:9px!important;
  opacity:.12!important;
  background:rgba(20,44,50,.66)!important;
  border:1px solid var(--p4-pin-border)!important;
  box-shadow:none!important;
  z-index:12!important;
  transition:opacity .12s ease,transform .12s ease,box-shadow .12s ease,background .12s ease!important;
}
body.arduino-page.arduino-phase4-hardware-v2717 #parts .part:hover>.pin,
body.arduino-page.arduino-phase4-hardware-v2717 #parts .pin:focus-visible{
  opacity:.68!important;
}
body.arduino-page.arduino-phase4-hardware-v2717 #parts .pin:hover,
body.arduino-page.arduino-phase4-hardware-v2717 #parts .pin.pending,
body.arduino-page.arduino-phase4-hardware-v2717 #parts .pin.first-project-target{
  opacity:1!important;
  transform:translate(-50%,-50%) scale(1.28)!important;
  background:#efffcb!important;
  border-color:#c6f13e!important;
  box-shadow:0 0 0 4px rgba(182,230,44,.20),0 0 18px rgba(182,230,44,.34)!important;
}
body.arduino-page.arduino-phase4-hardware-v2717 #parts .pin.is-connected{
  opacity:1!important;
  background:var(--pin-wire,#16a34a)!important;
  border-color:rgba(255,255,255,.78)!important;
  box-shadow:0 0 0 2px color-mix(in srgb,var(--pin-wire,#16a34a) 32%,transparent)!important;
}
body.arduino-page.arduino-phase4-hardware-v2717 #parts .pin::after{
  bottom:14px!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  min-width:max-content!important;
  padding:5px 7px!important;
  border:1px solid rgba(154,205,211,.26)!important;
  border-radius:6px!important;
  background:#082e38!important;
  color:#eaf6f7!important;
  box-shadow:0 8px 18px rgba(0,0,0,.22)!important;
  font-size:9px!important;
  font-weight:800!important;
}

/* Breadboard has many terminals: reveal only the interaction neighbourhood. */
body.arduino-page.arduino-phase4-hardware-v2717 .part-breadboard>.pin{
  width:8px!important;
  height:8px!important;
  min-width:8px!important;
  min-height:8px!important;
  opacity:.035!important;
  border-color:rgba(236,219,136,.36)!important;
  background:rgba(37,51,54,.16)!important;
}
body.arduino-page.arduino-phase4-hardware-v2717 .part-breadboard:hover>.pin{opacity:.12!important}
body.arduino-page.arduino-phase4-hardware-v2717 .part-breadboard>.pin:hover,
body.arduino-page.arduino-phase4-hardware-v2717 .part-breadboard>.pin.pending,
body.arduino-page.arduino-phase4-hardware-v2717 .part-breadboard>.pin.first-project-target,
body.arduino-page.arduino-phase4-hardware-v2717 .part-breadboard>.pin.is-connected{opacity:1!important}

/* ----- Interactive component controls ----- */
body.arduino-page.arduino-phase4-hardware-v2717 .partcontrol{
  top:calc(100% + 8px)!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  min-width:132px!important;
  padding:7px 9px!important;
  border:1px solid rgba(144,190,198,.36)!important;
  border-radius:9px!important;
  background:rgba(247,252,253,.96)!important;
  color:#173d46!important;
  box-shadow:0 10px 22px rgba(0,0,0,.18)!important;
  font-size:9px!important;
  font-weight:750!important;
  white-space:nowrap!important;
  z-index:20!important;
}
body.arduino-page.arduino-phase4-hardware-v2717 .partcontrol input[type="range"]{
  width:118px!important;
  accent-color:#0ea5a0!important;
}
body.arduino-page.arduino-phase4-hardware-v2717 button.partcontrol{
  min-height:32px!important;
  cursor:pointer!important;
}

/* ----- Hardware placement feedback ----- */
body.arduino-page.arduino-phase4-hardware-v2717 .part.is-dragging::after{
  content:'';
  position:absolute;
  inset:-10px;
  pointer-events:none;
  border:1px dashed rgba(63,215,202,.56);
  border-radius:12px;
  background:rgba(32,196,185,.025);
}
body.arduino-page.arduino-phase4-hardware-v2717 .part.selected{
  outline:1px dashed rgba(66,215,204,.68)!important;
  outline-offset:10px!important;
}

/* Preserve the approved clean canvas while giving hardware enough visual depth. */
body.arduino-page.arduino-phase4-hardware-v2717.arduino-sim-running #parts .part:not(.part-led){
  filter:none;
}
body.arduino-page.arduino-phase4-hardware-v2717.arduino-sim-running .part-uno wokwi-arduino-uno,
body.arduino-page.arduino-phase4-hardware-v2717.arduino-sim-running .part-breadboard wokwi-breadboard{
  filter:saturate(1.04) contrast(1.02)!important;
}

@media(max-width:1100px){
  body.arduino-page.arduino-phase4-hardware-v2717 #parts .part>.handle span{max-width:118px!important}
}
@media(prefers-reduced-motion:reduce){
  body.arduino-page.arduino-phase4-hardware-v2717 #parts .part,
  body.arduino-page.arduino-phase4-hardware-v2717 #parts .part>.handle,
  body.arduino-page.arduino-phase4-hardware-v2717 #parts .pin{transition:none!important}
}


/* ===== SOURCE: labs/arduino/wiring/phase5-wiring.css ===== */
/* AIM Arduino Phase 5 — wiring system only v0.27.18 */
body.arduino-page.arduino-phase5-wiring-v2718 #wires{z-index:2!important;overflow:visible!important;pointer-events:none!important}
body.arduino-page.arduino-phase5-wiring-v2718 #parts{z-index:3!important}
body.arduino-page.arduino-phase5-wiring-v2718 #wires .aim-wire-group{pointer-events:none}
body.arduino-page.arduino-phase5-wiring-v2718 #wires .aim-wire-shadow,
body.arduino-page.arduino-phase5-wiring-v2718 #wires .aim-wire-core{pointer-events:none;transition:stroke-width .14s ease,opacity .14s ease,filter .14s ease}
body.arduino-page.arduino-phase5-wiring-v2718 #wires .aim-wire-shadow{opacity:.56}
body.arduino-page.arduino-phase5-wiring-v2718 #wires .aim-wire-core{filter:drop-shadow(0 1px 1px rgba(0,0,0,.28))}
body.arduino-page.arduino-phase5-wiring-v2718 #wires .aim-wire-hit{pointer-events:stroke!important;cursor:pointer;outline:none}
body.arduino-page.arduino-phase5-wiring-v2718 #wires .aim-wire-group:hover .aim-wire-core,
body.arduino-page.arduino-phase5-wiring-v2718 #wires .aim-wire-group.is-selected .aim-wire-core{stroke-width:4.35!important;filter:drop-shadow(0 0 3px rgba(255,255,255,.22)) drop-shadow(0 2px 2px rgba(0,0,0,.3))}
body.arduino-page.arduino-phase5-wiring-v2718 #wires .aim-wire-group.is-selected .aim-wire-shadow{opacity:.9;stroke-width:7.5!important}
body.arduino-page.arduino-phase5-wiring-v2718 #wires .aim-wire-terminal-collar,
body.arduino-page.arduino-phase5-wiring-v2718 #wires .aim-wire-terminal-plug{pointer-events:none}
body.arduino-page.arduino-phase5-wiring-v2718 #wires .aim-wire-group.is-new .aim-wire-core{animation:aimWireConnect .42s cubic-bezier(.2,.8,.2,1)}
@keyframes aimWireConnect{0%{opacity:.15;stroke-dasharray:6 6}100%{opacity:1;stroke-dasharray:none}}

/* Large invisible-ish hit areas with small visual centres: easier wiring, cleaner hardware. */
body.arduino-page.arduino-phase5-wiring-v2718 #parts .pin{
  width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;
  border:0!important;outline:0!important;opacity:1!important;
  background:radial-gradient(circle at center,#193b45 0 3px,#e0b64d 3.2px 4.2px,transparent 4.4px)!important;
  box-shadow:none!important;cursor:crosshair!important;
}
body.arduino-page.arduino-phase5-wiring-v2718 #parts .part-breadboard>.pin{
  width:14px!important;height:14px!important;min-width:14px!important;min-height:14px!important;
  background:radial-gradient(circle at center,rgba(31,52,57,.74) 0 2px,rgba(172,148,75,.74) 2.2px 2.9px,transparent 3.1px)!important;
  opacity:.18!important;
}
body.arduino-page.arduino-phase5-wiring-v2718 #parts .part-breadboard>.pin:hover,
body.arduino-page.arduino-phase5-wiring-v2718 #parts .part-breadboard>.pin:focus-visible,
body.arduino-page.arduino-phase5-wiring-v2718 #parts .part-breadboard>.pin.phase5-group-peer,
body.arduino-page.arduino-phase5-wiring-v2718 #parts .part-breadboard>.pin.wire-snap-target,
body.arduino-page.arduino-phase5-wiring-v2718 #parts .part-breadboard>.pin.pending,
body.arduino-page.arduino-phase5-wiring-v2718 #parts .part-breadboard>.pin.first-project-target,
body.arduino-page.arduino-phase5-wiring-v2718 #parts .part-breadboard>.pin.is-connected{opacity:1!important}
body.arduino-page.arduino-phase5-wiring-v2718 #parts .pin:hover,
body.arduino-page.arduino-phase5-wiring-v2718 #parts .pin:focus-visible{background:radial-gradient(circle at center,#fff7bd 0 3px,#f3c64e 3.3px 5px,rgba(243,198,78,.15) 5.2px 8px,transparent 8.2px)!important}
body.arduino-page.arduino-phase5-wiring-v2718 #parts .pin.phase5-source,
body.arduino-page.arduino-phase5-wiring-v2718 #parts .pin.pending{background:radial-gradient(circle at center,#fff 0 2.8px,var(--aim-wire-current,#16a34a) 3px 5px,color-mix(in srgb,var(--aim-wire-current,#16a34a) 22%,transparent) 5.2px 8px,transparent 8.2px)!important}
body.arduino-page.arduino-phase5-wiring-v2718 #parts .pin.wire-snap-target{background:radial-gradient(circle at center,#fff 0 2.8px,#b8ef38 3px 5px,rgba(184,239,56,.28) 5.2px 8px,transparent 8.2px)!important;transform:translate(-50%,-50%) scale(1.18)!important}
body.arduino-page.arduino-phase5-wiring-v2718 #parts .pin.is-connected{background:radial-gradient(circle at center,#fff 0 2px,var(--pin-wire,#16a34a) 2.2px 4.4px,color-mix(in srgb,var(--pin-wire,#16a34a) 18%,transparent) 4.6px 7px,transparent 7.2px)!important}
body.arduino-page.arduino-phase5-wiring-v2718 #parts .part-breadboard>.pin.phase5-group-peer:not(.wire-snap-target):not(.pending){background:radial-gradient(circle at center,#fffce0 0 2px,#d5bd66 2.2px 3.6px,rgba(213,189,102,.12) 3.8px 6px,transparent 6.2px)!important}

/* A wiring hint only appears while a wire is actually being routed. */
body.arduino-page.arduino-phase5-wiring-v2718 #wirehint{display:none!important}
body.arduino-page.arduino-phase5-wiring-v2718 #wirehint.phase5-active,
body.arduino-page.arduino-phase5-wiring-v2718 #wirehint.is-live-routing{display:inline-flex!important;align-items:center;min-height:25px;padding:0 10px;border-radius:999px;background:rgba(10,53,65,.09);border:1px solid rgba(25,128,135,.18);color:#1f5963;font-size:9px;font-weight:750}
body.arduino-page.arduino-phase5-wiring-v2718 #bench.wire-preview-active{cursor:crosshair}
body.arduino-page.arduino-phase5-wiring-v2718 #wire-preview .wire-preview-shadow{opacity:.52!important}
body.arduino-page.arduino-phase5-wiring-v2718 #wire-preview .wire-preview-core{stroke-width:3.35!important;stroke-dasharray:8 5;animation:aimWirePreviewDash .7s linear infinite}
@keyframes aimWirePreviewDash{to{stroke-dashoffset:-13}}
body.arduino-page.arduino-phase5-wiring-v2718 #wire-preview .wire-preview-terminal{stroke:#fff;stroke-width:1.2;filter:drop-shadow(0 0 4px rgba(255,255,255,.25))}

/* Selected wire controls live in the existing movable wire palette. */
body.arduino-page.arduino-phase5-wiring-v2718 .aim-wire-selection{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;padding:8px 9px;border-top:1px solid rgba(126,178,188,.16);background:#082e39}
body.arduino-page.arduino-phase5-wiring-v2718 .aim-wire-selection[hidden]{display:none!important}
body.arduino-page.arduino-phase5-wiring-v2718 .aim-wire-selection small{display:block;font-size:6px;letter-spacing:.12em;font-weight:900;color:#6f9ca7}
body.arduino-page.arduino-phase5-wiring-v2718 .aim-wire-selection strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:2px;font-size:8px;color:#e9f6f7}
body.arduino-page.arduino-phase5-wiring-v2718 .aim-wire-selection button{min-height:27px!important;padding:0 9px!important;border-radius:8px!important;border:1px solid #6e3943!important;background:#4a252d!important;color:#ffe7e9!important;font-size:7px!important;font-weight:900!important}

/* Swatches are wiring controls, not generic buttons. */
body.arduino-page.arduino-phase5-wiring-v2718 .aim-wire-card .wire-palette button{position:relative}
body.arduino-page.arduino-phase5-wiring-v2718 .aim-wire-card .wire-palette button::after{content:attr(data-phase5-label);position:absolute;left:50%;bottom:-24px;transform:translateX(-50%) translateY(3px);padding:4px 6px;border-radius:6px;background:#071f28;color:#dff4f4;border:1px solid #244b55;font-size:6px;font-weight:800;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .12s ease,transform .12s ease;z-index:20}
body.arduino-page.arduino-phase5-wiring-v2718 .aim-wire-card .wire-palette button:hover::after,
body.arduino-page.arduino-phase5-wiring-v2718 .aim-wire-card .wire-palette button:focus-visible::after{opacity:1;transform:translateX(-50%) translateY(0)}

body.arduino-page.arduino-phase5-wiring-v2718.arduino-sim-running #wires .aim-wire-core{filter:none!important}
body.arduino-page.arduino-phase5-wiring-v2718.arduino-sim-running #parts .pin{cursor:default!important}

@media(max-width:920px){
  body.arduino-page.arduino-phase5-wiring-v2718 .aim-wire-selection{grid-template-columns:1fr}
  body.arduino-page.arduino-phase5-wiring-v2718 .aim-wire-selection button{width:100%}
}
@media(prefers-reduced-motion:reduce){
  body.arduino-page.arduino-phase5-wiring-v2718 #wire-preview .wire-preview-core,
  body.arduino-page.arduino-phase5-wiring-v2718 #wires .aim-wire-group.is-new .aim-wire-core{animation:none!important}
}


/* ===== SOURCE: labs/arduino/wiring/precision-connections-v2728.css ===== */
/* AIM STEM LAB v0.27.28 — precision connections + selectable wire layer */
body.arduino-page.arduino-precision-wiring-v2728 #wires{
  transition:z-index .12s ease;
}
body.arduino-page.arduino-precision-wiring-v2728.aim-wires-under #wires{z-index:2!important}
body.arduino-page.arduino-precision-wiring-v2728.aim-wires-under #parts{z-index:4!important}
body.arduino-page.arduino-precision-wiring-v2728.aim-wires-over #wires{z-index:7!important}
body.arduino-page.arduino-precision-wiring-v2728.aim-wires-over #parts{z-index:4!important}
body.arduino-page.arduino-precision-wiring-v2728.aim-wires-over #parts .part.is-dragging{z-index:10!important}

/* Wokwi-inspired engineering line language: thin, crisp, quiet and easy to trace. */
body.arduino-page.arduino-precision-wiring-v2728 #wires .aim-wire-core{
  stroke-width:2.35!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
  filter:none!important;
}
body.arduino-page.arduino-precision-wiring-v2728 #wires .aim-wire-shadow{
  stroke-width:3.8!important;
  opacity:.16!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
body.arduino-page.arduino-precision-wiring-v2728.aim-wires-over #wires .aim-wire-shadow{opacity:.08!important}
body.arduino-page.arduino-precision-wiring-v2728 #wires .aim-wire-group.is-selected .aim-wire-core{
  stroke-width:3.25!important;
  filter:drop-shadow(0 0 1.5px rgba(255,255,255,.24))!important;
}
body.arduino-page.arduino-precision-wiring-v2728 #wires .aim-wire-hit{stroke-width:13!important}

/* Endpoint treatment is deliberately tiny: the socket remains the hero, not a large marker. */
body.arduino-page.arduino-precision-wiring-v2728 #wires .aim-wire-terminal-collar{
  fill:#112b33!important;stroke:rgba(255,255,255,.22)!important;stroke-width:.45!important;opacity:.78;
}
body.arduino-page.arduino-precision-wiring-v2728 #wires .aim-wire-terminal-collar.is-breadboard{
  fill:#d8dcda!important;stroke:#7d8888!important;stroke-width:.45!important;
}
body.arduino-page.arduino-precision-wiring-v2728 #wires .aim-wire-terminal-plug{
  stroke:#fff!important;stroke-width:.48!important;filter:none!important;
}
body.arduino-page.arduino-precision-wiring-v2728.aim-wires-under #wires .aim-wire-terminal-collar.is-breadboard,
body.arduino-page.arduino-precision-wiring-v2728.aim-wires-under #wires .aim-wire-terminal-plug.is-breadboard{opacity:.42}

/* Mounted leads remain visibly seated in exact breadboard sockets. */
body.arduino-page.arduino-precision-wiring-v2728 #wires .aim-precision-seat-contacts{pointer-events:none}
body.arduino-page.arduino-precision-wiring-v2728 #wires .aim-precision-seat-lead{
  fill:none;stroke:#aeb6b8;stroke-width:1.55;stroke-linecap:round;vector-effect:non-scaling-stroke;filter:none;
}
body.arduino-page.arduino-precision-wiring-v2728 #wires .aim-precision-seat-contact{
  fill:#747e81;stroke:#f8faf9;stroke-width:.42;vector-effect:non-scaling-stroke;
}

/* Manual route preview: quiet dashed path with explicit bend nodes. */
body.arduino-page.arduino-precision-wiring-v2728 #aimPrecisionPreview{pointer-events:none}
body.arduino-page.arduino-precision-wiring-v2728 #aimPrecisionPreview .core{
  stroke-dasharray:6 5;animation:aimPrecisionWireFlow2728 .72s linear infinite;vector-effect:non-scaling-stroke;stroke-width:2.25!important;
}
body.arduino-page.arduino-precision-wiring-v2728 #aimPrecisionPreview .shadow{vector-effect:non-scaling-stroke;opacity:.14}
body.arduino-page.arduino-precision-wiring-v2728 #aimPrecisionPreview .aim-precision-bend{
  fill:#fff;stroke:var(--aim-wire-current,#14b8a6);stroke-width:1.25;vector-effect:non-scaling-stroke;
}
@keyframes aimPrecisionWireFlow2728{to{stroke-dashoffset:-11}}

body.arduino-page.arduino-precision-wiring-v2728 #wirehint.phase5-active{
  max-width:min(620px,calc(100vw - 380px));overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
body.arduino-page.arduino-precision-wiring-v2728 .aim-wire-selection{grid-template-columns:minmax(0,1fr) auto auto!important}
body.arduino-page.arduino-precision-wiring-v2728 #aimWireAutoRoute{
  border-color:#315a64!important;background:#103b45!important;color:#def8f7!important;
}
body.arduino-page.arduino-precision-wiring-v2728 #aimWireAutoRoute:hover{background:#15515d!important}

/* New wire-layer control in the movable wire card. */
body.arduino-page.arduino-precision-wiring-v2728 .aim-wire-layer-control{
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;
  margin-top:9px;padding-top:9px;border-top:1px solid rgba(122,167,176,.18);
}
body.arduino-page.arduino-precision-wiring-v2728 .aim-wire-layer-copy small{
  display:block;color:#6f939b;font-size:7px;font-weight:900;letter-spacing:.11em;
}
body.arduino-page.arduino-precision-wiring-v2728 .aim-wire-layer-copy strong{
  display:block;margin-top:2px;color:#e4f0f2;font-size:9px;font-weight:850;
}
body.arduino-page.arduino-precision-wiring-v2728 .aim-wire-layer-tabs{
  display:flex;padding:2px;border:1px solid #31545d;border-radius:8px;background:#082b35;
}
body.arduino-page.arduino-precision-wiring-v2728 .aim-wire-layer-tabs button{
  min-width:46px;height:27px;padding:0 8px;border:0;border-radius:6px;background:transparent;color:#89aab0;font-size:8px;font-weight:900;cursor:pointer;
}
body.arduino-page.arduino-precision-wiring-v2728 .aim-wire-layer-tabs button.is-active{
  background:#e9f8f5;color:#0a5a5a;box-shadow:0 1px 5px rgba(0,0,0,.16);
}

/* Pins remain generous targets while looking like actual sockets. */
body.arduino-page.arduino-precision-wiring-v2728 #parts .pin{touch-action:none}
body.arduino-page.arduino-precision-wiring-v2728 #parts .pin.wire-snap-target{box-shadow:0 0 0 5px rgba(184,239,56,.12)!important}
body.arduino-page.arduino-precision-wiring-v2728 #parts .part-breadboard>.pin.wire-snap-target{box-shadow:0 0 0 4px rgba(184,239,56,.14)!important}
body.arduino-page.arduino-precision-wiring-v2728 #parts .pin.is-connected::after{
  content:"";position:absolute;inset:5.4px;border-radius:50%;background:var(--pin-wire,#16a34a);opacity:.76;pointer-events:none;
}

/* Component UI polish: hardware stays visually dominant, controls appear only when useful. */
body.arduino-page.arduino-precision-wiring-v2728 #parts .part{
  transition:filter .12s ease,opacity .12s ease!important;
}
body.arduino-page.arduino-precision-wiring-v2728 #parts .part:not(.part-breadboard):not(.is-dragging):hover{
  filter:drop-shadow(0 7px 8px rgba(0,0,0,.2)) brightness(1.025)!important;
}
body.arduino-page.arduino-precision-wiring-v2728 #parts .part.selected{
  outline:0!important;filter:drop-shadow(0 0 0.5px rgba(171,238,52,.85)) drop-shadow(0 6px 10px rgba(0,0,0,.2))!important;
}
body.arduino-page.arduino-precision-wiring-v2728 #parts .part>.handle{
  border-radius:6px!important;background:rgba(7,30,38,.9)!important;border-color:rgba(118,163,174,.3)!important;box-shadow:0 5px 12px rgba(0,0,0,.18)!important;
}
body.arduino-page.arduino-precision-wiring-v2728 #parts .part.breadboard-mounted>.handle,
body.arduino-page.arduino-precision-wiring-v2728 #parts .part.is-seated>.handle{transform:scale(.92);transform-origin:left bottom}

@media(max-width:920px){
  body.arduino-page.arduino-precision-wiring-v2728 .aim-wire-selection{grid-template-columns:1fr auto!important}
  body.arduino-page.arduino-precision-wiring-v2728 #aimWireAutoRoute{grid-column:1/-1;width:100%}
  body.arduino-page.arduino-precision-wiring-v2728 #wirehint.phase5-active{max-width:72vw}
  body.arduino-page.arduino-precision-wiring-v2728 .aim-wire-layer-control{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
  body.arduino-page.arduino-precision-wiring-v2728 #aimPrecisionPreview .core{animation:none!important}
}


/* ===== SOURCE: labs/arduino/breadboard/multi-board-attachments-v2731.css ===== */
/* AIM STEM LAB v0.27.31 — compact breadboard + Move Circuit polish */
body.arduino-page.arduino-multiboard-v2731 #parts .part.part-breadboard_half,
body.arduino-page.arduino-multiboard-v2731 #parts .part.part-breadboard_mini{isolation:isolate}
body.arduino-page.arduino-multiboard-v2731 #parts .part.aim-multiboard-snap-ready:not(.breadboard-mounted){filter:drop-shadow(0 0 8px rgba(83,229,190,.55)) drop-shadow(0 8px 16px rgba(0,0,0,.2))!important}
body.arduino-page.arduino-multiboard-v2731 #parts .part.breadboard-mounted{z-index:33!important}
body.arduino-page.arduino-multiboard-v2731.aim-breadboard-moving #parts .part.aim-board-passenger{pointer-events:none!important}

/* The labelled circuit-move control is a real peer of Undo/Redo, not a 42px button with overflowing copy. */
body.arduino-page.arduino-phase3-workbench-v2716 .canvas-tools--top-left.aim-edit-tools .aim-move-circuit{
  width:112px!important;min-width:112px!important;height:42px!important;min-height:42px!important;
  padding:0 11px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  gap:7px!important;white-space:nowrap!important;line-height:1!important;flex:0 0 112px!important;
}
body.arduino-page.arduino-phase3-workbench-v2716 .canvas-tools--top-left.aim-edit-tools .aim-move-circuit span{font-size:14px!important;line-height:1!important;display:grid!important;place-items:center!important}
body.arduino-page.arduino-phase3-workbench-v2716 .canvas-tools--top-left.aim-edit-tools .aim-move-circuit b{font-size:9px!important;line-height:1!important;font-weight:900!important;letter-spacing:.01em!important;margin:0!important}
@media(max-width:760px){
  body.arduino-page.arduino-phase3-workbench-v2716 .canvas-tools--top-left.aim-edit-tools .aim-move-circuit{width:42px!important;min-width:42px!important;flex-basis:42px!important;padding:0!important}
  body.arduino-page.arduino-phase3-workbench-v2716 .canvas-tools--top-left.aim-edit-tools .aim-move-circuit b{display:none!important}
}


/* ===== SOURCE: labs/arduino/stability/prephase6-cleanup.css ===== */
/* AIM Arduino v0.27.19 — pre-Phase-6 stabilisation.
   Scope: repair sidebar collapse/reopen, code editor distortion, duplicated part labels,
   workbench fit stability and remove the obsolete global footer. */
body.arduino-page.arduino-stability-v2719{
  --stability-sidebar-rail:72px;
}

/* ----- 1. Projects / Parts: true collapsed rail, always recoverable ----- */
body.arduino-page.arduino-stability-v2719.sidebar-collapsed{
  --shell-sidebar-w:var(--stability-sidebar-rail)!important;
}
body.arduino-page.arduino-stability-v2719.sidebar-collapsed .studio-body{
  grid-template-columns:var(--stability-sidebar-rail) minmax(0,1fr)!important;
}
body.arduino-page.arduino-stability-v2719.sidebar-collapsed #studioSidebar{
  width:var(--stability-sidebar-rail)!important;
  min-width:var(--stability-sidebar-rail)!important;
  max-width:var(--stability-sidebar-rail)!important;
  overflow:hidden!important;
}
body.arduino-page.arduino-stability-v2719.sidebar-collapsed #studioSidebar .sidebar-head{
  min-height:auto!important;
  padding:8px 7px!important;
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:7px!important;
}
body.arduino-page.arduino-stability-v2719.sidebar-collapsed #studioSidebar .sidebar-tabs{
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:6px!important;
  padding:3px!important;
}
body.arduino-page.arduino-stability-v2719.sidebar-collapsed #studioSidebar .sidebar-tabs button{
  width:100%!important;
  height:42px!important;
  padding:0!important;
  display:grid!important;
  place-items:center!important;
}
body.arduino-page.arduino-stability-v2719.sidebar-collapsed #studioSidebar .sidebar-tabs button>span:not(.phase2-tab-icon){display:none!important}
body.arduino-page.arduino-stability-v2719.sidebar-collapsed #studioSidebar .phase2-tab-icon{display:block!important;font-size:16px!important}
body.arduino-page.arduino-stability-v2719.sidebar-collapsed #studioSidebar #sidebarToggle{
  display:grid!important;
  place-items:center!important;
  width:100%!important;
  height:38px!important;
  margin:0!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}
body.arduino-page.arduino-stability-v2719.sidebar-collapsed #studioSidebar .sidebar-pane,
body.arduino-page.arduino-stability-v2719.sidebar-collapsed #studioSidebar .sidebar-foot{
  display:none!important;
}
body.arduino-page.arduino-stability-v2719 #studioSidebar #sidebarToggle{
  transition:background .15s ease,color .15s ease,transform .15s ease!important;
}
body.arduino-page.arduino-stability-v2719.sidebar-collapsed #studioSidebar #sidebarToggle{transform:none!important}

/* Remove old sidebar footer permanently; the workbench does not need duplicate branding. */
body.arduino-page.arduino-stability-v2719 #studioSidebar .sidebar-foot{display:none!important}
body.arduino-page.arduino-stability-v2719 #studioSidebar .sidebar-pane{padding-bottom:16px!important}

/* ----- 2. Code: one real editor, no static overlay or duplicate serial/hint blocks ----- */
body.arduino-page.arduino-stability-v2719 .approved-code-highlight,
body.arduino-page.arduino-stability-v2719 .approved-code-hint,
body.arduino-page.arduino-stability-v2719 .approved-serial-panel{
  display:none!important;
}
body.arduino-page.arduino-stability-v2719 .codepanel{
  grid-template-rows:50px auto minmax(320px,1fr) 34px!important;
  min-height:0!important;
  height:100%!important;
  overflow:hidden!important;
}
body.arduino-page.arduino-stability-v2719 .editorwrap{
  position:relative!important;
  min-height:320px!important;
  overflow:hidden!important;
  background:#0b1a2d!important;
  border-top:1px solid #172b40!important;
  border-bottom:1px solid #172b40!important;
}
body.arduino-page.arduino-stability-v2719 #code{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  padding:18px 22px!important;
  background:#0b1a2d!important;
  color:#e7eef7!important;
  -webkit-text-fill-color:#e7eef7!important;
  caret-color:#7ce2da!important;
  opacity:1!important;
  z-index:2!important;
  overflow:auto!important;
  resize:none!important;
  font:500 13px/1.72 ui-monospace,SFMono-Regular,Consolas,Monaco,monospace!important;
  tab-size:2!important;
  scrollbar-gutter:stable!important;
  outline:0!important;
  box-shadow:none!important;
}
body.arduino-page.arduino-stability-v2719 #code::selection{background:rgba(43,182,176,.28)!important;color:#fff!important}
body.arduino-page.arduino-stability-v2719 #lines{display:none!important}
body.arduino-page.arduino-stability-v2719 .code-pane{overflow:hidden!important}
body.arduino-page.arduino-stability-v2719 .codefoot{display:flex!important}

/* ----- 3. One component identity only ----- */
body.arduino-page.arduino-stability-v2719 #parts .part::before,
body.arduino-page.arduino-stability-v2719 #parts .part::after{content:none!important;display:none!important}
body.arduino-page.arduino-stability-v2719 #parts .part>.handle>span:first-child{display:none!important}
body.arduino-page.arduino-stability-v2719 #parts .part>.handle{
  width:auto!important;
  min-width:0!important;
  padding:3px!important;
  gap:3px!important;
}
body.arduino-page.arduino-stability-v2719 #parts .part>.handle:has(>button){display:flex}

/* ----- 4. Engineering Workbench: stable fit / professional canvas behaviour ----- */
body.arduino-page.arduino-stability-v2719 .benchpanel,
body.arduino-page.arduino-stability-v2719 .benchviewport,
body.arduino-page.arduino-stability-v2719 #benchstage{
  min-width:0!important;
  min-height:0!important;
}
body.arduino-page.arduino-stability-v2719 .benchviewport{
  overscroll-behavior:contain!important;
  scrollbar-gutter:stable both-edges!important;
  isolation:isolate!important;
}
body.arduino-page.arduino-stability-v2719 #benchstage{
  position:relative!important;
  min-width:100%!important;
  min-height:100%!important;
}
body.arduino-page.arduino-stability-v2719 #bench{
  transform-origin:0 0!important;
  will-change:transform,left,top!important;
}
body.arduino-page.arduino-stability-v2719 .benchviewport.is-panning{cursor:grabbing!important}
body.arduino-page.arduino-stability-v2719 .benchviewport:not(.is-panning){cursor:default!important}
body.arduino-page.arduino-stability-v2719 .canvas-label,
body.arduino-page.arduino-stability-v2719 .bench-project-name,
body.arduino-page.arduino-stability-v2719 .canvas-tools,
body.arduino-page.arduino-stability-v2719 .aim-wire-card,
body.arduino-page.arduino-stability-v2719 .studio-status{
  backface-visibility:hidden;
  transform:translateZ(0);
}

/* ----- 5. Remove obsolete global footer completely ----- */
body.arduino-page.arduino-stability-v2719 .arduino-approved-footer{display:none!important}
body.arduino-page.arduino-stability-v2719{padding-bottom:0!important}

@media(max-width:1099px){
  body.arduino-page.arduino-stability-v2719.sidebar-collapsed{--shell-sidebar-w:300px!important}
  body.arduino-page.arduino-stability-v2719.sidebar-collapsed #studioSidebar .sidebar-pane{display:block!important}
}
body.arduino-page.arduino-stability-v2719 .studio-body{padding-bottom:0!important}


/* ===== SOURCE: labs/arduino/stability/prephase6-ide-workbench.css ===== */
/* AIM Arduino v0.27.20 — IDE + Workbench stabilisation before Phase 6 */
body.arduino-page.arduino-prephase6-v2720{
  --ide-bg:#0d1724;
  --ide-bg-2:#101d2d;
  --ide-bg-3:#132338;
  --ide-line:#24384d;
  --ide-text:#e5edf5;
  --ide-muted:#8da1b4;
  --ide-accent:#16a3a3;
  --ide-yellow:#f2bf3f;
}

/* ----- clean global navigation ----- */
body.arduino-page.arduino-prephase6-v2720 .arduino-nav-extras{display:none!important}
body.arduino-page.arduino-prephase6-v2720 .aim-nav nav{flex:1 1 auto!important}
body.arduino-page.arduino-prephase6-v2720 .aim-version{margin-left:auto!important}

/* ----- restore a real desktop-resizable workbench / IDE split ----- */
@media(min-width:1100px){
  body.arduino-page.arduino-prephase6-v2720 .workzone{
    display:grid!important;
    grid-template-columns:minmax(480px,1fr) 8px minmax(360px,var(--inspector-w,500px))!important;
    grid-template-rows:minmax(0,1fr)!important;
    height:100%!important;
    min-height:0!important;
    overflow:hidden!important;
  }
  body.arduino-page.arduino-prephase6-v2720 .workspace-splitter{
    display:block!important;width:8px!important;min-width:8px!important;height:100%!important;
    background:#d7e3e7!important;cursor:col-resize!important;z-index:70!important;position:relative!important;
  }
  body.arduino-page.arduino-prephase6-v2720 .workspace-splitter::before{display:none!important}
  body.arduino-page.arduino-prephase6-v2720 .workspace-splitter>span{
    position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:4px;height:54px;border-radius:999px;background:#8aa3ad;opacity:.55;
  }
  body.arduino-page.arduino-prephase6-v2720 .workspace-splitter:hover>span,
  body.arduino-page.arduino-prephase6-v2720 .workspace-splitter.is-resizing>span{background:#0e9c9f;opacity:1}
  body.arduino-page.arduino-prephase6-v2720 .inspector{
    width:auto!important;min-width:0!important;max-width:none!important;height:100%!important;grid-column:3!important;
  }
  body.arduino-page.arduino-prephase6-v2720.arduino-ide-maximised .workzone{grid-template-columns:0 0 minmax(0,1fr)!important}
  body.arduino-page.arduino-prephase6-v2720.arduino-ide-maximised .benchpanel,
  body.arduino-page.arduino-prephase6-v2720.arduino-ide-maximised .workspace-splitter{visibility:hidden!important;pointer-events:none!important}
  body.arduino-page.arduino-prephase6-v2720.arduino-ide-maximised .inspector{grid-column:3!important}
}

/* ----- Arduino IDE-like inspector ----- */
body.arduino-page.arduino-prephase6-v2720 .inspector{background:var(--ide-bg)!important;border-left:1px solid #d6e2e6!important;box-shadow:none!important}
body.arduino-page.arduino-prephase6-v2720 .inspector-tabs{height:56px!important;flex:0 0 56px!important;background:#fff!important}
body.arduino-page.arduino-prephase6-v2720 .inspector-body{height:calc(100% - 56px)!important;background:var(--ide-bg)!important}
body.arduino-page.arduino-prephase6-v2720 .code-pane{background:var(--ide-bg)!important;overflow:hidden!important}
body.arduino-page.arduino-prephase6-v2720 .codepanel{
  height:100%!important;min-height:0!important;display:grid!important;grid-template-rows:52px auto minmax(0,1fr) 30px!important;
  background:var(--ide-bg)!important;border:0!important;border-radius:0!important;overflow:hidden!important;
}
body.arduino-page.arduino-prephase6-v2720 .filetab{
  height:52px!important;min-height:52px!important;padding:0 10px!important;display:flex!important;align-items:center!important;gap:7px!important;
  background:var(--ide-bg-2)!important;border-bottom:1px solid var(--ide-line)!important;color:var(--ide-text)!important;
}
body.arduino-page.arduino-prephase6-v2720 .ide-file-identity{display:flex;align-items:center;gap:7px;min-width:110px;margin-right:auto}
body.arduino-page.arduino-prephase6-v2720 .ide-file-identity .dot{width:9px!important;height:9px!important;background:#72d95a!important;border-radius:50%;box-shadow:0 0 0 4px rgba(114,217,90,.08)}
body.arduino-page.arduino-prephase6-v2720 .ide-file-identity strong{font-size:11px!important;color:#f2f6fb!important;white-space:nowrap}
body.arduino-page.arduino-prephase6-v2720 .ide-board-selector{
  display:grid!important;grid-template-columns:auto auto;grid-template-rows:auto auto;column-gap:6px;align-items:center;min-width:112px!important;height:36px!important;
  padding:4px 8px!important;background:#15263a!important;border:1px solid #2a4059!important;border-radius:8px!important;color:#e5edf5!important;
}
body.arduino-page.arduino-prephase6-v2720 .ide-board-selector span{grid-row:1/3;font-size:15px;color:#55c8c6}
body.arduino-page.arduino-prephase6-v2720 .ide-board-selector b{font-size:8px;line-height:1.1;text-align:left}
body.arduino-page.arduino-prephase6-v2720 .ide-board-selector small{font-size:6.5px;color:#7e94aa;text-align:left}
body.arduino-page.arduino-prephase6-v2720 .ide-width-tools{display:flex;align-items:center;gap:3px;padding:2px;background:#0b1522;border:1px solid #263a50;border-radius:8px}
body.arduino-page.arduino-prephase6-v2720 .ide-width-tools button{
  margin:0!important;width:27px!important;min-width:27px!important;height:27px!important;min-height:27px!important;padding:0!important;border:0!important;border-radius:6px!important;background:transparent!important;color:#9bb0c5!important;font-size:11px!important;
}
body.arduino-page.arduino-prephase6-v2720 .ide-width-tools button:hover{background:#233850!important;color:#fff!important}
body.arduino-page.arduino-prephase6-v2720 .filetab #downloadino,
body.arduino-page.arduino-prephase6-v2720 .filetab #restore{height:31px!important;min-height:31px!important;margin:0!important;padding:0 8px!important;background:#15263a!important;border:1px solid #2a4059!important;color:#a7bad0!important;border-radius:7px!important;font-size:8px!important}
body.arduino-page.arduino-prephase6-v2720 .experiment{background:#0f1b2a!important;border-bottom:1px solid var(--ide-line)!important;color:#aec0d0!important;max-height:104px;overflow:auto}
body.arduino-page.arduino-prephase6-v2720 .editorwrap{
  position:relative!important;display:block!important;min-height:0!important;height:100%!important;padding:0!important;overflow:hidden!important;background:#0b1420!important;border:0!important;
}
body.arduino-page.arduino-prephase6-v2720 #lines{display:none!important}
body.arduino-page.arduino-prephase6-v2720 textarea#code{
  position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;margin:0!important;padding:20px 24px 44px!important;
  resize:none!important;overflow:auto!important;white-space:pre!important;tab-size:2!important;background:#0b1420!important;color:#edf3fa!important;-webkit-text-fill-color:#edf3fa!important;
  border:0!important;outline:0!important;box-shadow:none!important;font:500 13.5px/1.72 "Cascadia Code","SFMono-Regular",Consolas,Monaco,monospace!important;caret-color:#f2bf3f!important;scrollbar-gutter:stable!important;
}
body.arduino-page.arduino-prephase6-v2720 textarea#code:focus{outline:0!important;box-shadow:inset 0 0 0 1px rgba(40,65,90,.45)!important}
body.arduino-page.arduino-prephase6-v2720 .codefoot{min-height:30px!important;height:30px!important;padding:0 10px!important;display:flex!important;align-items:center!important;background:#111e2e!important;border-top:1px solid var(--ide-line)!important;color:#7f95aa!important;font-size:7.5px!important}
body.arduino-page.arduino-prephase6-v2720 .codefoot button{margin-left:auto;background:transparent!important;border:0!important;color:#6ec8c5!important;font-size:7.5px!important}

/* ----- Serial Monitor: dedicated IDE console ----- */
body.arduino-page.arduino-prephase6-v2720 .ide-serial-pane{background:#0a1320!important;padding:0!important;overflow:hidden!important}
body.arduino-page.arduino-prephase6-v2720 .ide-serial-shell{height:100%;display:grid;grid-template-rows:50px 42px minmax(0,1fr) 48px;background:#0a1320;color:#dfe9f3}
body.arduino-page.arduino-prephase6-v2720 .ide-serial-title{display:flex;align-items:center;justify-content:space-between;padding:0 13px;border-bottom:1px solid #24364b;background:#101d2d}
body.arduino-page.arduino-prephase6-v2720 .ide-serial-title>div{display:grid;grid-template-columns:auto auto;grid-template-rows:auto auto;column-gap:8px;align-items:center}
body.arduino-page.arduino-prephase6-v2720 .ide-port-dot{grid-row:1/3;width:9px;height:9px;border-radius:50%;background:#69d557;box-shadow:0 0 0 4px rgba(105,213,87,.08)}
body.arduino-page.arduino-prephase6-v2720 .ide-serial-title strong{font-size:11px}.ide-serial-title small{font-size:7px;color:#8297aa}
body.arduino-page.arduino-prephase6-v2720 .ide-serial-state{font-size:7px;color:#75d7d2;border:1px solid #285b61;background:#103239;padding:5px 8px;border-radius:999px}
body.arduino-page.arduino-prephase6-v2720 .ide-serial-toolbar{display:flex;align-items:center;gap:9px;padding:5px 10px;background:#0e1a29;border-bottom:1px solid #213247;font-size:8px;color:#8fa4b7;overflow-x:auto}
body.arduino-page.arduino-prephase6-v2720 .ide-serial-toolbar label{display:flex;align-items:center;gap:5px;white-space:nowrap}
body.arduino-page.arduino-prephase6-v2720 .ide-serial-toolbar select{height:29px;background:#162639;color:#d6e2ee;border:1px solid #2a4058;border-radius:6px;padding:0 7px;font-size:8px}
body.arduino-page.arduino-prephase6-v2720 .ide-check input{accent-color:#13a5a2}
body.arduino-page.arduino-prephase6-v2720 #ideClearSerial{margin-left:auto;height:29px;padding:0 9px;border-radius:6px;border:1px solid #2a4058;background:#162639;color:#aabed0;font-size:8px}
body.arduino-page.arduino-prephase6-v2720 .ide-serial-console{min-height:0;padding:10px;background:#07101a;overflow:hidden}
body.arduino-page.arduino-prephase6-v2720 .ide-serial-console #monitor{position:static!important;width:100%!important;height:100%!important;min-height:0!important;margin:0!important;padding:12px!important;overflow:auto!important;white-space:pre-wrap!important;background:#091522!important;border:1px solid #1f3348!important;border-radius:7px!important;color:#a7d7e4!important;font:500 11.5px/1.6 "Cascadia Mono",Consolas,monospace!important;scrollbar-gutter:stable!important}
body.arduino-page.arduino-prephase6-v2720 .ide-serial-send{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:7px;padding:7px 10px;border-top:1px solid #23364a;background:#101d2d}
body.arduino-page.arduino-prephase6-v2720 .ide-serial-send input,.ide-serial-send select{height:34px;border:1px solid #2b4057;border-radius:6px;background:#0b1725;color:#e3ebf4;padding:0 9px;font-size:9px;outline:0}
body.arduino-page.arduino-prephase6-v2720 .ide-serial-send input:focus{border-color:#1e9998;box-shadow:0 0 0 2px rgba(30,153,152,.12)}
body.arduino-page.arduino-prephase6-v2720 .ide-serial-send button{height:34px;padding:0 13px;border:0;border-radius:6px;background:#07989a;color:white;font-size:9px;font-weight:850}

/* ----- fixed workbench HUD above the independently pannable canvas ----- */
body.arduino-page.arduino-prephase6-v2720 .benchpanel{position:relative!important;overflow:hidden!important}
body.arduino-page.arduino-prephase6-v2720 .benchviewport{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;overflow:auto!important}
body.arduino-page.arduino-prephase6-v2720 .aim-workbench-hud{position:absolute;inset:0;z-index:80;pointer-events:none;overflow:hidden}
body.arduino-page.arduino-prephase6-v2720 .aim-workbench-hud>*{pointer-events:auto}
body.arduino-page.arduino-prephase6-v2720 .aim-workbench-hud .canvas-label{position:absolute!important;left:16px!important;top:14px!important;right:auto!important;bottom:auto!important;margin:0!important}
body.arduino-page.arduino-prephase6-v2720 .aim-workbench-hud .bench-project-name{position:absolute!important;left:220px!important;top:14px!important;right:auto!important;bottom:auto!important;margin:0!important}
body.arduino-page.arduino-prephase6-v2720 .aim-workbench-hud .canvas-tools--top-left{position:absolute!important;left:16px!important;top:62px!important;right:auto!important;bottom:auto!important}
body.arduino-page.arduino-prephase6-v2720 .aim-workbench-hud .canvas-tools--top-right{position:absolute!important;right:16px!important;top:14px!important;left:auto!important;bottom:auto!important}
body.arduino-page.arduino-prephase6-v2720 .aim-workbench-hud .canvas-tools--zoom{position:absolute!important;right:16px!important;bottom:14px!important;left:auto!important;top:auto!important}
body.arduino-page.arduino-prephase6-v2720 .aim-workbench-hud .studio-status{position:absolute!important;left:16px!important;bottom:14px!important;right:176px!important;top:auto!important;margin:0!important;width:auto!important;max-width:none!important}
body.arduino-page.arduino-prephase6-v2720 .aim-workbench-hud #aimWireCard{position:absolute!important;z-index:5!important;max-width:230px}
body.arduino-page.arduino-prephase6-v2720 .aim-workbench-hud .canvas-tools,
body.arduino-page.arduino-prephase6-v2720 .aim-workbench-hud .studio-status,
body.arduino-page.arduino-prephase6-v2720 .aim-workbench-hud #aimWireCard{backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
body.arduino-page.arduino-prephase6-v2720 .status-metrics #check{min-width:62px!important;height:28px!important;border-radius:7px!important;background:#f7fbfb!important;color:#0b5660!important;border:1px solid #c8dde0!important;font-weight:900!important}
body.arduino-page.arduino-prephase6-v2720 .canvas-tools--zoom #fit{font-size:0!important;width:34px!important;min-width:34px!important}
body.arduino-page.arduino-prephase6-v2720 .canvas-tools--zoom #fit::after{content:'⛶';font-size:13px!important}

@media(max-width:1350px) and (min-width:1100px){
  body.arduino-page.arduino-prephase6-v2720 .ide-board-selector{display:none!important}
  body.arduino-page.arduino-prephase6-v2720 .filetab #downloadino{display:none!important}
  body.arduino-page.arduino-prephase6-v2720 .aim-workbench-hud .bench-project-name{display:none!important}
  body.arduino-page.arduino-prephase6-v2720 .aim-workbench-hud .studio-status{right:158px!important}
}
@media(max-width:1099px){
  body.arduino-page.arduino-prephase6-v2720 .workzone{display:grid!important;grid-template-columns:1fr!important;grid-template-rows:minmax(500px,60vh) auto!important;height:auto!important}
  body.arduino-page.arduino-prephase6-v2720 .workspace-splitter{display:none!important}
  body.arduino-page.arduino-prephase6-v2720 .inspector{width:100%!important;min-width:0!important;height:620px!important}
  body.arduino-page.arduino-prephase6-v2720 .ide-width-tools{display:none!important}
  body.arduino-page.arduino-prephase6-v2720 .benchpanel{min-height:500px!important;height:60vh!important}
}
@media(max-width:700px){
  body.arduino-page.arduino-prephase6-v2720 .aim-workbench-hud .canvas-label{left:9px!important;top:9px!important}
  body.arduino-page.arduino-prephase6-v2720 .aim-workbench-hud .bench-project-name{display:none!important}
  body.arduino-page.arduino-prephase6-v2720 .aim-workbench-hud .canvas-tools--top-left{left:9px!important;top:52px!important}
  body.arduino-page.arduino-prephase6-v2720 .aim-workbench-hud .canvas-tools--top-right{right:9px!important;top:9px!important}
  body.arduino-page.arduino-prephase6-v2720 .aim-workbench-hud .canvas-tools--zoom{right:9px!important;bottom:9px!important}
  body.arduino-page.arduino-prephase6-v2720 .aim-workbench-hud .studio-status{left:9px!important;right:138px!important;bottom:9px!important}
  body.arduino-page.arduino-prephase6-v2720 .filetab{gap:4px!important;padding:0 6px!important}
  body.arduino-page.arduino-prephase6-v2720 .ide-board-selector,body.arduino-page.arduino-prephase6-v2720 .filetab #downloadino{display:none!important}
  body.arduino-page.arduino-prephase6-v2720 .ide-serial-toolbar{gap:6px}
  body.arduino-page.arduino-prephase6-v2720 .ide-check{display:none!important}
  body.arduino-page.arduino-prephase6-v2720 .ide-serial-send{grid-template-columns:1fr auto}.ide-serial-send select{display:none!important}
}


/* ===== SOURCE: labs/arduino/ide/prephase6-code-ide.css ===== */
/* AIM Arduino v0.27.21 — professional code editor refinement before Phase 6 */
body.arduino-page.arduino-ide-v2721{
  --arduino-ide-bg:#0d1724;
  --arduino-ide-panel:#111d2c;
  --arduino-ide-panel-2:#152437;
  --arduino-ide-line:#26394d;
  --arduino-ide-gutter:#09131f;
  --arduino-ide-text:#eaf0f6;
  --arduino-ide-muted:#7f94a8;
  --arduino-ide-teal:#16a3a3;
  --arduino-ide-yellow:#f5bd41;
  --arduino-code-font:13.5px;
  --arduino-code-line:1.65;
}

/* Code tab is only an IDE: remove project-specific dashboard/experiment blocks. */
body.arduino-page.arduino-ide-v2721 [data-studio-pane="code"] #experiment{
  display:none!important;
  height:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  overflow:hidden!important;
}
body.arduino-page.arduino-ide-v2721 [data-studio-pane="code"] .codepanel{
  display:grid!important;
  grid-template-rows:52px minmax(0,1fr) 34px!important;
  min-height:0!important;
  height:100%!important;
  background:var(--arduino-ide-bg)!important;
}

/* File / board toolbar */
body.arduino-page.arduino-ide-v2721 [data-studio-pane="code"] .filetab{
  height:52px!important;
  min-height:52px!important;
  padding:0 10px!important;
  gap:7px!important;
  background:#101c2b!important;
  border-bottom:1px solid var(--arduino-ide-line)!important;
}
body.arduino-page.arduino-ide-v2721 .inspector{container-type:inline-size}
body.arduino-page.arduino-ide-v2721 .ide-file-identity{min-width:128px!important;margin-right:0!important}
body.arduino-page.arduino-ide-v2721 .ide-file-identity strong{font-size:11px!important;letter-spacing:.01em}
body.arduino-page.arduino-ide-v2721 .ide-file-identity .dot{
  width:8px!important;height:8px!important;background:#71d75a!important;
  box-shadow:0 0 0 3px rgba(113,215,90,.08)!important;
}
body.arduino-page.arduino-ide-v2721 .ide-file-identity.is-dirty .dot{background:#f0b83f!important;box-shadow:0 0 0 3px rgba(240,184,63,.08)!important}
body.arduino-page.arduino-ide-v2721 .ide-editor-actions{display:flex;align-items:center;gap:4px;margin-left:auto}
body.arduino-page.arduino-ide-v2721 .ide-editor-actions button{
  min-width:auto!important;height:29px!important;min-height:29px!important;padding:0 8px!important;
  border:1px solid #2a4058!important;border-radius:6px!important;background:#15263a!important;
  color:#a9bdd0!important;font-size:7.5px!important;font-weight:800!important;
}
body.arduino-page.arduino-ide-v2721 .ide-editor-actions button:hover{background:#1b3148!important;color:#fff!important;border-color:#3b5873!important}
body.arduino-page.arduino-ide-v2721 .ide-board-selector{min-width:118px!important}

/* Editor shell */
body.arduino-page.arduino-ide-v2721 [data-studio-pane="code"] .editorwrap{
  position:relative!important;
  display:grid!important;
  grid-template-columns:52px minmax(0,1fr)!important;
  min-height:0!important;
  height:100%!important;
  padding:0!important;
  overflow:hidden!important;
  background:var(--arduino-ide-bg)!important;
  border:0!important;
  isolation:isolate;
}
body.arduino-page.arduino-ide-v2721 [data-studio-pane="code"] .editorwrap::before{
  content:'';
  position:absolute;
  z-index:0;
  left:52px;
  right:0;
  top:var(--active-line-y,-100px);
  height:var(--active-line-h,22px);
  background:rgba(255,255,255,.025);
  border-top:1px solid rgba(255,255,255,.018);
  border-bottom:1px solid rgba(255,255,255,.018);
  pointer-events:none;
}
body.arduino-page.arduino-ide-v2721 [data-studio-pane="code"] #lines{
  display:block!important;
  position:relative!important;
  z-index:2!important;
  width:52px!important;
  min-width:52px!important;
  height:100%!important;
  margin:0!important;
  padding:16px 9px 28px 0!important;
  overflow:hidden!important;
  text-align:right!important;
  background:var(--arduino-ide-gutter)!important;
  border-right:1px solid #1f3043!important;
  color:#52697f!important;
  font:500 var(--arduino-code-font)/var(--arduino-code-line) "Cascadia Mono",Consolas,"Liberation Mono",monospace!important;
  user-select:none!important;
  pointer-events:none!important;
}
body.arduino-page.arduino-ide-v2721 #lines .ide-line-number{display:block;padding-right:2px}
body.arduino-page.arduino-ide-v2721 #lines .ide-line-number.is-active{color:#c8d5e1!important;font-weight:700}
body.arduino-page.arduino-ide-v2721 [data-studio-pane="code"] textarea#code{
  position:relative!important;
  z-index:2!important;
  grid-column:2!important;
  inset:auto!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  margin:0!important;
  padding:16px 24px 32px 18px!important;
  resize:none!important;
  overflow:auto!important;
  white-space:pre!important;
  tab-size:2!important;
  background:transparent!important;
  color:var(--arduino-ide-text)!important;
  -webkit-text-fill-color:var(--arduino-ide-text)!important;
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  font:500 var(--arduino-code-font)/var(--arduino-code-line) "Cascadia Code","SFMono-Regular",Consolas,"Liberation Mono",monospace!important;
  caret-color:var(--arduino-ide-yellow)!important;
  scrollbar-color:#34495f #0b1420!important;
  scrollbar-gutter:stable!important;
}
body.arduino-page.arduino-ide-v2721 [data-studio-pane="code"] textarea#code:focus{outline:0!important;box-shadow:none!important}
body.arduino-page.arduino-ide-v2721 [data-studio-pane="code"] textarea#code::selection{background:rgba(34,134,185,.34)!important}

/* Arduino IDE-style status bar */
body.arduino-page.arduino-ide-v2721 [data-studio-pane="code"] .codefoot{
  height:34px!important;min-height:34px!important;padding:0 10px!important;
  display:flex!important;align-items:center!important;gap:12px!important;
  background:#111d2c!important;border-top:1px solid var(--arduino-ide-line)!important;
  color:#7890a6!important;font-size:7.5px!important;
}
body.arduino-page.arduino-ide-v2721 .ide-editor-status{display:flex;align-items:center;gap:12px;min-width:0}
body.arduino-page.arduino-ide-v2721 .ide-editor-status span{white-space:nowrap}
body.arduino-page.arduino-ide-v2721 .ide-editor-status .ide-language{color:#70cbc7;font-weight:800}
body.arduino-page.arduino-ide-v2721 .ide-editor-status .ide-check-state.ok{color:#7bd263}
body.arduino-page.arduino-ide-v2721 .ide-editor-status .ide-check-state.bad{color:#ff7c72}
body.arduino-page.arduino-ide-v2721 .codefoot #supported{margin-left:auto!important}

/* Keep the dedicated serial monitor as the console, never inside the Code tab. */
body.arduino-page.arduino-ide-v2721 .ide-serial-console #monitor{font-size:12px!important;line-height:1.58!important}
body.arduino-page.arduino-ide-v2721 .ide-serial-send input{font-family:"Cascadia Mono",Consolas,monospace!important}

@media(max-width:1350px) and (min-width:1100px){
  body.arduino-page.arduino-ide-v2721 .ide-editor-actions button span{display:none}
  body.arduino-page.arduino-ide-v2721 .ide-editor-actions button{padding:0 7px!important}
  body.arduino-page.arduino-ide-v2721 [data-studio-pane="code"] .editorwrap{grid-template-columns:46px minmax(0,1fr)!important}
  body.arduino-page.arduino-ide-v2721 [data-studio-pane="code"] #lines{width:46px!important;min-width:46px!important}
  body.arduino-page.arduino-ide-v2721 [data-studio-pane="code"] .editorwrap::before{left:46px}
}
@media(max-width:720px){
  body.arduino-page.arduino-ide-v2721{--arduino-code-font:12.5px}
  body.arduino-page.arduino-ide-v2721 [data-studio-pane="code"] .editorwrap{grid-template-columns:42px minmax(0,1fr)!important}
  body.arduino-page.arduino-ide-v2721 [data-studio-pane="code"] #lines{width:42px!important;min-width:42px!important;padding-right:6px!important}
  body.arduino-page.arduino-ide-v2721 [data-studio-pane="code"] .editorwrap::before{left:42px}
  body.arduino-page.arduino-ide-v2721 [data-studio-pane="code"] textarea#code{padding-left:12px!important;padding-right:14px!important}
  body.arduino-page.arduino-ide-v2721 .ide-editor-actions{display:none!important}
  body.arduino-page.arduino-ide-v2721 .ide-editor-status .ide-spaces{display:none}
}

@container (max-width:620px){
  body.arduino-page.arduino-ide-v2721 .ide-board-selector,
  body.arduino-page.arduino-ide-v2721 .filetab #downloadino,
  body.arduino-page.arduino-ide-v2721 .filetab #restore{display:none!important}
  body.arduino-page.arduino-ide-v2721 .ide-editor-actions button span{display:none}
  body.arduino-page.arduino-ide-v2721 .ide-editor-actions button{width:29px!important;min-width:29px!important;padding:0!important}
  body.arduino-page.arduino-ide-v2721 .ide-file-identity{min-width:96px!important}
}
@container (max-width:440px){
  body.arduino-page.arduino-ide-v2721 .ide-editor-actions{display:none!important}
  body.arduino-page.arduino-ide-v2721 .ide-width-tools button:not([data-ide-size="max"]){display:none!important}
}


/* ===== SOURCE: labs/arduino/ide/advanced-ide-v027190.css ===== */
/* AIM STEM LAB v0.27.190 — advanced Arduino IDE diagnostics, completion and plotter */
body.arduino-page.arduino-advanced-ide-v027190 .codepanel{position:relative!important}
body.arduino-page.arduino-advanced-ide-v027190 .ide-editor-actions [data-problem-badge]{
  display:inline-grid;place-items:center;min-width:15px;height:15px;padding:0 4px;margin-left:3px;border-radius:999px;background:#8a1020;color:#fff;font-size:7px
}
body.arduino-page.arduino-advanced-ide-v027190 .ide-editor-actions [data-problem-badge][hidden]{display:none!important}
body.arduino-page.arduino-advanced-ide-v027190 .ide-check-state.warn{color:#f0b840!important}
body.arduino-page.arduino-advanced-ide-v027190 #lines .ide-line-number.has-error{color:#ff837a!important;position:relative;font-weight:800}
body.arduino-page.arduino-advanced-ide-v027190 #lines .ide-line-number.has-error::before{content:'';position:absolute;left:5px;top:50%;width:5px;height:5px;margin-top:-2px;border-radius:50%;background:#e75858}
body.arduino-page.arduino-advanced-ide-v027190 #lines .ide-line-number.has-warning{color:#f0c55c!important;position:relative}
body.arduino-page.arduino-advanced-ide-v027190 #lines .ide-line-number.has-warning::before{content:'';position:absolute;left:5px;top:50%;width:5px;height:5px;margin-top:-2px;border-radius:50%;background:#e4ad34}

body.arduino-page.arduino-advanced-ide-v027190 .codepanel.problems-open{grid-template-rows:52px minmax(130px,1fr) minmax(110px,30%) 34px!important}
body.arduino-page.arduino-advanced-ide-v027190 .aim-ide-problems{min-height:0;overflow:hidden;background:#0b1521;border-top:1px solid #26394d;color:#cbd7e2}
body.arduino-page.arduino-advanced-ide-v027190 .aim-ide-problems[hidden]{display:none!important}
body.arduino-page.arduino-advanced-ide-v027190 .aim-ide-problems>header{height:32px;display:flex;align-items:center;gap:9px;padding:0 10px;border-bottom:1px solid #1e3043;font-size:9px}
body.arduino-page.arduino-advanced-ide-v027190 .aim-ide-problems>header strong{font-size:9px;color:#f1f5f9;letter-spacing:.05em;text-transform:uppercase}
body.arduino-page.arduino-advanced-ide-v027190 .aim-ide-problems>header span{color:#7f94a8}
body.arduino-page.arduino-advanced-ide-v027190 .aim-ide-problems>header button{margin-left:auto;border:0;background:transparent;color:#8da2b5;font-size:16px;cursor:pointer}
body.arduino-page.arduino-advanced-ide-v027190 .aim-ide-problem-list{height:calc(100% - 32px);overflow:auto;scrollbar-gutter:stable}
body.arduino-page.arduino-advanced-ide-v027190 .aim-ide-problem{width:100%;display:grid;grid-template-columns:20px minmax(0,1fr);gap:7px;align-items:start;padding:7px 10px;border:0;border-bottom:1px solid rgba(148,163,184,.08);background:transparent;color:#cbd7e2;text-align:left;cursor:pointer}
body.arduino-page.arduino-advanced-ide-v027190 .aim-ide-problem:hover{background:#132336}
body.arduino-page.arduino-advanced-ide-v027190 .aim-ide-problem.error .aim-problem-icon{color:#ff7770}
body.arduino-page.arduino-advanced-ide-v027190 .aim-ide-problem.warning .aim-problem-icon{color:#f0b840}
body.arduino-page.arduino-advanced-ide-v027190 .aim-problem-copy{display:grid;gap:2px;min-width:0}
body.arduino-page.arduino-advanced-ide-v027190 .aim-problem-copy strong{font-size:9px;line-height:1.3;color:#dce7f0;font-weight:650}
body.arduino-page.arduino-advanced-ide-v027190 .aim-problem-copy small{font-size:7px;color:#6f879c}
body.arduino-page.arduino-advanced-ide-v027190 .aim-ide-problem-empty{height:100%;display:grid;place-content:center;text-align:center;gap:4px;color:#6f879c;font-size:8px}
body.arduino-page.arduino-advanced-ide-v027190 .aim-ide-problem-empty strong{color:#74cf73;font-size:10px}

body.arduino-page.arduino-advanced-ide-v027190 .aim-ide-findbar{position:absolute;z-index:30;right:12px;top:60px;display:grid;grid-template-columns:minmax(90px,1fr) minmax(80px,1fr) auto repeat(5,auto);gap:4px;align-items:center;width:min(620px,calc(100% - 24px));padding:6px;background:#111d2c;border:1px solid #30465d;border-radius:8px;box-shadow:0 12px 30px rgba(0,0,0,.28)}
body.arduino-page.arduino-advanced-ide-v027190 .aim-ide-findbar[hidden]{display:none!important}
body.arduino-page.arduino-advanced-ide-v027190 .aim-ide-findbar input{min-width:0;height:28px;border:1px solid #2d4359;border-radius:5px;background:#0b1521;color:#e7eef5;padding:0 8px;font:500 9px/1.2 "Cascadia Mono",Consolas,monospace;outline:0}
body.arduino-page.arduino-advanced-ide-v027190 .aim-ide-findbar input:focus{border-color:#8a3c49;box-shadow:0 0 0 2px rgba(138,16,32,.13)}
body.arduino-page.arduino-advanced-ide-v027190 .aim-ide-findbar span{font-size:7px;color:#768fa5;min-width:28px;text-align:center}
body.arduino-page.arduino-advanced-ide-v027190 .aim-ide-findbar button{height:28px;border:1px solid #2d4359;border-radius:5px;background:#17263a;color:#aabed0;font-size:8px;font-weight:750;cursor:pointer;padding:0 7px}
body.arduino-page.arduino-advanced-ide-v027190 .aim-ide-findbar button:hover{background:#20364d;color:#fff}

body.arduino-page.arduino-advanced-ide-v027190 .aim-ide-suggest{position:absolute;z-index:35;top:12px;right:16px;width:min(300px,calc(100% - 24px));max-height:240px;overflow:auto;padding:4px;background:#0e1a28;border:1px solid #314a62;border-radius:8px;box-shadow:0 16px 40px rgba(0,0,0,.34)}
body.arduino-page.arduino-advanced-ide-v027190 .aim-ide-suggest[hidden]{display:none!important}
body.arduino-page.arduino-advanced-ide-v027190 .aim-ide-suggest button{width:100%;display:grid;grid-template-columns:110px minmax(0,1fr);gap:8px;padding:6px 8px;border:0;border-radius:5px;background:transparent;color:#b9cada;text-align:left;cursor:pointer}
body.arduino-page.arduino-advanced-ide-v027190 .aim-ide-suggest button.active,body.arduino-page.arduino-advanced-ide-v027190 .aim-ide-suggest button:hover{background:#18314a;color:#fff}
body.arduino-page.arduino-advanced-ide-v027190 .aim-ide-suggest strong{font:700 9px/1.2 "Cascadia Mono",Consolas,monospace;color:#72d2cb}
body.arduino-page.arduino-advanced-ide-v027190 .aim-ide-suggest span{font-size:7px;color:#7e95aa;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

body.arduino-page.arduino-advanced-ide-v027190 .aim-ide-palette{position:absolute;z-index:50;inset:0;display:grid;place-items:start center;padding-top:68px;background:rgba(5,12,18,.48);backdrop-filter:blur(1px)}
body.arduino-page.arduino-advanced-ide-v027190 .aim-ide-palette[hidden]{display:none!important}
body.arduino-page.arduino-advanced-ide-v027190 .aim-ide-palette>div{width:min(470px,calc(100% - 24px));background:#111e2d;border:1px solid #334c64;border-radius:10px;box-shadow:0 24px 60px rgba(0,0,0,.42);overflow:hidden}
body.arduino-page.arduino-advanced-ide-v027190 .aim-ide-palette input{width:100%;height:42px;border:0;border-bottom:1px solid #2d4258;background:#0d1825;color:#e8f0f7;padding:0 13px;font-size:11px;outline:0}
body.arduino-page.arduino-advanced-ide-v027190 .aim-ide-palette section{max-height:270px;overflow:auto;padding:5px}
body.arduino-page.arduino-advanced-ide-v027190 .aim-ide-palette section button{width:100%;border:0;border-radius:6px;background:transparent;color:#b9cada;text-align:left;padding:8px 10px;font-size:9px;cursor:pointer}
body.arduino-page.arduino-advanced-ide-v027190 .aim-ide-palette section button:hover{background:#1b334b;color:#fff}
body.arduino-page.arduino-advanced-ide-v027190 .aim-ide-palette small{display:block;padding:7px 10px;border-top:1px solid #293f55;color:#6f879b;font-size:7px}

body.arduino-page.arduino-advanced-ide-v027190 .aim-serial-plotter{background:#0b1521;color:#d7e2ec;min-height:0}
body.arduino-page.arduino-advanced-ide-v027190 .aim-serial-plotter>header{height:52px;padding:0 12px;display:flex;align-items:center;border-bottom:1px solid #26394d}
body.arduino-page.arduino-advanced-ide-v027190 .aim-serial-plotter>header div{display:grid;gap:2px}body.arduino-page.arduino-advanced-ide-v027190 .aim-serial-plotter>header small{font-size:7px;color:#7990a5;letter-spacing:.1em}body.arduino-page.arduino-advanced-ide-v027190 .aim-serial-plotter>header strong{font-size:10px}body.arduino-page.arduino-advanced-ide-v027190 .aim-serial-plotter>header button{margin-left:auto;height:28px;border:1px solid #2e4459;border-radius:6px;background:#152538;color:#9eb3c5;font-size:8px;cursor:pointer}
body.arduino-page.arduino-advanced-ide-v027190 .aim-plot-wrap{position:relative;height:calc(100% - 80px);min-height:160px;padding:10px}
body.arduino-page.arduino-advanced-ide-v027190 .aim-plot-wrap canvas{width:100%;height:100%;display:block;background:#09131e;border:1px solid #21364a;border-radius:7px}
body.arduino-page.arduino-advanced-ide-v027190 .aim-plot-empty{position:absolute;inset:10px;display:grid;place-items:center;text-align:center;padding:20px;color:#668095;font-size:9px;pointer-events:none}
body.arduino-page.arduino-advanced-ide-v027190 .aim-plot-empty[hidden]{display:none!important}
body.arduino-page.arduino-advanced-ide-v027190 .aim-serial-plotter>footer{height:28px;display:flex;align-items:center;justify-content:space-between;padding:0 10px;border-top:1px solid #26394d;color:#738ba0;font-size:7px}

@container (max-width:620px){body.arduino-page.arduino-advanced-ide-v027190 .ide-editor-actions [data-editor-action="find"],body.arduino-page.arduino-advanced-ide-v027190 .ide-editor-actions [data-editor-action="problems"] span{display:none}body.arduino-page.arduino-advanced-ide-v027190 .aim-ide-findbar{grid-template-columns:1fr auto auto auto}body.arduino-page.arduino-advanced-ide-v027190 .aim-ide-findbar [data-replace],body.arduino-page.arduino-advanced-ide-v027190 .aim-ide-findbar [data-replace-one],body.arduino-page.arduino-advanced-ide-v027190 .aim-ide-findbar [data-replace-all],body.arduino-page.arduino-advanced-ide-v027190 .aim-ide-findbar [data-find-count]{display:none}}

/* v0.27.190 verification readiness cues — reserved-space badges avoid layout movement. */
body.arduino-page.arduino-advanced-ide-v027190 #run[data-code-ready="false"]{box-shadow:inset 0 0 0 1px rgba(255,255,255,.20),0 0 0 2px rgba(138,16,32,.14)}
body.arduino-page.arduino-advanced-ide-v027190 [data-studio-tab="code"].has-code-errors{position:relative}
body.arduino-page.arduino-advanced-ide-v027190 [data-studio-tab="code"].has-code-errors::after{content:attr(data-problem-count);position:absolute;right:7px;top:6px;min-width:14px;height:14px;padding:0 3px;border-radius:999px;display:grid;place-items:center;background:#a5172b;color:#fff;font-size:7px;font-weight:900;line-height:1}


/* ===== SOURCE: labs/arduino/ide/syntax-highlighting-v2742.css ===== */
/* AIM STEM LAB v0.27.42 — Arduino/C++ IDE syntax layer */
body.arduino-page.arduino-syntax-v2742{
  --ide-syntax-text:#d7e1eb;
  --ide-syntax-comment:#7f98a6;
  --ide-syntax-keyword:#c586c0;
  --ide-syntax-type:#62b8f4;
  --ide-syntax-qualifier:#82c7ff;
  --ide-syntax-builtin:#ff7b72;
  --ide-syntax-entry:#a8d26f;
  --ide-syntax-function:#dcdcaa;
  --ide-syntax-string:#e6a07a;
  --ide-syntax-number:#b5d59c;
  --ide-syntax-constant:#2dd4bf;
  --ide-syntax-object:#4fc1ff;
  --ide-syntax-member:#dcdcaa;
  --ide-syntax-preprocessor:#c586c0;
  --ide-syntax-header:#ce9178;
  --ide-syntax-operator:#d4d4d4;
}
body.arduino-page.arduino-syntax-v2742 [data-studio-pane="code"] .editorwrap{grid-template-rows:minmax(0,1fr)!important}
body.arduino-page.arduino-syntax-v2742 .aim-syntax-layer{
  position:relative;z-index:1;grid-column:2!important;grid-row:1!important;
  width:100%;height:100%;min-width:0;min-height:0;overflow:hidden;pointer-events:none;background:transparent;
}
body.arduino-page.arduino-syntax-v2742 .aim-syntax-layer pre{
  margin:0;min-width:max-content;min-height:100%;padding:16px 24px 32px 18px;
  white-space:pre;tab-size:2;color:var(--ide-syntax-text);
  font:500 var(--arduino-code-font)/var(--arduino-code-line) "Cascadia Code","SFMono-Regular",Consolas,"Liberation Mono",monospace;
  font-variant-ligatures:none;letter-spacing:normal;transform:translate(0,0);transform-origin:top left;will-change:transform;
}
body.arduino-page.arduino-syntax-v2742 .aim-syntax-layer code{font:inherit;color:inherit}
body.arduino-page.arduino-syntax-v2742 [data-studio-pane="code"] textarea#code{
  grid-column:2!important;grid-row:1!important;z-index:2!important;
  color:transparent!important;-webkit-text-fill-color:transparent!important;text-shadow:none!important;
  caret-color:#f6d365!important;background:transparent!important;font-variant-ligatures:none!important;
}
body.arduino-page.arduino-syntax-v2742 [data-studio-pane="code"] textarea#code::selection{
  background:rgba(61,142,199,.38)!important;color:transparent!important;-webkit-text-fill-color:transparent!important;
}
body.arduino-page.arduino-syntax-v2742 .tok-comment{color:var(--ide-syntax-comment);font-style:italic}
body.arduino-page.arduino-syntax-v2742 .tok-keyword{color:var(--ide-syntax-keyword);font-weight:650}
body.arduino-page.arduino-syntax-v2742 .tok-type{color:var(--ide-syntax-type);font-weight:600}
body.arduino-page.arduino-syntax-v2742 .tok-qualifier{color:var(--ide-syntax-qualifier);font-weight:600}
body.arduino-page.arduino-syntax-v2742 .tok-builtin{color:var(--ide-syntax-builtin);font-weight:600}
body.arduino-page.arduino-syntax-v2742 .tok-entry{color:var(--ide-syntax-entry);font-weight:700}
body.arduino-page.arduino-syntax-v2742 .tok-function{color:var(--ide-syntax-function)}
body.arduino-page.arduino-syntax-v2742 .tok-string,body.arduino-page.arduino-syntax-v2742 .tok-char{color:var(--ide-syntax-string)}
body.arduino-page.arduino-syntax-v2742 .tok-number{color:var(--ide-syntax-number)}
body.arduino-page.arduino-syntax-v2742 .tok-constant{color:var(--ide-syntax-constant);font-weight:650}
body.arduino-page.arduino-syntax-v2742 .tok-object{color:var(--ide-syntax-object);font-weight:650}
body.arduino-page.arduino-syntax-v2742 .tok-member{color:var(--ide-syntax-member)}
body.arduino-page.arduino-syntax-v2742 .tok-preprocessor{color:var(--ide-syntax-preprocessor);font-weight:700}
body.arduino-page.arduino-syntax-v2742 .tok-header{color:var(--ide-syntax-header)}
body.arduino-page.arduino-syntax-v2742 .tok-operator,body.arduino-page.arduino-syntax-v2742 .tok-punctuation{color:var(--ide-syntax-operator)}
body.arduino-page.arduino-syntax-v2742 .tok-bracket{color:#f0d66f}
body.arduino-page.arduino-syntax-v2742 .tok-identifier{color:var(--ide-syntax-text)}
@media(max-width:720px){body.arduino-page.arduino-syntax-v2742 .aim-syntax-layer pre{padding-left:12px;padding-right:14px}}


/* ===== SOURCE: labs/arduino/ide/font-controls-v027158.css ===== */
/* AIM STEM LAB v0.27.158 — professional Arduino text editor font controls */
body.arduino-page.arduino-font-controls-v027158 .ide-font-controls{
  display:inline-flex;
  align-items:center;
  gap:2px;
  height:30px;
  padding:2px;
  border:1px solid #2b4158;
  border-radius:8px;
  background:#0d1a29;
  flex:0 0 auto;
}
body.arduino-page.arduino-font-controls-v027158 .ide-font-controls button{
  display:inline-grid;
  place-items:center;
  height:24px;
  min-height:24px;
  min-width:26px;
  padding:0 7px;
  margin:0;
  border:0;
  border-radius:6px;
  background:transparent;
  color:#aabbd0;
  font:800 12px/1 system-ui,-apple-system,"Segoe UI",sans-serif;
  cursor:pointer;
  transition:background .14s ease,color .14s ease,border-color .14s ease;
}
body.arduino-page.arduino-font-controls-v027158 .ide-font-controls button:hover,
body.arduino-page.arduino-font-controls-v027158 .ide-font-controls button:focus-visible{
  background:#1b3148;
  color:#fff;
  outline:none;
}
body.arduino-page.arduino-font-controls-v027158 .ide-font-controls .ide-font-value{
  min-width:48px;
  color:#d7e2ee;
  font-size:9px;
  letter-spacing:.02em;
  font-variant-numeric:tabular-nums;
}
body.arduino-page.arduino-font-controls-v027158 .ide-font-controls button:disabled{
  opacity:.38;
  cursor:not-allowed;
  background:transparent;
}
/* Font size belongs only to Text mode. Keep the Blocks workspace visually clean. */
body.arduino-page.arduino-font-controls-v027158 #aimProgrammingPanel[data-programming-mode='blocks'] .ide-font-controls{display:none!important}
@media(max-width:1120px){
  body.arduino-page.arduino-font-controls-v027158 .ide-font-controls .ide-font-value{min-width:42px;padding-inline:5px}
  body.arduino-page.arduino-font-controls-v027158 .ide-font-controls button{min-width:24px;padding-inline:5px}
}
@media(max-width:760px){
  body.arduino-page.arduino-font-controls-v027158 .ide-font-controls{height:28px}
  body.arduino-page.arduino-font-controls-v027158 .ide-font-controls button{height:22px;min-height:22px;min-width:23px;padding-inline:4px}
  body.arduino-page.arduino-font-controls-v027158 .ide-font-controls .ide-font-value{min-width:38px;font-size:8px}
}


/* ===== SOURCE: labs/arduino/layout/prephase6-compact-layout.css ===== */
/* AIM Arduino v0.27.23 — compact responsive lab layout
   Scope: remove the oversized project identity header from view and give the
   engineering workbench / IDE the full remaining viewport height.
*/
body.arduino-page.arduino-compact-v2723{
  --aim-top-nav-h:64px;
  --aim-command-h:78px;
  --aim-workspace-h:calc(100dvh - var(--aim-top-nav-h) - var(--aim-command-h));
  overflow:hidden!important;
}

/* The project/lab identity remains in the DOM for the simulator's data bindings,
   but is intentionally removed from the visual layout. */
body.arduino-page.arduino-compact-v2723 .studio-command{
  height:var(--aim-command-h)!important;
  min-height:var(--aim-command-h)!important;
  padding:4px 20px 0!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) max-content!important;
  grid-template-rows:38px 36px!important;
  column-gap:12px!important;
  row-gap:0!important;
  align-items:center!important;
  background:#fff!important;
  overflow:visible!important;
  border-bottom:1px solid #dbe6ea!important;
}
body.arduino-page.arduino-compact-v2723 .studio-identity,
body.arduino-page.arduino-compact-v2723 .studio-project{
  display:none!important;
}
body.arduino-page.arduino-compact-v2723 .studio-actions{
  grid-column:2!important;
  grid-row:1!important;
  align-self:center!important;
  justify-self:end!important;
  gap:7px!important;
  margin:0!important;
}
body.arduino-page.arduino-compact-v2723 .studio-actions .quiet-action{
  height:34px!important;
  min-height:34px!important;
  padding:0 12px!important;
  border-radius:9px!important;
  font-size:10px!important;
}
body.arduino-page.arduino-compact-v2723 .studio-actions .run-action{
  min-width:116px!important;
  height:36px!important;
  min-height:36px!important;
  padding:0 16px!important;
  border-radius:9px!important;
  font-size:11px!important;
}
body.arduino-page.arduino-compact-v2723 .studio-progress{
  grid-column:1/-1!important;
  grid-row:2!important;
  height:36px!important;
  min-height:36px!important;
  margin:0 -20px!important;
  border-top:1px solid #edf2f4!important;
}
body.arduino-page.arduino-compact-v2723 .studio-progress .labpath__stage{
  min-height:36px!important;
}
body.arduino-page.arduino-compact-v2723 .studio-progress .labpath__stage i{
  width:22px!important;
  height:22px!important;
  flex-basis:22px!important;
}
body.arduino-page.arduino-compact-v2723 .studio-progress .labpath__stage b{
  font-size:8.8px!important;
}

/* The entire application below the compact command strip uses the exact
   remaining dynamic viewport height. No minimum-height may force its bottom
   below the browser viewport. */
body.arduino-page.arduino-compact-v2723 .arduino-studio{
  height:calc(100dvh - var(--aim-top-nav-h))!important;
  min-height:0!important;
  overflow:hidden!important;
}
body.arduino-page.arduino-compact-v2723 .studio-body{
  height:var(--aim-workspace-h)!important;
  min-height:0!important;
  max-height:var(--aim-workspace-h)!important;
  overflow:hidden!important;
  align-items:stretch!important;
}
body.arduino-page.arduino-compact-v2723 .studio-sidebar,
body.arduino-page.arduino-compact-v2723 .studio-main,
body.arduino-page.arduino-compact-v2723 .workzone,
body.arduino-page.arduino-compact-v2723 .benchpanel,
body.arduino-page.arduino-compact-v2723 .inspector,
body.arduino-page.arduino-compact-v2723 .inspector-body{
  min-height:0!important;
  max-height:100%!important;
}
body.arduino-page.arduino-compact-v2723 .studio-sidebar{
  height:100%!important;
  overflow:hidden!important;
}
body.arduino-page.arduino-compact-v2723 .studio-sidebar .sidebar-pane.is-active{
  min-height:0!important;
  overflow:auto!important;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}
body.arduino-page.arduino-compact-v2723 .studio-main{
  height:100%!important;
  overflow:hidden!important;
}
body.arduino-page.arduino-compact-v2723 .workzone{
  height:100%!important;
  overflow:hidden!important;
}
body.arduino-page.arduino-compact-v2723 .benchpanel{
  height:100%!important;
  overflow:hidden!important;
}
body.arduino-page.arduino-compact-v2723 .benchviewport{
  height:100%!important;
  min-height:0!important;
}
body.arduino-page.arduino-compact-v2723 .inspector{
  height:100%!important;
  overflow:hidden!important;
}
body.arduino-page.arduino-compact-v2723 .inspector-body{
  height:calc(100% - 56px)!important;
  min-height:0!important;
  overflow:hidden!important;
}
body.arduino-page.arduino-compact-v2723 .lab-side-pane{
  min-height:0!important;
  height:100%!important;
}
body.arduino-page.arduino-compact-v2723 .code-pane.is-active,
body.arduino-page.arduino-compact-v2723 .monitor-pane.is-active,
body.arduino-page.arduino-compact-v2723 .guide-pane.is-active,
body.arduino-page.arduino-compact-v2723 .learn-pane.is-active{
  min-height:0!important;
  overflow:hidden!important;
}

/* Keep the fixed HUD inside the visible centre panel at all heights. */
body.arduino-page.arduino-compact-v2723 .aim-workbench-hud{
  inset:0!important;
}
body.arduino-page.arduino-compact-v2723 .aim-workbench-hud .canvas-tools--zoom{
  bottom:12px!important;
}
body.arduino-page.arduino-compact-v2723 .aim-workbench-hud .studio-status{
  bottom:12px!important;
}

/* Short desktop screens: compress the HUD rather than hiding the bottom. */
@media (min-width:1100px) and (max-height:760px){
  body.arduino-page.arduino-compact-v2723{
    --aim-command-h:70px;
  }
  body.arduino-page.arduino-compact-v2723 .studio-command{
    grid-template-rows:34px 32px!important;
    padding-top:2px!important;
  }
  body.arduino-page.arduino-compact-v2723 .studio-actions .quiet-action{
    height:30px!important;min-height:30px!important;
  }
  body.arduino-page.arduino-compact-v2723 .studio-actions .run-action{
    height:32px!important;min-height:32px!important;
  }
  body.arduino-page.arduino-compact-v2723 .studio-progress,
  body.arduino-page.arduino-compact-v2723 .studio-progress .labpath__stage{
    height:32px!important;min-height:32px!important;
  }
  body.arduino-page.arduino-compact-v2723 .aim-workbench-hud .canvas-label{top:8px!important}
  body.arduino-page.arduino-compact-v2723 .aim-workbench-hud .bench-project-name{top:8px!important}
  body.arduino-page.arduino-compact-v2723 .aim-workbench-hud .canvas-tools--top-right{top:8px!important}
  body.arduino-page.arduino-compact-v2723 .aim-workbench-hud .canvas-tools--top-left{top:52px!important}
  body.arduino-page.arduino-compact-v2723 .aim-workbench-hud .canvas-tools--zoom{bottom:8px!important}
  body.arduino-page.arduino-compact-v2723 .aim-workbench-hud .studio-status{bottom:8px!important}
}

/* Responsive mode: stop locking the whole page once the desktop 3-column
   environment no longer fits. The workbench and IDE stack and the document can
   scroll naturally. */
@media (max-width:1099px){
  body.arduino-page.arduino-compact-v2723{overflow:auto!important}
  body.arduino-page.arduino-compact-v2723 .arduino-studio{
    height:auto!important;
    min-height:calc(100dvh - var(--aim-top-nav-h))!important;
    overflow:visible!important;
  }
  body.arduino-page.arduino-compact-v2723 .studio-command{
    height:auto!important;
    min-height:72px!important;
    grid-template-columns:1fr!important;
    grid-template-rows:auto 36px!important;
    padding:5px 10px 0!important;
  }
  body.arduino-page.arduino-compact-v2723 .studio-actions{
    grid-column:1!important;
    justify-self:end!important;
    overflow-x:auto!important;
    max-width:100%!important;
  }
  body.arduino-page.arduino-compact-v2723 .studio-progress{margin:0 -10px!important}
  body.arduino-page.arduino-compact-v2723 .studio-body{
    height:auto!important;
    max-height:none!important;
    min-height:0!important;
    overflow:visible!important;
  }
  body.arduino-page.arduino-compact-v2723 .studio-sidebar{height:auto!important;max-height:none!important}
  body.arduino-page.arduino-compact-v2723 .studio-main,
  body.arduino-page.arduino-compact-v2723 .workzone{height:auto!important;max-height:none!important;overflow:visible!important}
  body.arduino-page.arduino-compact-v2723 .benchpanel{height:62vh!important;min-height:480px!important;max-height:none!important}
  body.arduino-page.arduino-compact-v2723 .inspector{height:600px!important;max-height:none!important}
}

@media (max-width:700px){
  body.arduino-page.arduino-compact-v2723 .studio-actions .quiet-action span{display:none!important}
  body.arduino-page.arduino-compact-v2723 .studio-actions .quiet-action{padding:0 9px!important}
  body.arduino-page.arduino-compact-v2723 .studio-actions .run-action{min-width:88px!important}
  body.arduino-page.arduino-compact-v2723 .studio-progress .labpath__stage{gap:4px!important;padding:0 2px!important}
  body.arduino-page.arduino-compact-v2723 .studio-progress .labpath__stage b{font-size:7.5px!important}
  body.arduino-page.arduino-compact-v2723 .studio-progress .labpath__stage i{width:19px!important;height:19px!important;flex-basis:19px!important}
}


/* ===== SOURCE: labs/arduino/stability/prephase6-focus-dock.css ===== */
/* AIM Arduino v0.27.25 — workbench focus, compact status HUD and collapsible IDE dock.
   Scope: presentation/layout controls only. No simulator state or electrical logic. */
body.arduino-page.arduino-focusdock-v2725{
  --aim-status-bg:rgba(8,45,55,.94);
  --aim-status-line:rgba(111,171,180,.28);
  --aim-status-text:#e9f6f6;
  --aim-status-muted:#9cbac0;
  --aim-status-lime:#b7e62d;
}

/* ------------------------------------------------------------------
   1. Focus mode: keep AIM navigation and progress visible. Only the
      side library and IDE dock leave the stage. Never use legacy
      body.benchfocus because that class hides platform navigation.
   ------------------------------------------------------------------ */
body.arduino-page.arduino-focusdock-v2725.arduino-workbench-focus-v2725 .studio-body{
  grid-template-columns:minmax(0,1fr)!important;
}
body.arduino-page.arduino-focusdock-v2725.arduino-workbench-focus-v2725 #studioSidebar,
body.arduino-page.arduino-focusdock-v2725.arduino-workbench-focus-v2725 #sidebarBackdrop{
  display:none!important;
}
body.arduino-page.arduino-focusdock-v2725.arduino-workbench-focus-v2725 .studio-main{
  grid-column:1!important;
  width:100%!important;
  min-width:0!important;
}
body.arduino-page.arduino-focusdock-v2725.arduino-workbench-focus-v2725 .workzone{
  grid-template-columns:minmax(0,1fr)!important;
  width:100%!important;
  min-width:0!important;
}
body.arduino-page.arduino-focusdock-v2725.arduino-workbench-focus-v2725 #workspaceSplitter,
body.arduino-page.arduino-focusdock-v2725.arduino-workbench-focus-v2725 #inspector,
body.arduino-page.arduino-focusdock-v2725.arduino-workbench-focus-v2725 #ideDockToggle{
  display:none!important;
}
body.arduino-page.arduino-focusdock-v2725.arduino-workbench-focus-v2725 #platform-nav{display:block!important}
body.arduino-page.arduino-focusdock-v2725.arduino-workbench-focus-v2725 .aim-nav{display:flex!important}
body.arduino-page.arduino-focusdock-v2725.arduino-workbench-focus-v2725 .studio-command{display:grid!important}

/* ------------------------------------------------------------------
   2. IDE dock collapse/restore. The workbench receives the freed space.
   ------------------------------------------------------------------ */
body.arduino-page.arduino-focusdock-v2725 .workzone{position:relative!important}
body.arduino-page.arduino-focusdock-v2725 #ideDockToggle{
  position:absolute;
  z-index:135;
  top:64px;
  right:calc(var(--inspector-w,500px) + 5px);
  min-width:28px;
  height:54px;
  padding:0 6px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:3px;
  border:1px solid #285865;
  border-right:0;
  border-radius:9px 0 0 9px;
  background:#0b3d48;
  color:#d9eef0;
  box-shadow:0 8px 22px rgba(0,0,0,.16);
  font:800 9px/1 system-ui,sans-serif;
  cursor:pointer;
  transition:right .18s ease,background .18s ease,transform .18s ease;
}
body.arduino-page.arduino-focusdock-v2725 #ideDockToggle:hover{background:#10525e;color:#fff}
body.arduino-page.arduino-focusdock-v2725 #ideDockToggle .ide-dock-arrow{font-size:15px;line-height:1}
body.arduino-page.arduino-focusdock-v2725 #ideDockToggle .ide-dock-label{font-size:7px;letter-spacing:.07em;text-transform:uppercase;writing-mode:vertical-rl;transform:rotate(180deg)}
body.arduino-page.arduino-focusdock-v2725.arduino-ide-collapsed-v2725 .workzone{
  grid-template-columns:minmax(0,1fr)!important;
}
body.arduino-page.arduino-focusdock-v2725.arduino-ide-collapsed-v2725 #workspaceSplitter,
body.arduino-page.arduino-focusdock-v2725.arduino-ide-collapsed-v2725 #inspector{
  display:none!important;
}
body.arduino-page.arduino-focusdock-v2725.arduino-ide-collapsed-v2725 #ideDockToggle{
  right:8px;
  border-right:1px solid #285865;
  border-radius:9px;
  background:#0c5661;
}
body.arduino-page.arduino-focusdock-v2725.arduino-ide-collapsed-v2725 .benchpanel{grid-column:1!important}
body.arduino-page.arduino-focusdock-v2725.arduino-ide-maximised #ideDockToggle{display:none!important}

/* ------------------------------------------------------------------
   3. Professional bottom HUD. It is no longer one long white/dark bar.
      Each functional group is a compact floating instrument.
   ------------------------------------------------------------------ */
body.arduino-page.arduino-focusdock-v2725 .aim-workbench-hud .studio-status{
  left:16px!important;
  right:170px!important;
  bottom:12px!important;
  height:auto!important;
  min-height:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  overflow:visible!important;
  pointer-events:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
body.arduino-page.arduino-focusdock-v2725 .aim-workbench-hud .studio-status>*{pointer-events:auto}
body.arduino-page.arduino-focusdock-v2725 .status-primary{
  min-height:34px!important;
  padding:0 12px!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  border:1px solid var(--aim-status-line)!important;
  border-radius:10px!important;
  background:var(--aim-status-bg)!important;
  box-shadow:0 8px 18px rgba(0,0,0,.14)!important;
  white-space:nowrap!important;
}
body.arduino-page.arduino-focusdock-v2725 .status-primary i{
  width:9px!important;height:9px!important;border-radius:50%!important;
  background:var(--aim-status-lime)!important;
  box-shadow:0 0 0 4px rgba(183,230,45,.12),0 0 12px rgba(183,230,45,.32)!important;
}
body.arduino-page.arduino-focusdock-v2725 .status-primary strong{
  color:var(--aim-status-text)!important;font-size:8.5px!important;font-weight:850!important;
}
body.arduino-page.arduino-focusdock-v2725 .status-context{
  min-width:0!important;
  min-height:34px!important;
  padding:0 10px!important;
  display:none!important;
  align-items:center!important;
  gap:8px!important;
  border:1px solid var(--aim-status-line)!important;
  border-radius:10px!important;
  background:var(--aim-status-bg)!important;
  box-shadow:0 8px 18px rgba(0,0,0,.12)!important;
  color:var(--aim-status-muted)!important;
  overflow:hidden!important;
}
body.arduino-page.arduino-focusdock-v2725.simulating .status-context{display:flex!important;max-width:min(360px,40vw)!important}
body.arduino-page.arduino-focusdock-v2725 .status-context #wirehint{display:none!important}
body.arduino-page.arduino-focusdock-v2725 .status-context .livebar{
  display:flex!important;align-items:center!important;gap:7px!important;min-width:0!important;
}
body.arduino-page.arduino-focusdock-v2725 .status-context #readings{
  min-width:0!important;max-width:230px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
  color:#c4dadd!important;font-size:7.7px!important;
}
body.arduino-page.arduino-focusdock-v2725 .status-context #sound{
  min-width:auto!important;height:24px!important;padding:0 8px!important;border-radius:7px!important;
  border:1px solid #32636c!important;background:#0c4a54!important;color:#cde6e7!important;font-size:7px!important;
}
body.arduino-page.arduino-focusdock-v2725 .status-metrics{
  margin-left:auto!important;
  min-height:34px!important;
  padding:4px 5px 4px 8px!important;
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  border:1px solid var(--aim-status-line)!important;
  border-radius:10px!important;
  background:var(--aim-status-bg)!important;
  box-shadow:0 8px 18px rgba(0,0,0,.14)!important;
  white-space:nowrap!important;
}
body.arduino-page.arduino-focusdock-v2725 .status-metrics>span{
  min-height:24px!important;padding:0 7px!important;border:1px solid rgba(104,157,166,.18)!important;border-radius:7px!important;
  display:flex!important;align-items:center!important;background:rgba(255,255,255,.035)!important;color:#aac5ca!important;font-size:7.4px!important;
}
body.arduino-page.arduino-focusdock-v2725 .status-metrics #clock{margin:0!important;font:750 7.4px/1 ui-monospace,SFMono-Regular,Consolas,monospace!important;color:#c6dadd!important}
body.arduino-page.arduino-focusdock-v2725 .status-metrics #check{
  height:26px!important;min-height:26px!important;min-width:58px!important;padding:0 9px!important;
  border-radius:7px!important;border:1px solid #b9dfe0!important;background:#f7ffff!important;color:#075963!important;font-size:7.5px!important;font-weight:900!important;
  box-shadow:none!important;
}
body.arduino-page.arduino-focusdock-v2725 .status-metrics #check:hover{background:#e9fbfb!important;border-color:#83c5c7!important}

/* Zoom cluster remains a separate fixed HUD at far right. */
body.arduino-page.arduino-focusdock-v2725 .aim-workbench-hud .canvas-tools--zoom{right:14px!important;bottom:12px!important}

/* Focus button is always a compact icon, never a wide text button. */
body.arduino-page.arduino-focusdock-v2725 #focusbench{
  width:38px!important;min-width:38px!important;padding:0!important;font-size:0!important;
}
body.arduino-page.arduino-focusdock-v2725 #focusbench::after{content:'⛶';font-size:13px!important}
body.arduino-page.arduino-focusdock-v2725.arduino-workbench-focus-v2725 #focusbench::after{content:'↙';font-size:14px!important}

@media(max-width:1350px) and (min-width:1100px){
  body.arduino-page.arduino-focusdock-v2725 .aim-workbench-hud .studio-status{right:154px!important}
  body.arduino-page.arduino-focusdock-v2725 .status-context{display:none!important}
}

@media(max-width:1099px){
  body.arduino-page.arduino-focusdock-v2725 #ideDockToggle{top:58px;right:8px;border-right:1px solid #285865;border-radius:9px}
  body.arduino-page.arduino-focusdock-v2725.arduino-ide-collapsed-v2725 .workzone{grid-template-rows:minmax(500px,62vh)!important}
  body.arduino-page.arduino-focusdock-v2725.arduino-ide-collapsed-v2725 #inspector{display:none!important}
  body.arduino-page.arduino-focusdock-v2725 .aim-workbench-hud .studio-status{left:9px!important;right:138px!important;bottom:9px!important}
  body.arduino-page.arduino-focusdock-v2725 .status-context{display:none!important}
}

@media(max-width:700px){
  body.arduino-page.arduino-focusdock-v2725 .status-metrics>span:first-child{display:none!important}
  body.arduino-page.arduino-focusdock-v2725 .status-primary{max-width:150px!important;overflow:hidden!important}
  body.arduino-page.arduino-focusdock-v2725 .status-primary strong{overflow:hidden;text-overflow:ellipsis}
  body.arduino-page.arduino-focusdock-v2725 #ideDockToggle{top:48px}
}


/* ===== SOURCE: labs/arduino/stability/responsive-catalog-hud-v027179.css ===== */
/* AIM STEM LAB v0.27.179 — refined General shelf alignment + collision-free responsive HUD */
body.arduino-page.arduino-responsive-v2729 .benchpanel{container-type:inline-size;}

/* Final Parts catalogue is authoritative and visible. */
body.arduino-page.arduino-responsive-v2729 #studioSidebar #drawer.aim-final-catalog-v2729{display:grid!important;gap:3px!important;min-height:0!important;overflow:visible!important;}
body.arduino-page.arduino-responsive-v2729 #studioSidebar #drawer.aim-final-catalog-v2729 .phase2-library-group{display:block!important;margin:0!important;}
body.arduino-page.arduino-responsive-v2729 #studioSidebar #drawer.aim-final-catalog-v2729 .phase2-library-group[hidden]{display:none!important;}
body.arduino-page.arduino-responsive-v2729 #studioSidebar #drawer.aim-final-catalog-v2729 .phase2-group-list{display:none!important;gap:7px!important;padding:2px 0 8px!important;}
body.arduino-page.arduino-responsive-v2729 #studioSidebar #drawer.aim-final-catalog-v2729 .phase2-library-group.is-open .phase2-group-list{display:grid!important;}
body.arduino-page.arduino-responsive-v2729 #studioSidebar #drawer.aim-final-catalog-v2729 .phase2-part-card{display:grid!important;grid-template-columns:58px minmax(0,1fr) 20px!important;align-items:center!important;min-height:58px!important;height:58px!important;padding:5px 8px!important;gap:8px!important;border:1px solid #255966!important;border-radius:10px!important;background:#0d3b47!important;color:#effafa!important;text-align:left!important;overflow:hidden!important;cursor:grab!important;}
body.arduino-page.arduino-responsive-v2729 #studioSidebar #drawer.aim-final-catalog-v2729 .phase2-part-card[hidden]{display:none!important;}
body.arduino-page.arduino-responsive-v2729 #studioSidebar #drawer.aim-final-catalog-v2729 .phase2-part-card:hover{background:#104754!important;border-color:#3a7883!important;transform:translateY(-1px)!important;}
body.arduino-page.arduino-responsive-v2729 #studioSidebar #drawer.aim-final-catalog-v2729 .catalog-thumb{position:relative!important;width:54px!important;height:46px!important;display:grid!important;place-items:center!important;border-radius:8px!important;background:#092f39!important;overflow:hidden!important;}
body.arduino-page.arduino-responsive-v2729 #studioSidebar #drawer.aim-final-catalog-v2729 .catalog-thumb>*{position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%) scale(.34)!important;transform-origin:center!important;}
body.arduino-page.arduino-responsive-v2729 #studioSidebar #drawer.aim-final-catalog-v2729 .catalog-copy{display:flex!important;flex-direction:column!important;min-width:0!important;gap:3px!important;}
body.arduino-page.arduino-responsive-v2729 #studioSidebar #drawer.aim-final-catalog-v2729 .catalog-copy strong{color:#fff!important;font-size:10px!important;line-height:1.15!important;white-space:normal!important;}
body.arduino-page.arduino-responsive-v2729 #studioSidebar #drawer.aim-final-catalog-v2729 .catalog-copy small{display:block!important;color:#8fb0b8!important;font-size:7.1px!important;line-height:1.25!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
body.arduino-page.arduino-responsive-v2729 #studioSidebar #drawer.aim-final-catalog-v2729 .phase2-card-more{color:#a9c9cd!important;font-size:17px!important;justify-self:center!important;pointer-events:none!important;}
body.arduino-page.arduino-responsive-v2729 #studioSidebar .sidebar-pane[data-left-pane="parts"]{overflow-y:auto!important;overflow-x:hidden!important;scrollbar-gutter:stable!important;}
body.arduino-page.arduino-responsive-v2729 #studioSidebar .aim-final-filter-v2729{position:sticky;top:0;z-index:4;background:#073a45;padding:5px 0 8px!important;}

/* Bottom controls are four independent HUD instruments, never one flex strip. */
body.arduino-page.arduino-responsive-v2729 .aim-workbench-hud .studio-status{position:static!important;display:contents!important;margin:0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;}
body.arduino-page.arduino-responsive-v2729 .aim-workbench-hud .status-primary{position:absolute!important;left:12px!important;bottom:12px!important;margin:0!important;z-index:6!important;max-width:210px!important;}
body.arduino-page.arduino-responsive-v2729 .aim-workbench-hud .status-context{position:absolute!important;left:calc(12px + 220px)!important;bottom:12px!important;margin:0!important;z-index:6!important;max-width:min(320px,30cqw)!important;}
body.arduino-page.arduino-responsive-v2729 .aim-workbench-hud .status-metrics{position:absolute!important;right:194px!important;bottom:12px!important;margin:0!important;z-index:7!important;min-height:38px!important;height:38px!important;padding:4px 5px 4px 7px!important;}
body.arduino-page.arduino-responsive-v2729 .aim-workbench-hud .canvas-tools--zoom{position:absolute!important;right:12px!important;bottom:12px!important;left:auto!important;top:auto!important;z-index:7!important;display:grid!important;grid-template-columns:36px 48px 36px 36px!important;gap:4px!important;align-items:center!important;width:168px!important;min-width:168px!important;height:38px!important;padding:3px!important;}
body.arduino-page.arduino-responsive-v2729 .aim-workbench-hud .canvas-tools--zoom button{width:36px!important;min-width:36px!important;height:32px!important;min-height:32px!important;padding:0!important;}
body.arduino-page.arduino-responsive-v2729 .aim-workbench-hud .canvas-tools--zoom #zoomlevel{width:48px!important;min-width:48px!important;text-align:center!important;}
body.arduino-page.arduino-responsive-v2729 .aim-workbench-hud .canvas-tools--zoom #fit{font-size:0!important;}
body.arduino-page.arduino-responsive-v2729 .aim-workbench-hud .canvas-tools--zoom #fit::after{content:'⛶';font-size:12px!important;}

/* Bench-width responsive guardrails: these react when IDE/sidebar resizing changes
   the actual engineering-workbench width, even if the browser window does not change. */
body.arduino-page.arduino-responsive-v2729 .benchpanel.aim-bench-compact-v2729 .status-context{display:none!important;}
body.arduino-page.arduino-responsive-v2729 .benchpanel.aim-bench-compact-v2729 .status-metrics{right:186px!important;}
body.arduino-page.arduino-responsive-v2729 .benchpanel.aim-bench-narrow-v2729 .status-context{display:none!important;}
body.arduino-page.arduino-responsive-v2729 .benchpanel.aim-bench-narrow-v2729 .status-primary{left:9px!important;bottom:9px!important;max-width:160px!important;}
body.arduino-page.arduino-responsive-v2729 .benchpanel.aim-bench-narrow-v2729 .status-primary strong{max-width:118px!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;}
body.arduino-page.arduino-responsive-v2729 .benchpanel.aim-bench-narrow-v2729 .status-metrics{right:9px!important;bottom:54px!important;height:34px!important;min-height:34px!important;}
body.arduino-page.arduino-responsive-v2729 .benchpanel.aim-bench-narrow-v2729 .status-metrics>span:first-child{display:none!important;}
body.arduino-page.arduino-responsive-v2729 .benchpanel.aim-bench-narrow-v2729 .aim-workbench-hud .canvas-tools--zoom{right:9px!important;bottom:9px!important;width:156px!important;min-width:156px!important;grid-template-columns:34px 42px 34px 34px!important;}

@container (max-width: 620px){
  body.arduino-page.arduino-responsive-v2729 .aim-workbench-hud .canvas-label{max-width:185px!important;overflow:hidden!important;white-space:nowrap!important;}
  body.arduino-page.arduino-responsive-v2729 .aim-workbench-hud #aimWireCard{max-width:185px!important;}
}

@media(max-width:760px){
  body.arduino-page.arduino-responsive-v2729 #studioSidebar{width:min(315px,90vw)!important;max-width:90vw!important;}
  body.arduino-page.arduino-responsive-v2729 #studioSidebar #drawer.aim-final-catalog-v2729 .phase2-part-card{grid-template-columns:52px minmax(0,1fr) 18px!important;}
}

/* v0.27.179 — General / Starter Essentials shelf.
   The quick-access shelf stays compact, but the copy now follows a cleaner hierarchy:
   stronger title alignment, clearer descriptions and a more deliberate beginner-first order. */
body.arduino-page.arduino-starter-shelf-v027178 #studioSidebar #drawer.aim-final-catalog-v2729 .phase2-library-group[data-starter="true"]{
  margin:3px 0 6px!important;padding:8px!important;border:1px solid rgba(185,234,47,.22)!important;
  border-radius:14px!important;background:linear-gradient(180deg,rgba(14,69,79,.94),rgba(8,54,64,.94))!important;
  box-shadow:inset 3px 0 #a9df2b!important;
}
body.arduino-page.arduino-starter-shelf-v027178 #studioSidebar #drawer.aim-final-catalog-v2729 .phase2-library-group[data-starter="true"] .phase2-group-head{
  min-height:40px!important;padding:0 4px 4px!important;grid-template-columns:18px minmax(0,1fr) auto 16px!important;align-items:start!important;
}
body.arduino-page.arduino-starter-shelf-v027178 #studioSidebar .phase2-group-title{display:flex!important;flex-direction:column!important;align-items:flex-start!important;min-width:0!important;gap:2px!important;padding-top:1px!important;}
body.arduino-page.arduino-starter-shelf-v027178 #studioSidebar .phase2-group-title strong{font-size:10.5px!important;line-height:1.08!important;color:#fff!important;letter-spacing:.01em!important;text-align:left!important;}
body.arduino-page.arduino-starter-shelf-v027178 #studioSidebar .phase2-group-title small{font-size:7.1px!important;line-height:1.15!important;color:#a7c7cc!important;font-weight:700!important;letter-spacing:.02em!important;text-align:left!important;}
body.arduino-page.arduino-starter-shelf-v027178 #studioSidebar #drawer.aim-final-catalog-v2729 .phase2-library-group[data-starter="true"] .phase2-group-count{
  color:#1b3513!important;background:#b9ea2f!important;font-weight:900!important;
}
body.arduino-page.arduino-starter-shelf-v027178 #studioSidebar #drawer.aim-final-catalog-v2729 .phase2-library-group[data-starter="true"].is-open .phase2-group-list{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;padding:4px 0 2px!important;align-items:stretch!important;
}
body.arduino-page.arduino-starter-shelf-v027178 #studioSidebar #drawer.aim-final-catalog-v2729 .phase2-library-group[data-starter="true"] .phase2-part-card{
  grid-template-columns:38px minmax(0,1fr) 16px!important;min-width:0!important;min-height:58px!important;height:58px!important;
  align-items:start!important;padding:6px 6px!important;gap:6px!important;border-radius:10px!important;background:#0a3944!important;border-color:#285d68!important;
}
body.arduino-page.arduino-starter-shelf-v027178 #studioSidebar #drawer.aim-final-catalog-v2729 .phase2-library-group[data-starter="true"] .phase2-part-card:hover{
  background:#0e4652!important;border-color:#5e929a!important;
}
body.arduino-page.arduino-starter-shelf-v027178 #studioSidebar #drawer.aim-final-catalog-v2729 .phase2-library-group[data-starter="true"] .catalog-thumb{
  width:36px!important;height:42px!important;border-radius:8px!important;align-self:center!important;
}
body.arduino-page.arduino-starter-shelf-v027178 #studioSidebar #drawer.aim-final-catalog-v2729 .phase2-library-group[data-starter="true"] .catalog-thumb>*{
  transform:translate(-50%,-50%) scale(.25)!important;
}
body.arduino-page.arduino-starter-shelf-v027178 #studioSidebar #drawer.aim-final-catalog-v2729 .phase2-library-group[data-starter="true"] .catalog-copy{
  display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:flex-start!important;min-width:0!important;gap:3px!important;
}
body.arduino-page.arduino-starter-shelf-v027178 #studioSidebar #drawer.aim-final-catalog-v2729 .phase2-library-group[data-starter="true"] .catalog-copy strong{
  font-size:9px!important;line-height:1.14!important;white-space:normal!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important;min-height:20px!important;text-align:left!important;
}
body.arduino-page.arduino-starter-shelf-v027178 #studioSidebar #drawer.aim-final-catalog-v2729 .phase2-library-group[data-starter="true"] .catalog-copy small{
  font-size:6.5px!important;line-height:1.18!important;white-space:normal!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important;min-height:15px!important;text-align:left!important;color:#9fc1c7!important;
}
body.arduino-page.arduino-starter-shelf-v027178 #studioSidebar #drawer.aim-final-catalog-v2729 .phase2-library-group[data-starter="true"] .phase2-card-info{
  width:16px!important;height:16px!important;font-size:8px!important;align-self:start!important;justify-self:end!important;margin-top:1px!important;
}
body.arduino-page.arduino-starter-shelf-v027178.sidebar-collapsed #studioSidebar #drawer.aim-final-catalog-v2729 .phase2-library-group[data-starter="true"]{
  padding:4px!important;border-radius:10px!important;box-shadow:none!important;
}
body.arduino-page.arduino-starter-shelf-v027178.sidebar-collapsed #studioSidebar #drawer.aim-final-catalog-v2729 .phase2-library-group[data-starter="true"].is-open .phase2-group-list{
  grid-template-columns:1fr!important;
}
@media(max-width:760px){
  body.arduino-page.arduino-starter-shelf-v027178 #studioSidebar #drawer.aim-final-catalog-v2729 .phase2-library-group[data-starter="true"].is-open .phase2-group-list{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}

/* v0.27.179 — General quick-access cards should stay clean.
   Remove the TEST/CIRCUIT runtime badge from the starter shelf only,
   because the badge competes with the part names in the compact 2-column layout. */
body.arduino-page.arduino-starter-shelf-v027179 #studioSidebar #drawer.aim-final-catalog-v2729 .phase2-library-group[data-starter="true"] .runtime-capability{
  display:none!important;
}


/* ===== SOURCE: labs/arduino/runtime/component-runtime-v2741.css ===== */
/* AIM STEM LAB v0.27.41 — Floating Component Test Bench */
body.arduino-page .aim-testbench{position:absolute;z-index:165;right:18px;bottom:72px;width:min(360px,calc(100% - 36px));max-height:min(600px,68%);display:none;flex-direction:column;background:#f8fbfb;color:#102f37;border:1px solid #a9c5ca;border-radius:14px;box-shadow:0 18px 48px rgba(0,20,28,.34);overflow:hidden;font-family:inherit;touch-action:none;will-change:left,top;transition:width .18s ease,max-height .18s ease,box-shadow .18s ease}
body.arduino-page .aim-testbench.is-open{display:flex}body.arduino-page .aim-testbench.is-collapsed{width:300px;max-width:calc(100% - 20px);height:58px;max-height:58px}.aim-testbench.is-collapsed .testbench-picker,.aim-testbench.is-collapsed .testbench-body{display:none!important}
.aim-testbench>header{height:58px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:10px 12px 10px 14px;background:#0b3a45;color:white;border-bottom:1px solid rgba(255,255,255,.12);cursor:grab;user-select:none;touch-action:none}.aim-testbench.is-dragging>header{cursor:grabbing}.aim-testbench.is-dragging{box-shadow:0 24px 58px rgba(0,20,28,.46)}.aim-testbench>header>div:first-child{display:flex;flex-direction:column;gap:2px}.aim-testbench .eyebrow{font-size:8px;letter-spacing:1.5px;color:#8ee7db;font-weight:900}.aim-testbench>header strong{font-size:14px}.aim-testbench .actions{display:flex;gap:6px}.aim-testbench .actions button{width:30px;height:30px;padding:0;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.08);color:#fff;border-radius:8px}
.aim-testbench .testbench-picker{display:flex;gap:8px;align-items:center;padding:9px 10px;border-bottom:1px solid #d4e3e6;background:#eff7f7}.aim-testbench .testbench-picker select{min-width:0;flex:1;height:34px;border:1px solid #b7cdd1;border-radius:8px;background:#fff;padding:0 9px;font-size:11px;font-weight:700;color:#173c44}.aim-testbench .run-badge{flex:none;border-radius:999px;padding:6px 8px;font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.5px;background:#dfeaec;color:#4a6b72}.aim-testbench .run-badge.running{background:#dcfce7;color:#166534}.aim-testbench .testbench-body{overflow:auto;overscroll-behavior:contain;background:#f8fbfb}.aim-testbench .component-head{display:flex;justify-content:space-between;align-items:flex-start;padding:14px 14px 10px}.aim-testbench .component-head small{font-size:8px;color:#0b8e86;font-weight:900;text-transform:uppercase;letter-spacing:1.2px}.aim-testbench .component-head h3{margin:3px 0 2px;font:800 17px Manrope,system-ui}.aim-testbench .component-head p{margin:0;color:#69868d;font-size:9px}.aim-testbench .component-head button{padding:7px 9px;font-size:9px;border-radius:8px;background:white;border:1px solid #bdd1d5}.aim-testbench .test-scroll{padding:0 14px 16px}.aim-testbench .metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(82px,1fr));gap:7px;margin-bottom:10px}.aim-testbench .metric{min-height:55px;border:1px solid #d1e0e3;border-radius:10px;background:#fff;padding:8px 9px;display:flex;flex-direction:column;justify-content:center}.aim-testbench .metric small{font-size:7px;color:#6a858b;text-transform:uppercase;letter-spacing:.7px;font-weight:900}.aim-testbench .metric strong{font-size:13px;margin-top:3px;color:#10333b;overflow:hidden;text-overflow:ellipsis}.aim-testbench .test-control{display:grid;gap:6px;margin:10px 0;padding:10px;border:1px solid #d3e1e4;background:white;border-radius:10px}.aim-testbench .test-control>span{display:flex;justify-content:space-between;gap:10px;font-size:10px;font-weight:800}.aim-testbench .test-control output{color:#0f8f87;font-weight:900}.aim-testbench .test-control input[type=range]{width:100%;accent-color:#0faaa0}.aim-testbench .test-control.compact>div{display:flex;align-items:center;gap:5px}.aim-testbench input[type=number],.aim-testbench input[type=text],.aim-testbench input[type=datetime-local],.aim-testbench textarea,.aim-testbench select{width:100%;border:1px solid #bcd1d5;border-radius:7px;padding:7px 8px;background:#fff;color:#16383f;font-size:10px}.aim-testbench textarea{min-height:70px;resize:vertical}.aim-testbench em{font-style:normal;font-size:9px;color:#6d878d}.aim-testbench .preset-row,.aim-testbench .grid2{display:grid;grid-template-columns:repeat(auto-fit,minmax(76px,1fr));gap:6px;margin:8px 0}.aim-testbench button{border:1px solid #b9ced2;background:#fff;color:#173941;border-radius:8px;padding:8px 9px;font-size:9px;font-weight:800;cursor:pointer}.aim-testbench button:hover{background:#ebf7f6;border-color:#74b9b3}.aim-testbench button.primary{background:#0f9c94;color:white;border-color:#0f9c94}.aim-testbench button.secondary{width:100%;margin-top:7px}.aim-testbench .stimulus{width:100%;font-size:11px;padding:10px}.aim-testbench .joypad{display:grid;grid-template-columns:repeat(3,44px);justify-content:center;gap:5px}.aim-testbench .joypad button{height:38px;font-size:15px;padding:0}.aim-testbench .bit-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:4px;margin:8px 0}.aim-testbench .bit-grid button{padding:5px 2px;display:flex;flex-direction:column;align-items:center;gap:3px;color:#789097}.aim-testbench .bit-grid button strong{font-size:12px}.aim-testbench .bit-grid button.on{background:#d9fbf4;border-color:#31bca9;color:#087b70}.aim-testbench .keypad-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.aim-testbench .keypad-grid button{font-size:12px}.aim-testbench .remote-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.aim-testbench .remote-grid button{padding:7px 2px;font-size:8px}.aim-testbench .color-control{display:flex;align-items:center;justify-content:space-between;border:1px solid #d2e1e4;background:#fff;border-radius:10px;padding:9px 10px;font-size:10px;font-weight:800}.aim-testbench input[type=color]{width:50px;height:30px;border:0;background:transparent}.aim-testbench .logic-lines{display:grid;grid-template-columns:repeat(2,1fr);gap:5px}.aim-testbench .logic-lines>div{display:flex;justify-content:space-between;border:1px solid #d4e2e5;border-radius:8px;background:#fff;padding:8px}.aim-testbench .logic-lines strong{font-size:9px}.aim-testbench .logic-lines .high{color:#16a34a}.aim-testbench .logic-lines .low{color:#64748b}.aim-testbench .physical-note{display:flex;gap:8px;align-items:flex-start;margin-top:12px;padding:9px 10px;border-radius:10px;background:#edf9f7;color:#3a6268}.aim-testbench .physical-note>span{color:#0f9c94;font-size:18px}.aim-testbench .physical-note p{margin:0;font-size:8.5px;line-height:1.45}.aim-testbench .test-empty{padding:22px;text-align:center;color:#668187;font-size:11px}
.aim-testbench.is-collapsed>header{border-bottom:0}.aim-testbench.is-collapsed>header strong{font-size:13px}.aim-testbench.is-collapsed .eyebrow{font-size:7px}.aim-testbench.is-collapsed .actions button{width:32px;height:32px}.aim-testbench.is-collapsed{background:#0b3a45;color:#fff;border-color:rgba(120,206,198,.45);box-shadow:0 12px 28px rgba(0,20,28,.28)}
body.arduino-page .part .aim-component-runtime-overlay{position:absolute;left:50%;top:100%;transform:translate(-50%,5px);z-index:8;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:4px 7px;border-radius:6px;background:rgba(2,25,32,.88);border:1px solid rgba(110,199,190,.38);color:var(--overlay-color,#e6fbf7);font-size:7px;font-weight:800;letter-spacing:.2px;pointer-events:none;box-shadow:0 4px 12px rgba(0,0,0,.18)}body.arduino-page .part.aim-runtime-active{filter:drop-shadow(0 0 9px rgba(104,255,171,.32))}.aim-test-locate{animation:aimRuntimeLocate .32s ease-in-out 3 alternate}@keyframes aimRuntimeLocate{to{filter:drop-shadow(0 0 14px #b6f02b) brightness(1.08)}}
@media(max-width:1100px){body.arduino-page .aim-testbench{right:10px;bottom:64px;width:min(330px,calc(100% - 20px));max-height:60%}}@media(max-width:760px){body.arduino-page .aim-testbench{position:fixed;left:8px;right:8px;bottom:8px;width:auto;max-height:70vh;z-index:300}.aim-testbench.is-collapsed{left:auto;width:min(300px,calc(100vw - 16px))}.aim-testbench .metrics{grid-template-columns:repeat(2,1fr)}}
body.arduino-page .runtime-capability{position:absolute;right:28px;top:8px;padding:3px 5px;border-radius:999px;font-size:6px;line-height:1;font-weight:900;letter-spacing:.45px;pointer-events:none}.runtime-capability.is-testable{background:#d9fbf4;color:#087b70;border:1px solid #83d7ca}.runtime-capability.is-passive{background:#e8eef0;color:#667b81;border:1px solid #cbd8db}


/* ===== SOURCE: labs/arduino/runtime/component-testbench-compact-v027151.css ===== */
/* AIM STEM LAB v0.27.151 — compact professional Component Test Bench */
body.arduino-page .aim-testbench{
  width:min(324px,calc(100% - 32px));
  max-height:min(510px,60%);
  right:16px;
  bottom:70px;
  border-radius:12px;
}
body.arduino-page .aim-testbench>header{
  height:50px;
  padding:8px 10px 8px 12px;
}
body.arduino-page .aim-testbench .eyebrow{font-size:7px;letter-spacing:1.25px}
body.arduino-page .aim-testbench>header strong{font-size:13px}
body.arduino-page .aim-testbench .actions{gap:5px}
body.arduino-page .aim-testbench .actions button{width:28px;height:28px;border-radius:7px}
body.arduino-page .aim-testbench .testbench-picker{gap:7px;padding:8px 9px}
body.arduino-page .aim-testbench .testbench-picker select{height:32px;padding:0 8px;font-size:10px}
body.arduino-page .aim-testbench .run-badge{padding:5px 7px;font-size:7px}
body.arduino-page .aim-testbench .testbench-body{
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  -webkit-overflow-scrolling:touch;
}
body.arduino-page .aim-testbench .testbench-body::-webkit-scrollbar{width:6px}
body.arduino-page .aim-testbench .testbench-body::-webkit-scrollbar-track{background:transparent}
body.arduino-page .aim-testbench .testbench-body::-webkit-scrollbar-thumb{background:#bfd0d3;border-radius:999px}
body.arduino-page .aim-testbench .component-head{padding:11px 11px 8px}
body.arduino-page .aim-testbench .component-head small{font-size:7px}
body.arduino-page .aim-testbench .component-head h3{margin:2px 0;font-size:15px}
body.arduino-page .aim-testbench .component-head p{font-size:8px}
body.arduino-page .aim-testbench .component-head button{padding:6px 8px;font-size:8px}
body.arduino-page .aim-testbench .test-scroll{padding:0 11px 12px}
body.arduino-page .aim-testbench .metrics{grid-template-columns:repeat(auto-fit,minmax(74px,1fr));gap:6px;margin-bottom:8px}
body.arduino-page .aim-testbench .metric{min-height:48px;padding:7px 8px;border-radius:9px}
body.arduino-page .aim-testbench .metric small{font-size:6.5px}
body.arduino-page .aim-testbench .metric strong{font-size:12px;margin-top:2px}
body.arduino-page .aim-testbench .test-control{gap:5px;margin:8px 0;padding:8px;border-radius:9px}
body.arduino-page .aim-testbench .test-control>span{font-size:9px}
body.arduino-page .aim-testbench input[type=number],
body.arduino-page .aim-testbench input[type=text],
body.arduino-page .aim-testbench input[type=datetime-local],
body.arduino-page .aim-testbench textarea,
body.arduino-page .aim-testbench select{font-size:9px;padding:6px 7px}
body.arduino-page .aim-testbench textarea{min-height:58px}
body.arduino-page .aim-testbench em{font-size:8px}
body.arduino-page .aim-testbench .preset-row,
body.arduino-page .aim-testbench .grid2{gap:5px;margin:6px 0}
body.arduino-page .aim-testbench button{padding:7px 8px;font-size:8px;border-radius:7px}
body.arduino-page .aim-testbench .stimulus{font-size:10px;padding:8px}
body.arduino-page .aim-testbench .physical-note{margin-top:9px;padding:8px;border-radius:9px}
body.arduino-page .aim-testbench .physical-note>span{font-size:16px}
body.arduino-page .aim-testbench .physical-note p{font-size:8px}
body.arduino-page .aim-testbench .test-empty{padding:18px;font-size:10px}
body.arduino-page .aim-testbench.is-collapsed{
  width:270px;
  height:50px;
  max-height:50px;
}
body.arduino-page .aim-testbench.is-collapsed>header strong{font-size:12px}
body.arduino-page .aim-testbench.is-collapsed .actions button{width:28px;height:28px}
@media(max-width:1100px){
  body.arduino-page .aim-testbench{
    right:10px;
    bottom:62px;
    width:min(304px,calc(100% - 20px));
    max-height:58%;
  }
}
@media(max-width:760px){
  body.arduino-page .aim-testbench{
    left:8px;
    right:8px;
    bottom:8px;
    width:auto;
    max-height:62vh;
  }
  body.arduino-page .aim-testbench.is-collapsed{left:auto;width:min(270px,calc(100vw - 16px))}
}


/* ===== SOURCE: labs/arduino/runtime/piezo-audio-control-v027180.css ===== */
/* AIM STEM LAB v0.27.180 — contextual piezo/buzzer audio control */
body.arduino-page #sound[hidden]{display:none!important;}
body.arduino-page #sound{white-space:nowrap!important;}
body.arduino-page #sound.is-tone-active{
  border-color:#39bdb0!important;
  color:#e8fffb!important;
  box-shadow:0 0 0 1px rgba(57,189,176,.16)!important;
}
body.arduino-page #sound.is-muted{opacity:.82!important;}


/* ===== SOURCE: labs/arduino/runtime/component-behaviour-v027142.css ===== */
/* AIM STEM LAB v0.27.142 — visual state helpers for extended Arduino components */
.partwrap .aim-v142-state{position:absolute;left:50%;bottom:-21px;transform:translateX(-50%);z-index:8;max-width:210px;padding:3px 7px;border-radius:7px;background:rgba(5,28,36,.92);border:1px solid rgba(255,255,255,.13);color:#dbeafe;font:700 8px/1.2 system-ui,sans-serif;letter-spacing:.02em;white-space:nowrap;pointer-events:none;box-shadow:0 5px 14px rgba(0,0,0,.18)}
.partwrap .aim-v142-state[data-state="active"]{border-color:rgba(34,197,94,.48);color:#dcfce7}
.partwrap.aim-v142-active{--aim-runtime-glow:rgba(34,197,94,.38)}
.partwrap.aim-v142-active>.partbox,.partwrap.aim-v142-active>.component,.partwrap.aim-v142-active>wokwi-*{filter:drop-shadow(0 0 8px var(--aim-runtime-glow))}
.aim-v142-test .aim-v142-note{margin:10px 0;padding:10px 11px;border-radius:10px;background:#f8fafc;border:1px solid #e2e8f0;color:#475569;font-size:12px;line-height:1.45}
.aim-v142-switch-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(68px,1fr));gap:8px;margin:10px 0}
.aim-v142-switch-grid button{min-height:54px;border:1px solid #d8e0e7;border-radius:11px;background:#fff;color:#334155;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;cursor:pointer}
.aim-v142-switch-grid button.on{border-color:#991b2f;background:#fff6f7;color:#991b2f}
.aim-v142-switch-grid button small{font-size:9px;font-weight:800;letter-spacing:.06em}.aim-v142-switch-grid button strong{font-size:12px}
@media(max-width:780px){.partwrap .aim-v142-state{font-size:7px;bottom:-18px;max-width:160px}.aim-v142-test .metrics{grid-template-columns:1fr 1fr}}


/* ===== SOURCE: labs/arduino/learn/project-learn-v2743.css ===== */
/* AIM STEM LAB v0.27.43 — responsive, readable, brand-aligned project learning */
body.arduino-page.arduino-learn-v2743{
  --pcl-brand:#8a1020;
  --pcl-brand-deep:#650b16;
  --pcl-brand-soft:#fff5f6;
  --pcl-teal:#0a8587;
  --pcl-teal-deep:#0a6268;
  --pcl-ink:#153942;
  --pcl-copy:#547079;
  --pcl-muted:#789097;
  --pcl-line:#d6e4e7;
  --pcl-paper:#ffffff;
  --pcl-soft:#f5f9fa;
}

/* Learn owns its own scroll area. Container queries let the content respond to
   the actual inspector width, not only to the browser viewport. */
body.arduino-page.arduino-learn-v2743 .learn-pane{
  container-type:inline-size;
  overflow:auto!important;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  scroll-padding-top:14px;
  padding:clamp(10px,2.2cqw,18px)!important;
  background:linear-gradient(180deg,#f7fafb 0%,#f1f6f7 100%)!important;
  color:var(--pcl-ink);
}

/* Brand continuity: use AIM red as a restrained learning accent while the
   engineering controls retain their established teal functional colour. */
body.arduino-page.arduino-learn-v2743 [data-studio-tab="learn"][aria-selected="true"]{
  color:var(--pcl-brand)!important;
  background:linear-gradient(180deg,#fff 0%,#fff8f9 100%)!important;
  box-shadow:inset 0 -3px var(--pcl-brand)!important;
}
body.arduino-page.arduino-learn-v2743 [data-studio-tab="learn"][aria-selected="true"] span{
  color:var(--pcl-brand)!important;
}

body.arduino-page .project-component-learning{
  position:relative;
  margin:0 0 16px;
  border:1px solid var(--pcl-line);
  border-radius:18px;
  background:var(--pcl-paper);
  box-shadow:0 12px 32px rgba(16,48,57,.07);
  overflow:hidden;
}
body.arduino-page .project-component-learning::before{
  content:"";
  position:absolute;
  z-index:2;
  left:0;right:0;top:0;
  height:3px;
  background:linear-gradient(90deg,var(--pcl-brand) 0 34%,var(--pcl-teal) 34% 100%);
}

body.arduino-page .pcl-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:clamp(14px,2.5cqw,24px);
  padding:clamp(18px,3cqw,26px) clamp(18px,3.2cqw,28px) clamp(16px,2.6cqw,22px);
  border-bottom:1px solid #e4edef;
  background:linear-gradient(180deg,#fff 0%,#fcfdfd 100%);
}
body.arduino-page .pcl-head>div:first-child{min-width:0}
body.arduino-page .pcl-head .eyebrow{
  display:inline-flex;
  align-items:center;
  gap:7px;
  font-size:11px;
  line-height:1.2;
  letter-spacing:1.25px;
  font-weight:900;
  color:var(--pcl-brand);
}
body.arduino-page .pcl-head .eyebrow::before{
  content:"";
  width:8px;height:8px;
  border-radius:2px;
  background:var(--pcl-brand);
  box-shadow:10px 0 0 rgba(138,16,32,.28);
  margin-right:9px;
}
body.arduino-page .pcl-head h2{
  margin:7px 0 7px;
  font-size:clamp(20px,3.1cqw,27px);
  line-height:1.16;
  letter-spacing:-.45px;
  color:#102f38;
}
body.arduino-page .pcl-head p{
  margin:0;
  max-width:680px;
  font-size:clamp(12.5px,1.65cqw,14.5px);
  line-height:1.62;
  color:var(--pcl-copy);
}
body.arduino-page .pcl-head-meta{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:8px;
  min-width:118px;
  padding-top:1px;
}
body.arduino-page .pcl-project{
  max-width:170px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:#385c64;
  font-size:10.5px;
  font-weight:800;
}
body.arduino-page .pcl-count{
  padding:6px 10px;
  border:1px solid #d1e5e5;
  border-radius:999px;
  background:#edf8f7;
  color:var(--pcl-teal-deep);
  font-size:10.5px;
  font-weight:900;
  white-space:nowrap;
}

body.arduino-page .pcl-route{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  padding:10px clamp(14px,2.5cqw,22px);
  background:#f7fafb;
  border-bottom:1px solid #e2ecee;
  color:#587178;
  font-size:11px;
  font-weight:800;
}
body.arduino-page .pcl-route span{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  white-space:nowrap;
}
body.arduino-page .pcl-route i{
  display:grid;
  place-items:center;
  width:24px;height:24px;
  flex:none;
  border-radius:50%;
  border:1px solid #cce3e2;
  background:#e8f5f3;
  color:var(--pcl-teal-deep);
  font-style:normal;
  font-size:10px;
  font-weight:900;
}
body.arduino-page .pcl-route span:first-child i{
  border-color:#efc7cd;
  background:var(--pcl-brand-soft);
  color:var(--pcl-brand);
}

/* Fluid desktop split. The catalogue takes a percentage instead of a static
   158 px, and gives the explanation the majority of available width. */
body.arduino-page .pcl-layout{
  display:grid;
  grid-template-columns:minmax(190px,30%) minmax(0,1fr);
  min-height:390px;
}
body.arduino-page .pcl-tabs{
  display:flex;
  flex-direction:column;
  gap:7px;
  min-width:0;
  padding:12px;
  background:#f7fafb;
  border-right:1px solid #e1ebed;
  overflow:auto;
  max-height:660px;
  scrollbar-width:thin;
  scrollbar-color:#b6c9ce transparent;
}
body.arduino-page .pcl-tab{
  position:relative;
  display:grid;
  grid-template-columns:40px minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  min-height:66px;
  padding:9px 10px;
  border:1px solid transparent;
  border-radius:12px;
  background:transparent;
  color:#315761;
  text-align:left;
  cursor:pointer;
  transition:background .16s ease,border-color .16s ease,box-shadow .16s ease,transform .16s ease;
}
body.arduino-page .pcl-tab:hover{
  background:#fff;
  border-color:#d9e6e8;
  transform:translateY(-1px);
}
body.arduino-page .pcl-tab:focus-visible{
  outline:3px solid rgba(10,133,135,.24);
  outline-offset:1px;
}
body.arduino-page .pcl-tab.is-active{
  background:#fff;
  border-color:#e3c9ce;
  box-shadow:0 5px 16px rgba(82,35,43,.07),inset 4px 0 var(--pcl-brand);
}
body.arduino-page .pcl-tab-icon{
  display:grid;
  place-items:center;
  width:40px;height:40px;
  border-radius:10px;
  background:#fff;
  border:1px solid #d5e5e7;
  color:var(--pcl-teal);
  font-size:17px;
  box-shadow:0 2px 7px rgba(18,59,68,.04);
}
body.arduino-page .pcl-tab.is-active .pcl-tab-icon{
  border-color:#eccbd1;
  background:var(--pcl-brand-soft);
  color:var(--pcl-brand);
}
body.arduino-page .pcl-tab b{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:12.5px;
  line-height:1.25;
  color:#173f49;
}
body.arduino-page .pcl-tab small{
  display:block;
  margin-top:3px;
  font-size:10.5px;
  line-height:1.25;
  color:#718991;
}
body.arduino-page .pcl-tab i{
  align-self:start;
  padding-top:2px;
  font-style:normal;
  font:700 9px/1 ui-monospace,monospace;
  color:#9cafb4;
}

body.arduino-page .pcl-detail{
  min-width:0;
  padding:clamp(18px,3cqw,28px);
  overflow:visible;
  background:#fff;
}
body.arduino-page .pcl-hero{
  display:grid;
  grid-template-columns:64px minmax(0,1fr);
  gap:15px;
  align-items:start;
}
body.arduino-page .pcl-icon{
  display:grid;
  place-items:center;
  width:64px;height:64px;
  border-radius:16px;
  background:linear-gradient(145deg,var(--pcl-brand),var(--pcl-brand-deep));
  color:#fff;
  font-size:25px;
  box-shadow:0 9px 20px rgba(101,11,22,.18);
}
body.arduino-page .pcl-kicker{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
body.arduino-page .pcl-kicker span{
  font-size:10.5px;
  font-weight:900;
  letter-spacing:1.05px;
  text-transform:uppercase;
  color:var(--pcl-brand);
}
body.arduino-page .pcl-kicker em{
  font-style:normal;
  font:700 9.5px/1.2 ui-monospace,monospace;
  color:#93a7ad;
}
body.arduino-page .pcl-hero h3{
  margin:4px 0 6px;
  font-size:clamp(20px,3cqw,27px);
  line-height:1.15;
  color:#102f38;
  letter-spacing:-.35px;
}
body.arduino-page .pcl-hero p{
  margin:0;
  max-width:70ch;
  font-size:clamp(12.5px,1.7cqw,14.5px);
  line-height:1.6;
  color:var(--pcl-copy);
}
body.arduino-page .pcl-badges{
  display:flex;
  gap:7px;
  flex-wrap:wrap;
  margin-top:9px;
}
body.arduino-page .pcl-badges span{
  padding:5px 8px;
  border:1px solid #dce8ea;
  border-radius:999px;
  background:#f5f9fa;
  color:#607b82;
  font-size:10.5px;
  line-height:1.2;
  font-weight:800;
}
body.arduino-page .pcl-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:15px 0 13px;
}
body.arduino-page .pcl-actions button,
body.arduino-page .pcl-section-head button{
  min-height:36px;
  padding:7px 11px;
  border-radius:9px;
  border:1px solid #c6dadd;
  background:#fff;
  color:#315d65;
  font-size:11.5px;
  line-height:1.2;
  font-weight:850;
  cursor:pointer;
}
body.arduino-page .pcl-actions button:first-child{
  border-color:#e2c8cd;
  color:#7d202e;
  background:#fffafb;
}
body.arduino-page .pcl-actions button:hover,
body.arduino-page .pcl-section-head button:hover{
  background:#edf7f6;
  border-color:#91c5c1;
  color:#0b6f6b;
}
body.arduino-page .pcl-actions button:first-child:hover{
  background:var(--pcl-brand-soft);
  border-color:#daaab3;
  color:var(--pcl-brand);
}
body.arduino-page .pcl-actions button:focus-visible,
body.arduino-page .pcl-section-head button:focus-visible,
body.arduino-page .pcl-code-lines button:focus-visible{
  outline:3px solid rgba(10,133,135,.22);
  outline-offset:2px;
}

body.arduino-page .pcl-project-use{
  margin:12px 0;
  padding:13px 14px;
  border:1px solid #d8e6e6;
  border-left:4px solid var(--pcl-teal);
  border-radius:11px;
  background:linear-gradient(90deg,#f2fbfa,#f8fcfc);
}
body.arduino-page .pcl-project-use small,
body.arduino-page .pcl-grid small,
body.arduino-page .pcl-section-head small{
  display:block;
  font-size:10px;
  line-height:1.25;
  font-weight:900;
  letter-spacing:.9px;
  color:#667f86;
}
body.arduino-page .pcl-project-use p{
  margin:6px 0 0;
  font-size:12.5px;
  line-height:1.58;
  color:#4e6c74;
}
body.arduino-page .pcl-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));
  gap:10px;
  margin:12px 0;
}
body.arduino-page .pcl-grid section{
  min-width:0;
  padding:13px;
  border-radius:11px;
  border:1px solid #dce8ea;
  background:#fbfcfc;
}
body.arduino-page .pcl-grid section:first-child small{color:var(--pcl-brand)}
body.arduino-page .pcl-grid p{
  margin:6px 0 0;
  font-size:12.5px;
  line-height:1.58;
  color:#526f77;
}
body.arduino-page .pcl-connections,
body.arduino-page .pcl-code-link{
  margin-top:11px;
  padding:13px;
  border:1px solid #dce8ea;
  border-radius:11px;
  background:#fff;
}
body.arduino-page .pcl-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:9px;
}
body.arduino-page .pcl-section-head strong{
  max-width:52%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:11px;
  color:#315a62;
}
body.arduino-page .pcl-wire-list{
  display:grid;
  gap:6px;
}
body.arduino-page .pcl-wire-list>div{
  display:grid;
  grid-template-columns:minmax(68px,.65fr) 18px minmax(0,1.35fr);
  gap:7px;
  align-items:center;
  padding:8px 9px;
  border-radius:8px;
  background:#f6f9fa;
  font-size:11.5px;
}
body.arduino-page .pcl-wire-list b{
  color:#0e6e72;
  overflow:hidden;
  text-overflow:ellipsis;
}
body.arduino-page .pcl-wire-list span{color:#95a8ad;text-align:center}
body.arduino-page .pcl-wire-list em{
  font-style:normal;
  color:#536f77;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body.arduino-page .pcl-code-lines{
  display:grid;
  gap:6px;
}
body.arduino-page .pcl-code-lines button{
  display:grid;
  grid-template-columns:40px minmax(0,1fr);
  align-items:stretch;
  width:100%;
  padding:0;
  border:1px solid #20374b;
  border-radius:9px;
  overflow:hidden;
  background:#0d1724;
  text-align:left;
  cursor:pointer;
}
body.arduino-page .pcl-code-lines button:hover{border-color:#2f819c}
body.arduino-page .pcl-code-lines button>span{
  height:100%;
  padding:9px 7px;
  text-align:right;
  background:#09131f;
  color:#647b91;
  font:500 10.5px/1.5 ui-monospace,monospace;
}
body.arduino-page .pcl-code-lines code{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:pre;
  padding:9px 10px;
  color:#d7e1eb;
  font:500 11.5px/1.5 "Cascadia Mono",Consolas,monospace;
}
body.arduino-page .pcl-empty{
  margin:0;
  color:#6f888f;
  font-size:12px;
  line-height:1.58;
}
body.arduino-page .pcl-no-parts{
  display:grid;
  gap:7px;
  place-items:center;
  min-height:220px;
  text-align:center;
  color:#70888f;
}
body.arduino-page .pcl-no-parts strong{font-size:17px;color:#315a62}
body.arduino-page .pcl-no-parts span{max-width:360px;font-size:12.5px;line-height:1.58}
body.arduino-page .pcl-locate{animation:pclLocate .34s ease-in-out 4 alternate!important}
@keyframes pclLocate{to{filter:drop-shadow(0 0 14px #b6f02b) brightness(1.12)}}

/* Bring the older learning cards up to the same readable scale so the full
   Learn tab feels like one coherent surface rather than two generations of UI. */
body.arduino-page.arduino-learn-v2743 .understandcard,
body.arduino-page.arduino-learn-v2743 .engineeringnote{
  border-radius:14px!important;
  border-color:#d8e5e8!important;
  padding:15px!important;
  box-shadow:0 7px 20px rgba(16,48,57,.05)!important;
}
body.arduino-page.arduino-learn-v2743 .understandcard .eyebrow,
body.arduino-page.arduino-learn-v2743 .engineeringnote .eyebrow{
  font-size:9.5px!important;
  letter-spacing:1px!important;
  color:var(--pcl-brand)!important;
}
body.arduino-page.arduino-learn-v2743 .understandcard h2,
body.arduino-page.arduino-learn-v2743 .engineeringnote h2{
  font-size:18px!important;
  line-height:1.25!important;
  color:#183a43!important;
}
body.arduino-page.arduino-learn-v2743 .understandcard p,
body.arduino-page.arduino-learn-v2743 .notebookprompt,
body.arduino-page.arduino-learn-v2743 .understandcard summary,
body.arduino-page.arduino-learn-v2743 .challenge p{
  font-size:12px!important;
  line-height:1.6!important;
}
body.arduino-page.arduino-learn-v2743 .engineeringnote textarea{
  font-size:12px!important;
  line-height:1.55!important;
  min-height:110px!important;
}
body.arduino-page.arduino-learn-v2743 .notebookactions button{
  min-height:34px!important;
  font-size:10.5px!important;
}
body.arduino-page.arduino-learn-v2743 .challenge{
  border-radius:12px!important;
  margin:11px 0!important;
  padding:12px 13px!important;
}
body.arduino-page.arduino-learn-v2743 .challenge strong{font-size:9.5px!important}

/* Inspector around 760 px or narrower: remove the vertical catalogue. The
   learner gets the full panel width and swipes/scrolls component cards across
   the top. This is the state shown by most laptop inspectors. */
@container (max-width:760px){
  body.arduino-page .pcl-layout{display:block;min-height:0}
  body.arduino-page .pcl-tabs{
    flex-direction:row;
    gap:8px;
    max-height:none;
    overflow-x:auto;
    overflow-y:hidden;
    border-right:0;
    border-bottom:1px solid #e1ebed;
    padding:10px 12px;
    scroll-snap-type:x proximity;
    scrollbar-width:thin;
  }
  body.arduino-page .pcl-tab{
    flex:0 0 clamp(164px,34cqw,210px);
    grid-template-columns:36px minmax(0,1fr);
    gap:9px;
    min-height:60px;
    padding:8px 9px;
    scroll-snap-align:start;
  }
  body.arduino-page .pcl-tab i{display:none}
  body.arduino-page .pcl-tab-icon{width:36px;height:36px;font-size:15px}
  body.arduino-page .pcl-tab.is-active{
    box-shadow:0 4px 14px rgba(82,35,43,.06),inset 0 -4px var(--pcl-brand);
  }
  body.arduino-page .pcl-detail{padding:clamp(16px,3.6cqw,24px)}
  body.arduino-page .pcl-route{font-size:10.5px}
}

@container (max-width:540px){
  body.arduino-page .pcl-head{display:block;padding:18px}
  body.arduino-page .pcl-head-meta{
    margin-top:12px;
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    min-width:0;
  }
  body.arduino-page .pcl-project{max-width:60%}
  body.arduino-page .pcl-route{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:5px;
    padding:9px 10px;
    font-size:9.5px;
  }
  body.arduino-page .pcl-route span{gap:5px;justify-content:center;text-align:center;white-space:normal}
  body.arduino-page .pcl-route i{width:22px;height:22px}
  body.arduino-page .pcl-hero{grid-template-columns:54px minmax(0,1fr);gap:12px}
  body.arduino-page .pcl-icon{width:54px;height:54px;border-radius:14px;font-size:21px}
  body.arduino-page .pcl-grid{grid-template-columns:1fr}
  body.arduino-page .pcl-actions button{flex:1 1 145px}
  body.arduino-page .pcl-section-head{align-items:flex-start;flex-wrap:wrap}
  body.arduino-page .pcl-section-head strong{max-width:100%}
  body.arduino-page .pcl-wire-list>div{grid-template-columns:minmax(58px,.55fr) 14px minmax(0,1.45fr)}
}

@container (max-width:390px){
  body.arduino-page .pcl-route span{font-size:0}
  body.arduino-page .pcl-route span::after{font-size:9px}
  body.arduino-page .pcl-route span:nth-child(1)::after{content:"Choose"}
  body.arduino-page .pcl-route span:nth-child(2)::after{content:"Trace"}
  body.arduino-page .pcl-route span:nth-child(3)::after{content:"Code"}
  body.arduino-page .pcl-tab{flex-basis:150px}
  body.arduino-page .pcl-hero{grid-template-columns:46px minmax(0,1fr)}
  body.arduino-page .pcl-icon{width:46px;height:46px;font-size:18px}
  body.arduino-page .pcl-kicker em{display:none}
  body.arduino-page .pcl-actions button{flex-basis:100%}
  body.arduino-page .pcl-code-lines button{grid-template-columns:34px minmax(0,1fr)}
  body.arduino-page .pcl-code-lines code{font-size:10.5px}
}

@media(prefers-reduced-motion:reduce){
  body.arduino-page .pcl-tab{transition:none}
  body.arduino-page .pcl-locate{animation:none!important;outline:3px solid #b6f02b!important}
}


/* ===== SOURCE: labs/arduino/design/brand-system-v2744.css ===== */
/* AIM STEM LAB v0.27.44 — lab-wide AIM brand continuity + Learn scroll repair */
body.arduino-page{
  --aim-brand-red:#8a1020;
  --aim-brand-red-deep:#650b16;
  --aim-brand-red-soft:#fff4f6;
  --aim-brand-ink:#171b1f;
  --aim-brand-red-line:rgba(138,16,32,.30);
}

/* Critical layout repair: the compact desktop shell previously forced every
   active inspector pane to overflow:hidden. Learn is content-first and must own
   the available dock height as its single vertical scroll surface. */
body.arduino-page.arduino-compact-v2723.arduino-learn-v2743 .inspector-body{
  min-height:0!important;
  overflow:hidden!important;
}
body.arduino-page.arduino-compact-v2723.arduino-learn-v2743 .learn-pane.is-active{
  display:block!important;
  height:100%!important;
  min-height:0!important;
  max-height:100%!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  overscroll-behavior-y:contain!important;
  scrollbar-gutter:stable!important;
  scrollbar-width:thin!important;
  scrollbar-color:var(--aim-brand-red) #e8f0f2!important;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-y;
  padding-bottom:56px!important;
}
body.arduino-page.arduino-compact-v2723.arduino-learn-v2743 .learn-pane.is-active::-webkit-scrollbar{width:10px}
body.arduino-page.arduino-compact-v2723.arduino-learn-v2743 .learn-pane.is-active::-webkit-scrollbar-track{background:#edf3f4}
body.arduino-page.arduino-compact-v2723.arduino-learn-v2743 .learn-pane.is-active::-webkit-scrollbar-thumb{background:var(--aim-brand-red);border:2px solid #edf3f4;border-radius:999px}
/* Top navigation: brand selection comes from the same red as the AIM mark. */
body.arduino-page .aim-nav nav a[aria-current=page]{
  background:linear-gradient(135deg,#b0172f,var(--aim-brand-red))!important;
  color:#fff!important;
  box-shadow:0 8px 18px rgba(138,16,32,.18)!important;
}
body.arduino-page .aim-nav nav a:hover{background:#fff7f8!important;color:var(--aim-brand-red)!important}
body.arduino-page .aim-version{color:#8a6b70!important}

/* Learning cycle: completed remains green; the current stage carries product identity. */
body.arduino-page.arduino-phase1-shell-v2714 .studio-progress .labpath__stage.is-active,
body.arduino-page.arduino-phase1-shell-v2714 .studio-progress .labpath__stage.active{
  border-bottom-color:var(--aim-brand-red)!important;
  color:#55232a!important;
  background:linear-gradient(180deg,#fff 0%,#fff6f7 100%)!important;
}
body.arduino-page.arduino-phase1-shell-v2714 .studio-progress .labpath__stage.is-active i,
body.arduino-page.arduino-phase1-shell-v2714 .studio-progress .labpath__stage.active i{
  background:var(--aim-brand-red)!important;
  color:#fff!important;
  box-shadow:0 0 0 4px rgba(138,16,32,.10),0 4px 12px rgba(101,11,22,.12)!important;
}

/* Left library: red identifies selection; teal remains a functional electronics colour. */
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .sidebar-tabs button[aria-selected=true]{
  background:#103f49!important;
  box-shadow:inset 0 -3px var(--aim-brand-red)!important;
}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .sidebar-tabs button[aria-selected=true] .phase2-tab-icon{color:#f2cbd0!important}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar #projects .phase2-project-card.active{
  background:linear-gradient(180deg,#11434d,#0d3943)!important;
  border-color:#8f5961!important;
  box-shadow:inset 3px 0 var(--aim-brand-red)!important;
}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar #projects .phase2-project-card.active .num{
  background:var(--aim-brand-red)!important;
  color:#fff!important;
}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .phase2-filter-row button.is-active{
  background:linear-gradient(180deg,#9d1728,#7f0f1d)!important;
  border-color:#b33a49!important;
  color:#fff!important;
  box-shadow:0 5px 12px rgba(82,7,17,.20)!important;
}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar .part-search input:focus{
  border-color:#b84856!important;
  box-shadow:0 0 0 3px rgba(138,16,32,.13)!important;
}
body.arduino-page.arduino-phase2-sidebar-v2715 #studioSidebar #drawer .phase2-part-card:hover{
  border-color:#8f5961!important;
}

/* Workbench: a subtle red identity thread, without changing signal/status colours. */
body.arduino-page.arduino-phase3-workbench-v2716 .canvas-label{
  border-color:rgba(173,76,88,.60)!important;
  box-shadow:0 9px 22px rgba(0,0,0,.14),inset 3px 0 var(--aim-brand-red)!important;
}
body.arduino-page.arduino-phase3-workbench-v2716 .canvas-label>span:first-child{color:#e4a0aa!important}
body.arduino-page.arduino-phase3-workbench-v2716 .bench-project-name{
  border-color:rgba(173,76,88,.46)!important;
}
body.arduino-page.arduino-phase3-workbench-v2716 .canvas-tools--top-left.aim-edit-tools button:hover:not(:disabled),
body.arduino-page.arduino-phase3-workbench-v2716 .canvas-tools--top-right button:hover{
  border-color:#9c5360!important;
  box-shadow:0 9px 22px rgba(0,0,0,.12),0 0 0 2px rgba(138,16,32,.10)!important;
}
body.arduino-page.arduino-prephase6-v2720 .workspace-splitter:hover>span,
body.arduino-page.arduino-prephase6-v2720 .workspace-splitter.is-resizing>span{
  background:var(--aim-brand-red)!important;
}

/* Right dock: every active tool, not only Learn, follows AIM brand identity. */
body.arduino-page.arduino-approved-v2713 .inspector-tabs button[aria-selected=true],
body.arduino-page.arduino-prephase6-v2720 .inspector-tabs button[aria-selected=true]{
  color:var(--aim-brand-red)!important;
  background:linear-gradient(180deg,#fff 0%,#fff7f8 100%)!important;
  box-shadow:inset 0 -3px var(--aim-brand-red)!important;
}
body.arduino-page.arduino-approved-v2713 .inspector-tabs button[aria-selected=true] span,
body.arduino-page.arduino-prephase6-v2720 .inspector-tabs button[aria-selected=true] span{
  color:var(--aim-brand-red)!important;
}

/* Brand-focused keyboard focus without replacing meaningful runtime colours. */
body.arduino-page .sidebar-tabs button:focus-visible,
body.arduino-page .inspector-tabs button:focus-visible,
body.arduino-page .canvas-tools button:focus-visible{
  outline:3px solid rgba(138,16,32,.22)!important;
  outline-offset:2px!important;
}

@media(max-width:1099px){
  body.arduino-page.arduino-compact-v2723.arduino-learn-v2743 .learn-pane.is-active{
    height:100%!important;
    max-height:none!important;
    overflow-y:auto!important;
  }
}


/* ===== SOURCE: labs/arduino/hardware/component-presentation-v2799.css ===== */
/* AIM STEM LAB v0.27.99 — presentation only; no physical geometry rules. */
body.arduino-page.arduino-component-presentation-v2799 #parts .part>.aim-component-tap-label{
  position:absolute;left:50%;top:-31px;transform:translate(-50%,5px);z-index:30;
  display:block;max-width:170px;padding:5px 8px;border:1px solid rgba(138,16,32,.25);border-radius:8px;
  background:rgba(255,255,255,.97);color:#4b3035;box-shadow:0 8px 18px rgba(0,0,0,.16);
  font-size:8px;font-weight:900;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  opacity:0;visibility:hidden;pointer-events:none;transition:opacity .14s ease,transform .14s ease,visibility .14s ease;
}
body.arduino-page.arduino-component-presentation-v2799 #parts .part.aim-component-revealed>.aim-component-tap-label{
  opacity:1;visibility:visible;transform:translate(-50%,0);
}
body.arduino-page.arduino-component-presentation-v2799 #parts .pin::after{display:none!important}
body.arduino-page.arduino-component-presentation-v2799 #parts .part.aim-component-revealed>.pin:hover::after,
body.arduino-page.arduino-component-presentation-v2799 #parts .part.aim-component-revealed>.pin:focus-visible::after{display:block!important}
body.arduino-page.arduino-component-presentation-v2799 #parts .part>.handle{opacity:0!important;visibility:hidden!important;pointer-events:none!important}
body.arduino-page.arduino-component-presentation-v2799 #parts .part.aim-component-revealed>.handle,
body.arduino-page.arduino-component-presentation-v2799 #parts .part.is-dragging>.handle{
  opacity:1!important;visibility:visible!important;pointer-events:auto!important;
}
@media(prefers-reduced-motion:reduce){
  body.arduino-page.arduino-component-presentation-v2799 #parts .part>.aim-component-tap-label{transition:none}
}


/* ===== SOURCE: labs/arduino/instructor/yentumi-instructor-v027176.css ===== */
/* AIM STEM LAB v0.27.113 — First Project Learning Journey
   Learner-friendly guided build, clear first-project onboarding and challenge state.
*/
body.arduino-page.arduino-first-project-v027167{
  --yi-red:var(--aim-brand-red,#8a1020);
  --yi-red-deep:var(--aim-brand-red-deep,#650b16);
  --yi-red-soft:var(--aim-brand-red-soft,#fff4f6);
  --yi-ink:var(--aim-brand-ink,#171b1f);
  --yi-muted:#667681;
  --yi-line:#dde4e8;
  --yi-panel:#ffffff;
  --yi-shadow:0 26px 70px rgba(8,17,22,.28);
}

/* --------------------------------------------------------------------------
   Welcome choice — the Phase 6 entry point.
---------------------------------------------------------------------------- */
body.arduino-page .yi-welcome-backdrop{
  position:fixed;inset:0;z-index:12000;display:grid;place-items:center;padding:26px;
  background:rgba(12,16,19,.60);backdrop-filter:blur(11px) saturate(.92);
  animation:yiFade .22s ease both;
}
body.arduino-page .yi-welcome-card{
  width:min(780px,96vw);padding:30px;border:1px solid rgba(138,16,32,.15);border-radius:26px;
  background:#fff;color:var(--yi-ink);box-shadow:0 36px 110px rgba(0,0,0,.34);
  animation:yiWelcome .32s cubic-bezier(.2,.85,.25,1) both;
  position:relative;overflow:hidden;
}
body.arduino-page .yi-welcome-card::before{
  content:'';position:absolute;left:0;top:0;right:0;height:5px;
  background:linear-gradient(90deg,var(--yi-red) 0 70%,var(--yi-ink) 70% 100%);
}
body.arduino-page .yi-welcome-top{display:flex;align-items:center;gap:15px;margin-bottom:18px}
body.arduino-page .yi-welcome-top img{width:64px;height:38px;object-fit:contain;object-position:left center}
body.arduino-page .yi-welcome-top div{display:flex;flex-direction:column;gap:4px;padding-left:15px;border-left:1px solid #e1e5e7}
body.arduino-page .yi-welcome-top small{font-size:11px;line-height:1;font-weight:950;letter-spacing:.13em;color:var(--yi-red)}
body.arduino-page .yi-welcome-top span{font-size:10px;font-weight:800;letter-spacing:.08em;color:#7b858a}
body.arduino-page .yi-welcome-card h1{margin:0 0 8px;font-size:clamp(30px,3vw,38px);line-height:1.05;letter-spacing:-.04em;color:#122c37}
body.arduino-page .yi-welcome-card>p{max-width:650px;margin:0;font-size:15px;line-height:1.62;color:#61747e}
body.arduino-page .yi-welcome-choices{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:25px}
body.arduino-page .yi-welcome-choice{
  position:relative;min-height:172px;padding:20px;border:1px solid #dce4e7;border-radius:20px;background:#fbfcfc;
  text-align:left;color:#18333f;box-shadow:0 8px 24px rgba(20,34,39,.04);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
body.arduino-page .yi-welcome-choice:hover{transform:translateY(-3px);border-color:#b98890;box-shadow:0 18px 36px rgba(52,14,21,.11)}
body.arduino-page .yi-welcome-choice:focus-visible{outline:4px solid rgba(138,16,32,.16);outline-offset:3px}
body.arduino-page .yi-welcome-choice i{display:grid;place-items:center;width:45px;height:45px;border-radius:14px;background:#f2f4f5;color:var(--yi-red);font-style:normal;font-size:20px;font-weight:900}
body.arduino-page .yi-welcome-choice b{display:block;margin:11px 0 5px;font-size:19px;line-height:1.2;color:#15313d}
body.arduino-page .yi-welcome-choice span{display:block;font-size:13px;line-height:1.52;color:#667b86}
body.arduino-page .yi-welcome-choice em{display:inline-block;margin-top:14px;font-size:9px;font-style:normal;font-weight:950;letter-spacing:.11em;color:#899499}
body.arduino-page .yi-welcome-choice.primary{
  background:linear-gradient(145deg,#9b1729 0%,#76101e 100%);border-color:#b23445;color:#fff;
  box-shadow:0 16px 32px rgba(101,11,22,.20),inset 0 0 0 1px rgba(255,255,255,.08);
}
body.arduino-page .yi-welcome-choice.primary::after{content:'';position:absolute;inset:5px;border:1px solid rgba(255,255,255,.18);border-radius:15px;pointer-events:none}
body.arduino-page .yi-welcome-choice.primary i{background:rgba(255,255,255,.14);color:#fff}
body.arduino-page .yi-welcome-choice.primary b,body.arduino-page .yi-welcome-choice.primary span,body.arduino-page .yi-welcome-choice.primary em{color:#fff}
body.arduino-page .yi-welcome-choice.primary span{color:#f4dfe2}body.arduino-page .yi-welcome-choice.primary em{color:#f2bcc4}
body.arduino-page .yi-welcome-foot{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-top:19px;padding-top:16px;border-top:1px solid #edf0f1;font-size:10px;color:#7b898f}
body.arduino-page .yi-welcome-foot b{color:#4b5a60}

/* --------------------------------------------------------------------------
   Instructor shell — local to the engineering workbench, not a page takeover.
---------------------------------------------------------------------------- */
body.arduino-page .benchpanel{position:relative}
body.arduino-page .yi-shell{
  position:absolute;z-index:8800;right:18px;bottom:18px;width:min(560px,calc(100% - 36px));
  color:var(--yi-ink);pointer-events:none;
}
body.arduino-page .yi-shell[hidden]{display:none!important}
body.arduino-page .yi-card{
  pointer-events:auto;border:1px solid rgba(138,16,32,.20);border-radius:21px;background:rgba(255,255,255,.985);
  box-shadow:var(--yi-shadow);overflow:hidden;animation:yiCoachIn .28s cubic-bezier(.2,.85,.25,1) both;
}
body.arduino-page .yi-header{height:58px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 14px;border-bottom:1px solid #e8ecee;background:linear-gradient(180deg,#fff,#fcfcfc)}
body.arduino-page .yi-brand{display:flex;align-items:center;gap:10px;min-width:0}
body.arduino-page .yi-brand-mark{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:var(--yi-red);color:#fff;font-size:17px;font-weight:950;box-shadow:0 8px 18px rgba(101,11,22,.20)}
body.arduino-page .yi-brand div{display:flex;flex-direction:column;min-width:0}
body.arduino-page .yi-brand small{font-size:9px;font-weight:950;letter-spacing:.12em;color:var(--yi-red)}
body.arduino-page .yi-brand strong{margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:#26383f}
body.arduino-page .yi-head-actions{display:flex;gap:5px}
body.arduino-page .yi-head-actions button{width:31px;height:31px;border:1px solid #dde4e7;border-radius:9px;background:#fff;color:#65757c;font-weight:900;line-height:1;transition:.16s ease}
body.arduino-page .yi-head-actions button:hover{border-color:#c58c94;color:var(--yi-red);background:var(--yi-red-soft)}
body.arduino-page .yi-progress{height:5px;position:relative;background:#edf0f1}
body.arduino-page .yi-progress i{display:block;width:var(--yi-progress,0%);height:100%;background:linear-gradient(90deg,var(--yi-red),#c83348);transition:width .32s ease}
body.arduino-page .yi-progress-text{position:absolute;right:10px;top:8px;padding:2px 6px;border-radius:99px;background:#fff;font-size:8px;font-weight:900;color:#849096;box-shadow:0 2px 7px rgba(0,0,0,.05)}
body.arduino-page .yi-main{display:grid;grid-template-columns:178px minmax(0,1fr);min-height:245px}
body.arduino-page .yi-lesson{padding:18px 18px 14px 10px;min-width:0;display:flex;flex-direction:column}
body.arduino-page .yi-step-meta{display:flex;align-items:center;gap:8px;margin-bottom:7px}
body.arduino-page .yi-stage{padding:4px 7px;border-radius:6px;background:var(--yi-red-soft);color:var(--yi-red);font-size:8px;font-weight:950;letter-spacing:.11em}
body.arduino-page .yi-step-number{font-size:8px;font-weight:900;letter-spacing:.10em;color:#909a9f}
body.arduino-page .yi-title{margin:0;font-size:20px;line-height:1.13;letter-spacing:-.025em;color:#16323e}
body.arduino-page .yi-body{margin:7px 0 0;font-size:12.5px;line-height:1.58;color:#5d727c}
body.arduino-page .yi-connection{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px;margin-top:11px;padding:10px;border:1px solid #ead1d5;border-radius:12px;background:#fff7f8;color:#532029;text-align:center;font-size:10.5px;font-weight:900}
body.arduino-page .yi-connection b{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--yi-red);color:#fff;font-size:13px}
body.arduino-page .yi-tip{margin-top:11px;padding:9px 10px;border-left:3px solid var(--yi-red);border-radius:0 9px 9px 0;background:#f8f9f9}
body.arduino-page .yi-tip>span{display:block;font-size:7.5px;font-weight:950;letter-spacing:.13em;color:#8d565e}
body.arduino-page .yi-tip p{margin:3px 0 0;font-size:10.5px;line-height:1.45;color:#65767d}
body.arduino-page .yi-status{display:flex;align-items:center;gap:7px;margin-top:auto;padding-top:10px;font-size:10px;font-weight:750;color:#697a81}
body.arduino-page .yi-status i{width:8px;height:8px;flex:0 0 auto;border-radius:50%;background:#aeb8bc;box-shadow:0 0 0 4px rgba(174,184,188,.13)}
body.arduino-page .yi-status[data-state="success"]{color:#366449}body.arduino-page .yi-status[data-state="success"] i{background:#2c8a53;box-shadow:0 0 0 4px rgba(44,138,83,.13)}
body.arduino-page .yi-status[data-state="error"]{color:#8a1020}body.arduino-page .yi-status[data-state="error"] i{background:var(--yi-red);box-shadow:0 0 0 4px rgba(138,16,32,.13)}
body.arduino-page .yi-status[data-state="hint"] i,body.arduino-page .yi-status[data-state="info"] i{background:#a76c18;box-shadow:0 0 0 4px rgba(167,108,24,.13)}
body.arduino-page .yi-actions{display:flex;align-items:center;gap:7px;padding:12px 14px;border-top:1px solid #e9edef;background:#fbfcfc}
body.arduino-page .yi-actions button{min-height:37px;padding:0 12px;border:1px solid #d8e0e3;border-radius:10px;background:#fff;color:#4c626c;font-size:10px;font-weight:900;transition:.16s ease}
body.arduino-page .yi-actions button:hover:not(:disabled){transform:translateY(-1px);border-color:#bd838c;color:var(--yi-red);box-shadow:0 6px 14px rgba(63,17,24,.08)}
body.arduino-page .yi-actions button:disabled{opacity:.42;cursor:not-allowed}
body.arduino-page .yi-actions .yi-show{margin-right:auto;background:#f8f9f9}
body.arduino-page .yi-actions .yi-show span{color:var(--yi-red)}
body.arduino-page .yi-actions .yi-next,body.arduino-page .yi-actions .primary{background:var(--yi-red);border-color:var(--yi-red);color:#fff;box-shadow:0 7px 18px rgba(101,11,22,.16)}
body.arduino-page .yi-actions .yi-next:hover:not(:disabled),body.arduino-page .yi-actions .primary:hover{background:var(--yi-red-deep);color:#fff;border-color:var(--yi-red-deep)}
body.arduino-page .yi-actions .yi-next:disabled{background:#9da7ab;border-color:#9da7ab;color:#fff;box-shadow:none}

/* Minimise without losing the instructor. */
body.arduino-page .yi-mini{pointer-events:auto;display:none;align-items:center;gap:8px;width:154px;height:52px;margin-left:auto;padding:7px 11px;border:1px solid rgba(138,16,32,.25);border-radius:15px;background:#fff;color:#20333b;box-shadow:0 15px 34px rgba(0,0,0,.22)}
body.arduino-page .yi-mini-face{position:relative;width:34px;height:34px;flex:0 0 auto;border-radius:12px;background:var(--yi-red);display:flex;align-items:center;justify-content:center;gap:5px}
body.arduino-page .yi-mini-face i{width:6px;height:6px;border-radius:50%;background:#fff}
body.arduino-page .yi-mini b{font-size:11px}.yi-mini small{font-size:8px;color:#879398;margin-left:-3px}
body.arduino-page .yi-shell.is-minimised .yi-card{display:none}
body.arduino-page .yi-shell.is-minimised .yi-mini{display:flex}

/* --------------------------------------------------------------------------
   Robot — vector, articulated and pose-aware.
---------------------------------------------------------------------------- */
body.arduino-page .yi-robot-stage{position:relative;display:flex;align-items:flex-end;justify-content:center;overflow:hidden;padding:37px 0 9px;background:linear-gradient(145deg,#fff8f9 0%,#fff 55%,#f3f5f6 100%);border-right:1px solid #edf0f1}
body.arduino-page .yi-robot-stage::before{content:'';position:absolute;width:130px;height:130px;border-radius:50%;left:24px;bottom:28px;background:radial-gradient(circle,rgba(138,16,32,.10),rgba(138,16,32,0) 70%)}
body.arduino-page .yi-robot{position:relative;width:145px;height:172px;transform-origin:50% 90%;animation:yiRobotIdle 3.4s ease-in-out infinite}
body.arduino-page .yi-robot-svg{display:block;width:100%;height:100%;overflow:visible}
body.arduino-page .yi-robot-headgroup,body.arduino-page .yi-robot-bodygroup,body.arduino-page .yi-robot-arm,body.arduino-page .yi-robot-leg{transform-box:fill-box;transform-origin:center}
body.arduino-page .yi-robot-eye{transform-box:fill-box;transform-origin:center;animation:yiBlink 4.8s infinite}
body.arduino-page .yi-antenna-light{animation:yiAntenna 1.8s ease-in-out infinite}
body.arduino-page .yi-chest-ring{animation:yiChest 2.4s ease-in-out infinite}
body.arduino-page .yi-robot-floor{position:absolute;left:32px;right:32px;bottom:13px;height:1px;background:linear-gradient(90deg,transparent,#cfd4d6,transparent)}
body.arduino-page .yi-speech{position:absolute;z-index:2;top:13px;left:13px;right:12px;min-height:34px;padding:8px 10px;border:1px solid #e2c4c9;border-radius:11px;background:#fff;color:#5b3b40;font-size:9px;font-weight:850;line-height:1.35;box-shadow:0 8px 20px rgba(65,20,28,.08)}
body.arduino-page .yi-speech::after{content:'';position:absolute;left:45px;bottom:-7px;width:12px;height:12px;background:#fff;border-right:1px solid #e2c4c9;border-bottom:1px solid #e2c4c9;transform:rotate(45deg)}
body.arduino-page .yi-speech.is-speaking{animation:yiSpeech .36s ease both}
body.arduino-page .yi-spark{position:absolute;width:7px;height:7px;border:2px solid var(--yi-red);transform:rotate(45deg);opacity:.25;animation:yiSpark 2s ease-in-out infinite}
body.arduino-page .yi-spark-1{right:7px;top:28px}.yi-spark-2{left:8px;top:55px;animation-delay:.6s}.yi-spark-3{right:15px;top:88px;animation-delay:1.1s}

/* Robot actions */
body.arduino-page .yi-robot[data-pose="wave"] .yi-arm-right{animation:yiWave .72s ease-in-out infinite alternate}
body.arduino-page .yi-robot[data-pose="wire"] .yi-arm-left{animation:yiWireLeft 1.45s ease-in-out infinite}
body.arduino-page .yi-robot[data-pose="wire"] .yi-arm-right{animation:yiWireRight 1.45s ease-in-out infinite}
body.arduino-page .yi-robot[data-pose="point"] .yi-arm-right{animation:yiPoint 1.1s ease-in-out infinite}
body.arduino-page .yi-robot[data-pose="code"] .yi-robot-headgroup{animation:yiScanHead 1.8s ease-in-out infinite}
body.arduino-page .yi-robot[data-pose="code"] .yi-arm-left{animation:yiTypeLeft .5s ease-in-out infinite alternate}
body.arduino-page .yi-robot[data-pose="code"] .yi-arm-right{animation:yiTypeRight .5s ease-in-out infinite alternate-reverse}
body.arduino-page .yi-robot[data-pose="run"]{animation:yiReadyRun 1.2s ease-in-out infinite}
body.arduino-page .yi-robot[data-pose="run"] .yi-arm-right{animation:yiPointUp .9s ease-in-out infinite}
body.arduino-page .yi-robot[data-pose="think"] .yi-robot-headgroup{animation:yiThink 1s ease-in-out infinite alternate}
body.arduino-page .yi-robot[data-pose="think"] .yi-mouth{stroke-dasharray:5 4}
body.arduino-page .yi-robot[data-pose="celebrate"]{animation:yiCelebrateBody .7s ease-in-out infinite alternate}
body.arduino-page .yi-robot[data-pose="celebrate"] .yi-arm-left{animation:yiCelebrateLeft .7s ease-in-out infinite alternate}
body.arduino-page .yi-robot[data-pose="celebrate"] .yi-arm-right{animation:yiCelebrateRight .7s ease-in-out infinite alternate}
body.arduino-page .yi-shell.is-complete .yi-card{animation:yiSuccessCard .55s ease both}
body.arduino-page .yi-shell.has-error .yi-card{animation:yiErrorCard .45s ease both}

/* --------------------------------------------------------------------------
   Live demonstration layer. It is built from actual pin/control positions.
---------------------------------------------------------------------------- */
body.arduino-page .yi-demo-layer{position:absolute;inset:0;z-index:8400;pointer-events:none;opacity:0;transition:opacity .2s ease}
body.arduino-page .yi-demo-layer.is-visible{opacity:1}
body.arduino-page .yi-demo-svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
body.arduino-page .yi-demo-path{fill:none;stroke:var(--yi-red);stroke-width:4;stroke-linecap:round;stroke-dasharray:9 9;filter:drop-shadow(0 2px 4px rgba(101,11,22,.20));animation:yiDash .75s linear infinite}
body.arduino-page .yi-demo-source{fill:#fff;stroke:var(--yi-red);stroke-width:4;animation:yiDemoPulse 1s ease-in-out infinite}
body.arduino-page .yi-demo-target{fill:rgba(255,255,255,.8);stroke:var(--yi-red);stroke-width:4;animation:yiDemoPulse 1s ease-in-out infinite .25s}
body.arduino-page .yi-demo-cursor path{fill:#fff;stroke:var(--yi-red);stroke-width:2;filter:drop-shadow(0 3px 5px rgba(0,0,0,.24))}
body.arduino-page .yi-demo-tag{position:absolute;min-width:92px;padding:6px 8px;border-radius:8px;background:var(--yi-red);color:#fff;font-size:8px;font-weight:950;letter-spacing:.03em;text-align:center;box-shadow:0 7px 20px rgba(101,11,22,.24)}
body.arduino-page .yi-guided-target{z-index:8450!important;animation:yiTargetPulse 1.05s ease-in-out infinite!important;box-shadow:0 0 0 4px rgba(255,255,255,.92),0 0 0 8px rgba(138,16,32,.32),0 0 28px rgba(138,16,32,.30)!important}
body.arduino-page .yi-guided-target:not(.pin){position:relative!important}
body.arduino-page .pin.yi-guided-target{position:absolute!important}
body.arduino-page .pin.yi-guided-target{transform:translate(-50%,-50%) scale(1.38)!important;background:#fff!important;border-color:var(--yi-red)!important}
body.arduino-page .yi-demo-part{z-index:8430!important;animation:yiPartTour .9s ease both!important;filter:drop-shadow(0 0 16px rgba(138,16,32,.50))!important}
body.arduino-page .yi-demo-part::after{content:'YENTUMI IS SHOWING THIS PART';position:absolute;left:50%;top:-22px;transform:translateX(-50%);white-space:nowrap;padding:5px 7px;border-radius:6px;background:var(--yi-red);color:#fff;font-size:7px;font-weight:950;letter-spacing:.07em;box-shadow:0 6px 14px rgba(70,8,16,.22)}

/* Final celebration */
body.arduino-page .yi-shell.is-finished .yi-main{min-height:255px}
body.arduino-page .yi-shell.is-finished .yi-stage{background:#8a1020;color:#fff}
body.arduino-page .yi-shell.is-finished .yi-title{font-size:22px}
body.arduino-page .yi-confetti{position:absolute;z-index:8;left:var(--x);top:-8px;width:7px;height:13px;border-radius:2px;background:var(--yi-red);transform:rotate(var(--spin));animation:yiConfetti 1.8s cubic-bezier(.15,.7,.35,1) var(--delay) both}
body.arduino-page .yi-confetti:nth-of-type(3n){background:#171b1f}.yi-confetti:nth-of-type(4n){background:#fff;border:1px solid #8a1020}

/* --------------------------------------------------------------------------
   Responsive instructor: stays compact and never becomes a second workspace.
---------------------------------------------------------------------------- */
@container (max-width:780px){
  body.arduino-page .yi-shell{width:min(520px,calc(100% - 24px));right:12px;bottom:12px}
}
@media(max-width:1180px){
  body.arduino-page .yi-shell{right:12px;bottom:12px;width:min(510px,calc(100% - 24px))}
  body.arduino-page .yi-main{grid-template-columns:150px minmax(0,1fr)}
  body.arduino-page .yi-robot{width:124px;height:150px}
  body.arduino-page .yi-title{font-size:18px}
}
@media(max-width:760px){
  body.arduino-page .yi-welcome-backdrop{padding:12px;place-items:end center}
  body.arduino-page .yi-welcome-card{width:100%;max-height:92vh;overflow:auto;padding:21px;border-radius:22px 22px 14px 14px}
  body.arduino-page .yi-welcome-choices{grid-template-columns:1fr}
  body.arduino-page .yi-welcome-choice{min-height:140px}
  body.arduino-page .yi-welcome-foot{align-items:flex-start;flex-direction:column}
  body.arduino-page .yi-shell{position:fixed;left:8px;right:8px;bottom:8px;width:auto;z-index:11900}
  body.arduino-page .yi-main{grid-template-columns:86px minmax(0,1fr);min-height:220px}
  body.arduino-page .yi-robot-stage{padding-top:45px}
  body.arduino-page .yi-robot{width:80px;height:111px}
  body.arduino-page .yi-speech{left:5px;right:5px;top:8px;padding:6px;font-size:7.5px}
  body.arduino-page .yi-lesson{padding:14px 12px 11px 8px}
  body.arduino-page .yi-body{font-size:11.5px}.yi-tip{display:none}
  body.arduino-page .yi-actions{padding:9px;gap:5px}.yi-actions button{padding:0 9px!important;font-size:9px!important}
  body.arduino-page .yi-header{height:52px;padding:0 9px}.yi-brand strong{display:none}.yi-brand-mark{width:31px!important;height:31px!important}
}
@media(max-width:470px){
  body.arduino-page .yi-main{grid-template-columns:1fr}.yi-robot-stage{display:none}
  body.arduino-page .yi-title{font-size:17px}.yi-body{font-size:11px!important}
  body.arduino-page .yi-actions .yi-back{display:none}.yi-actions .yi-show{margin-right:0!important}.yi-actions .yi-next{margin-left:auto}
  body.arduino-page .yi-connection{font-size:9px}
}

/* Motion with respectful reduced-motion fallback. */
@keyframes yiFade{from{opacity:0}to{opacity:1}}
@keyframes yiWelcome{from{opacity:0;transform:translateY(18px) scale(.985)}to{opacity:1;transform:none}}
@keyframes yiCoachIn{from{opacity:0;transform:translateY(16px) scale(.985)}to{opacity:1;transform:none}}
@keyframes yiRobotIdle{0%,100%{transform:translateY(0) rotate(-.7deg)}50%{transform:translateY(-6px) rotate(.7deg)}}
@keyframes yiBlink{0%,43%,47%,100%{transform:scaleY(1)}45%{transform:scaleY(.12)}}
@keyframes yiAntenna{0%,100%{opacity:.55;transform:scale(.8)}50%{opacity:1;transform:scale(1.25)}}
@keyframes yiChest{0%,100%{stroke-opacity:.45}50%{stroke-opacity:1}}
@keyframes yiSpeech{0%{transform:scale(.96);opacity:.65}100%{transform:none;opacity:1}}
@keyframes yiSpark{0%,100%{opacity:.15;transform:rotate(45deg) scale(.65)}50%{opacity:.85;transform:rotate(135deg) scale(1)}}
@keyframes yiWave{0%{transform:rotate(-12deg) translateY(0)}100%{transform:rotate(-62deg) translate(-8px,-16px)}}
@keyframes yiWireLeft{0%,100%{transform:rotate(0) translate(0)}50%{transform:rotate(22deg) translate(7px,-5px)}}
@keyframes yiWireRight{0%,100%{transform:rotate(0) translate(0)}50%{transform:rotate(-22deg) translate(-7px,-5px)}}
@keyframes yiPoint{0%,100%{transform:rotate(-8deg) translate(0)}50%{transform:rotate(-35deg) translate(12px,-8px)}}
@keyframes yiScanHead{0%,100%{transform:rotate(-3deg)}50%{transform:rotate(4deg)}}
@keyframes yiTypeLeft{from{transform:translateY(2px) rotate(10deg)}to{transform:translateY(8px) rotate(18deg)}}
@keyframes yiTypeRight{from{transform:translateY(2px) rotate(-10deg)}to{transform:translateY(8px) rotate(-18deg)}}
@keyframes yiReadyRun{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-8px) scale(1.02)}}
@keyframes yiPointUp{0%,100%{transform:rotate(-25deg) translate(-5px,-7px)}50%{transform:rotate(-58deg) translate(-13px,-20px)}}
@keyframes yiThink{from{transform:rotate(-6deg)}to{transform:rotate(6deg)}}
@keyframes yiCelebrateBody{from{transform:translateY(0) rotate(-1deg)}to{transform:translateY(-10px) rotate(1deg)}}
@keyframes yiCelebrateLeft{from{transform:rotate(10deg)}to{transform:rotate(54deg) translate(6px,-18px)}}
@keyframes yiCelebrateRight{from{transform:rotate(-10deg)}to{transform:rotate(-54deg) translate(-6px,-18px)}}
@keyframes yiSuccessCard{0%{box-shadow:var(--yi-shadow)}50%{box-shadow:0 0 0 5px rgba(138,16,32,.12),0 26px 70px rgba(8,17,22,.28)}100%{box-shadow:var(--yi-shadow)}}
@keyframes yiErrorCard{20%{transform:translateX(-5px)}40%{transform:translateX(5px)}60%{transform:translateX(-3px)}80%{transform:translateX(3px)}}
@keyframes yiDash{to{stroke-dashoffset:-18}}
@keyframes yiDemoPulse{0%,100%{opacity:.7;stroke-width:4}50%{opacity:1;stroke-width:7}}
@keyframes yiTargetPulse{0%,100%{filter:brightness(1)}50%{filter:brightness(1.13)}}
@keyframes yiPartTour{0%{transform:scale(.96);opacity:.7}35%,75%{transform:scale(1.025);opacity:1}100%{transform:scale(1);opacity:1}}
@keyframes yiConfetti{0%{opacity:0;transform:translateY(0) rotate(var(--spin))}15%{opacity:1}100%{opacity:0;transform:translateY(215px) rotate(calc(var(--spin) + 540deg))}}

@media(prefers-reduced-motion:reduce){
  body.arduino-page .yi-welcome-backdrop,body.arduino-page .yi-welcome-card,body.arduino-page .yi-card,
  body.arduino-page .yi-robot,body.arduino-page .yi-robot *,body.arduino-page .yi-speech,
  body.arduino-page .yi-demo-path,body.arduino-page .yi-demo-source,body.arduino-page .yi-demo-target,
  body.arduino-page .yi-guided-target,body.arduino-page .yi-demo-part,body.arduino-page .yi-confetti{animation:none!important;transition:none!important}
}

/* --------------------------------------------------------------------------
   v0.27.49 refinement — stand-alone floating robot instructor.
   The coach now speaks from a thought bubble, auto-repositions around the
   workbench, and can be dragged anywhere to free space for wiring.
---------------------------------------------------------------------------- */
body.arduino-page.arduino-first-project-v027167 .yi-shell{
  position:absolute;z-index:8800;width:min(360px,calc(100% - 24px));left:24px;top:24px;right:auto;bottom:auto;
  pointer-events:none;transition:left .34s cubic-bezier(.2,.8,.2,1),top .34s cubic-bezier(.2,.8,.2,1),opacity .2s ease;
}
body.arduino-page.arduino-first-project-v027167 .yi-shell.is-dragging{transition:none}
body.arduino-page.arduino-first-project-v027167 .yi-card{
  background:transparent;border:none;box-shadow:none;overflow:visible;animation:none;pointer-events:none;
}
body.arduino-page.arduino-first-project-v027167 .yi-main{
  display:flex;flex-direction:column;align-items:center;gap:10px;min-height:auto;
}
body.arduino-page.arduino-first-project-v027167 .yi-bubble{
  position:relative;width:100%;pointer-events:auto;border:1px solid rgba(138,16,32,.18);border-radius:22px;
  background:rgba(255,255,255,.985);box-shadow:0 24px 62px rgba(8,17,22,.25),0 4px 14px rgba(8,17,22,.06);
  overflow:visible;
}
body.arduino-page.arduino-first-project-v027167 .yi-bubble::after{
  content:'';position:absolute;left:50%;bottom:-12px;transform:translateX(-50%);width:24px;height:24px;border-radius:50%;
  background:rgba(255,255,255,.98);border:1px solid rgba(138,16,32,.14);box-shadow:0 10px 18px rgba(8,17,22,.10);
}
body.arduino-page.arduino-first-project-v027167 .yi-thought{
  position:absolute;left:50%;border-radius:50%;background:rgba(255,255,255,.98);border:1px solid rgba(138,16,32,.14);
  box-shadow:0 8px 16px rgba(8,17,22,.09);z-index:2;
}
body.arduino-page.arduino-first-project-v027167 .yi-thought-1{width:14px;height:14px;bottom:-24px;transform:translateX(-14px)}
body.arduino-page.arduino-first-project-v027167 .yi-thought-2{width:10px;height:10px;bottom:-36px;transform:translateX(-22px)}
body.arduino-page.arduino-first-project-v027167 .yi-header{
  height:54px;padding:0 12px;cursor:grab;background:linear-gradient(180deg,#fff,#fdf8f9);border-bottom:1px solid #eef1f2;
}
body.arduino-page.arduino-first-project-v027167 .yi-shell.is-dragging .yi-header,
body.arduino-page.arduino-first-project-v027167 .yi-shell.is-dragging .yi-robot-stage{cursor:grabbing}
body.arduino-page.arduino-first-project-v027167 .yi-brand small{font-size:8px}
body.arduino-page.arduino-first-project-v027167 .yi-brand strong{font-size:11px}
body.arduino-page.arduino-first-project-v027167 .yi-progress{height:4px}
body.arduino-page.arduino-first-project-v027167 .yi-progress-text{right:12px;top:7px;font-size:8px}
body.arduino-page.arduino-first-project-v027167 .yi-speech{
  position:relative;left:auto;right:auto;top:auto;min-height:0;margin:12px 14px 0;padding:10px 12px;border-radius:16px;
  border:1px solid #ebd4d8;background:linear-gradient(180deg,#fff8fa,#fff);font-size:10px;line-height:1.45;color:#6a3e46;
}
body.arduino-page.arduino-first-project-v027167 .yi-speech::after{display:none}
body.arduino-page.arduino-first-project-v027167 .yi-lesson{padding:12px 15px 0}
body.arduino-page.arduino-first-project-v027167 .yi-step-meta{margin-bottom:6px}
body.arduino-page.arduino-first-project-v027167 .yi-title{font-size:19px;line-height:1.14}
body.arduino-page.arduino-first-project-v027167 .yi-body{font-size:12.5px;line-height:1.58;margin-top:7px}
body.arduino-page.arduino-first-project-v027167 .yi-connection{margin-top:10px;font-size:10px;padding:10px}
body.arduino-page.arduino-first-project-v027167 .yi-tip{margin-top:10px}
body.arduino-page.arduino-first-project-v027167 .yi-tip p{font-size:10px}
body.arduino-page.arduino-first-project-v027167 .yi-status{margin-top:12px;padding-top:0;font-size:10px}
body.arduino-page.arduino-first-project-v027167 .yi-actions{
  padding:12px 15px 15px;border-top:none;background:transparent;pointer-events:auto;gap:8px;
}
body.arduino-page.arduino-first-project-v027167 .yi-actions button{min-height:38px;font-size:10px;padding:0 12px}
body.arduino-page.arduino-first-project-v027167 .yi-actions .yi-show{margin-right:auto}
body.arduino-page.arduino-first-project-v027167 .yi-robot-stage{
  position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;width:190px;min-height:214px;
  padding:0 0 10px;overflow:visible;background:transparent;border:none;pointer-events:auto;cursor:grab;
}
body.arduino-page.arduino-first-project-v027167 .yi-robot-stage::before{
  content:'';position:absolute;left:50%;bottom:16px;transform:translateX(-50%);width:140px;height:70px;border-radius:50%;
  background:radial-gradient(circle,rgba(138,16,32,.13),rgba(138,16,32,0) 72%);
}
body.arduino-page.arduino-first-project-v027167 .yi-drag-chip{
  position:absolute;top:8px;left:50%;transform:translateX(-50%);padding:6px 10px;border:1px solid rgba(138,16,32,.16);border-radius:999px;
  background:rgba(255,255,255,.94);color:#7f5a61;font-size:8px;font-weight:900;letter-spacing:.04em;box-shadow:0 8px 18px rgba(8,17,22,.10);
  opacity:0;transition:opacity .18s ease,transform .18s ease;pointer-events:none;
}
body.arduino-page.arduino-first-project-v027167 .yi-robot-stage:hover .yi-drag-chip,
body.arduino-page.arduino-first-project-v027167 .yi-shell.is-dragging .yi-drag-chip{opacity:1;transform:translateX(-50%) translateY(-2px)}
body.arduino-page.arduino-first-project-v027167 .yi-robot{width:154px;height:184px;margin-top:20px}
body.arduino-page.arduino-first-project-v027167 .yi-robot-floor{left:22px;right:22px;bottom:14px}
body.arduino-page.arduino-first-project-v027167 .yi-robot.is-talking .yi-mouth{animation:yiTalk .2s ease-in-out 7}
body.arduino-page.arduino-first-project-v027167 .yi-mini{margin:0 auto 0 0;pointer-events:auto}
body.arduino-page.arduino-first-project-v027167 .yi-shell.is-minimised{width:auto}
body.arduino-page.arduino-first-project-v027167 .yi-shell.is-minimised .yi-mini{display:flex}
body.arduino-page.arduino-first-project-v027167 .yi-shell.is-finished .yi-bubble{box-shadow:0 0 0 5px rgba(138,16,32,.08),0 28px 74px rgba(8,17,22,.22)}
body.arduino-page.arduino-first-project-v027167 .yi-shell.is-finished .yi-main{gap:8px}
body.arduino-page.arduino-first-project-v027167 .yi-shell.is-finished .yi-title{font-size:21px}
body.arduino-page.arduino-first-project-v027167 .yi-shell.has-error .yi-bubble{animation:yiErrorCard .45s ease both}
body.arduino-page.arduino-first-project-v027167 .yi-shell.is-complete .yi-bubble{animation:yiSuccessCard .55s ease both}
body.arduino-page.arduino-first-project-v027167 .yi-shell.is-demonstrating .yi-bubble{box-shadow:0 0 0 4px rgba(138,16,32,.07),0 28px 74px rgba(8,17,22,.22)}

@keyframes yiTalk{0%,100%{d:path('M95 103 Q110 114 125 103')}50%{d:path('M94 104 Q110 121 126 104')}}

@media(max-width:1180px){
  body.arduino-page.arduino-first-project-v027167 .yi-shell{width:min(342px,calc(100% - 20px))}
  body.arduino-page.arduino-first-project-v027167 .yi-robot{width:142px;height:172px}
}
@media(max-width:760px){
  body.arduino-page.arduino-first-project-v027167 .yi-shell{position:fixed;left:8px!important;right:8px;top:auto!important;bottom:8px;width:auto;z-index:11900}
  body.arduino-page.arduino-first-project-v027167 .yi-main{align-items:stretch}
  body.arduino-page.arduino-first-project-v027167 .yi-bubble{width:100%}
  body.arduino-page.arduino-first-project-v027167 .yi-robot-stage{width:120px;min-height:146px;align-self:flex-end;margin-right:6px}
  body.arduino-page.arduino-first-project-v027167 .yi-robot{width:100px;height:126px;margin-top:10px}
  body.arduino-page.arduino-first-project-v027167 .yi-drag-chip{display:none}
  body.arduino-page.arduino-first-project-v027167 .yi-title{font-size:17px}
  body.arduino-page.arduino-first-project-v027167 .yi-body{font-size:11.5px}
  body.arduino-page.arduino-first-project-v027167 .yi-tip{display:none}
  body.arduino-page.arduino-first-project-v027167 .yi-actions{padding-top:10px}
}
@media(max-width:470px){
  body.arduino-page.arduino-first-project-v027167 .yi-robot-stage{display:none}
  body.arduino-page.arduino-first-project-v027167 .yi-actions .yi-back{display:none}
}
@media(prefers-reduced-motion:reduce){
  body.arduino-page.arduino-first-project-v027167 .yi-shell{transition:none}
}
body.arduino-page.arduino-first-project-v027167 .yi-mouth{transform-box:fill-box;transform-origin:center}
@keyframes yiTalk{0%,100%{transform:scale(1)}50%{transform:scaleX(1.12) scaleY(1.6) translateY(-1px)}}

/* --------------------------------------------------------------------------
   v0.27.49 compact instructor composition.
   The robot remains visible; the instruction bubble is deliberately small.
---------------------------------------------------------------------------- */
body.arduino-page.arduino-first-project-v027167 .yi-shell{
  width:min(430px,calc(100% - 24px));
}
body.arduino-page.arduino-first-project-v027167 .yi-main{
  display:grid;grid-template-columns:minmax(0,292px) 124px;align-items:end;justify-content:start;gap:10px;
}
body.arduino-page.arduino-first-project-v027167 .yi-shell[data-robot-side="left"] .yi-main{
  grid-template-columns:124px minmax(0,292px);
}
body.arduino-page.arduino-first-project-v027167 .yi-shell[data-robot-side="left"] .yi-robot-stage{order:-1}
body.arduino-page.arduino-first-project-v027167 .yi-bubble{
  width:auto;border-radius:18px;
  box-shadow:0 18px 46px rgba(8,17,22,.21),0 3px 10px rgba(8,17,22,.06);
}
body.arduino-page.arduino-first-project-v027167 .yi-bubble::after{
  left:auto;right:-9px;bottom:64px;transform:none;width:18px;height:18px;
}
body.arduino-page.arduino-first-project-v027167 .yi-shell[data-robot-side="left"] .yi-bubble::after{
  right:auto;left:-9px;
}
body.arduino-page.arduino-first-project-v027167 .yi-thought{left:auto;right:-21px;bottom:48px}
body.arduino-page.arduino-first-project-v027167 .yi-thought-1{width:11px;height:11px;transform:none}
body.arduino-page.arduino-first-project-v027167 .yi-thought-2{width:7px;height:7px;right:-31px;bottom:38px;transform:none}
body.arduino-page.arduino-first-project-v027167 .yi-shell[data-robot-side="left"] .yi-thought{right:auto;left:-21px}
body.arduino-page.arduino-first-project-v027167 .yi-shell[data-robot-side="left"] .yi-thought-2{left:-31px;right:auto}
body.arduino-page.arduino-first-project-v027167 .yi-header{height:42px;padding:0 9px}
body.arduino-page.arduino-first-project-v027167 .yi-brand{gap:7px}
body.arduino-page.arduino-first-project-v027167 .yi-brand-mark{width:25px;height:25px;border-radius:8px;font-size:12px}
body.arduino-page.arduino-first-project-v027167 .yi-brand small{font-size:7px;letter-spacing:.11em}
body.arduino-page.arduino-first-project-v027167 .yi-brand strong{font-size:9.5px;margin-top:1px}
body.arduino-page.arduino-first-project-v027167 .yi-head-actions{gap:3px}
body.arduino-page.arduino-first-project-v027167 .yi-head-actions button{width:25px;height:25px;border-radius:7px;font-size:9px}
body.arduino-page.arduino-first-project-v027167 .yi-progress{height:3px}
body.arduino-page.arduino-first-project-v027167 .yi-progress-text{top:5px;right:7px;font-size:7px;padding:1px 4px}
body.arduino-page.arduino-first-project-v027167 .yi-speech{
  margin:9px 10px 0;padding:7px 9px;border-radius:12px;font-size:9px;line-height:1.35;font-weight:800;
}
body.arduino-page.arduino-first-project-v027167 .yi-lesson{padding:9px 11px 0}
body.arduino-page.arduino-first-project-v027167 .yi-step-meta{margin-bottom:4px;gap:5px}
body.arduino-page.arduino-first-project-v027167 .yi-stage{padding:3px 5px;font-size:6.5px;border-radius:5px}
body.arduino-page.arduino-first-project-v027167 .yi-step-number{font-size:6.5px}
body.arduino-page.arduino-first-project-v027167 .yi-title{font-size:16px;line-height:1.12;letter-spacing:-.02em}
body.arduino-page.arduino-first-project-v027167 .yi-body{font-size:10px;line-height:1.45;margin-top:5px}
body.arduino-page.arduino-first-project-v027167 .yi-connection{
  margin-top:7px;padding:7px 8px;font-size:8.5px;border-radius:9px;gap:5px;
}
body.arduino-page.arduino-first-project-v027167 .yi-connection b{width:19px;height:19px;font-size:10px}
body.arduino-page.arduino-first-project-v027167 .yi-tip{
  margin:7px 0 0;padding:0;border:0;border-radius:9px;background:#f8f9f9;overflow:hidden;
}
body.arduino-page.arduino-first-project-v027167 .yi-tip summary{
  list-style:none;cursor:pointer;padding:6px 8px;color:#83545b;font-size:7px;font-weight:950;letter-spacing:.08em;text-transform:uppercase;
}
body.arduino-page.arduino-first-project-v027167 .yi-tip summary::-webkit-details-marker{display:none}
body.arduino-page.arduino-first-project-v027167 .yi-tip summary::after{content:'+';float:right;color:var(--yi-red);font-size:10px}
body.arduino-page.arduino-first-project-v027167 .yi-tip[open] summary::after{content:'–'}
body.arduino-page.arduino-first-project-v027167 .yi-tip p{margin:0;padding:0 8px 7px;font-size:8.5px;line-height:1.4}
body.arduino-page.arduino-first-project-v027167 .yi-status{margin-top:8px;font-size:8.5px;gap:6px}
body.arduino-page.arduino-first-project-v027167 .yi-status i{width:6px;height:6px;box-shadow:0 0 0 3px rgba(174,184,188,.13)}
body.arduino-page.arduino-first-project-v027167 .yi-actions{padding:9px 10px 10px;gap:5px}
body.arduino-page.arduino-first-project-v027167 .yi-actions button{min-height:30px;padding:0 8px;font-size:8px;border-radius:8px}
body.arduino-page.arduino-first-project-v027167 .yi-robot-stage{
  width:124px;min-height:170px;padding:0;align-self:end;
}
body.arduino-page.arduino-first-project-v027167 .yi-robot{width:116px;height:148px;margin-top:14px}
body.arduino-page.arduino-first-project-v027167 .yi-robot-floor{left:14px;right:14px;bottom:5px}
body.arduino-page.arduino-first-project-v027167 .yi-robot-stage::before{width:108px;height:52px;bottom:3px}
body.arduino-page.arduino-first-project-v027167 .yi-drag-chip{top:-2px;padding:4px 7px;font-size:6.5px}
body.arduino-page.arduino-first-project-v027167 .yi-demo-tag{
  min-width:0;max-width:132px;padding:5px 7px;font-size:7px;border-radius:7px;
}
body.arduino-page.arduino-first-project-v027167 .pin.yi-guided-target{position:absolute!important}

@media(max-width:1180px){
  body.arduino-page.arduino-first-project-v027167 .yi-shell{width:min(405px,calc(100% - 18px))}
  body.arduino-page.arduino-first-project-v027167 .yi-main{grid-template-columns:minmax(0,276px) 116px;gap:7px}
  body.arduino-page.arduino-first-project-v027167 .yi-shell[data-robot-side="left"] .yi-main{grid-template-columns:116px minmax(0,276px)}
  body.arduino-page.arduino-first-project-v027167 .yi-robot-stage{width:116px}
  body.arduino-page.arduino-first-project-v027167 .yi-robot{width:108px;height:139px}
}
@media(max-width:760px){
  body.arduino-page.arduino-first-project-v027167 .yi-shell{width:auto}
  body.arduino-page.arduino-first-project-v027167 .yi-main,
  body.arduino-page.arduino-first-project-v027167 .yi-shell[data-robot-side="left"] .yi-main{display:grid;grid-template-columns:minmax(0,1fr) 82px;gap:5px;align-items:end}
  body.arduino-page.arduino-first-project-v027167 .yi-shell[data-robot-side="left"] .yi-robot-stage{order:0}
  body.arduino-page.arduino-first-project-v027167 .yi-robot-stage{display:flex;width:82px;min-height:112px;margin:0}
  body.arduino-page.arduino-first-project-v027167 .yi-robot{width:76px;height:99px;margin-top:7px}
  body.arduino-page.arduino-first-project-v027167 .yi-bubble::after,
  body.arduino-page.arduino-first-project-v027167 .yi-thought{display:none}
}
@media(max-width:470px){
  body.arduino-page.arduino-first-project-v027167 .yi-main,
  body.arduino-page.arduino-first-project-v027167 .yi-shell[data-robot-side="left"] .yi-main{grid-template-columns:1fr}
  body.arduino-page.arduino-first-project-v027167 .yi-robot-stage{display:none}
}

/* --------------------------------------------------------------------------
   v0.27.49 — page-wide AIM Instructor movement + stronger AIM identity.
   The instructor is fixed to the browser page, not clipped by the workbench.
---------------------------------------------------------------------------- */
body.arduino-page.arduino-first-project-v027167 .yi-shell{
  position:fixed!important;
  z-index:11800!important;
  left:16px;
  top:84px;
  right:auto!important;
  bottom:auto!important;
  width:min(410px,calc(100vw - 24px))!important;
  max-width:calc(100vw - 20px)!important;
  pointer-events:none;
  transition:left .30s cubic-bezier(.2,.8,.2,1),top .30s cubic-bezier(.2,.8,.2,1),opacity .2s ease!important;
  contain:layout style;
}
body.arduino-page.arduino-first-project-v027167 .yi-shell.is-dragging{transition:none!important}
body.arduino-page.arduino-first-project-v027167 .yi-bubble{
  border-color:rgba(138,16,32,.28)!important;
  box-shadow:0 22px 56px rgba(8,17,22,.24),0 0 0 1px rgba(138,16,32,.05)!important;
}
body.arduino-page.arduino-first-project-v027167 .yi-bubble::before{
  content:'';position:absolute;left:20px;right:20px;top:0;height:3px;border-radius:0 0 99px 99px;
  background:linear-gradient(90deg,#bb1730,var(--yi-red) 68%,#650b16);opacity:.96;
}
body.arduino-page.arduino-first-project-v027167 .yi-header{
  background:linear-gradient(180deg,#fff 0%,#fff8f9 100%)!important;
}
body.arduino-page.arduino-first-project-v027167 .yi-brand-mark{
  background:linear-gradient(145deg,#b91833,var(--yi-red))!important;
  box-shadow:0 8px 20px rgba(138,16,32,.26)!important;
}
body.arduino-page.arduino-first-project-v027167 .yi-speech{
  border-color:rgba(138,16,32,.20)!important;
  background:linear-gradient(180deg,#fff5f7,#fffafb)!important;
  color:#642d37!important;
}
body.arduino-page.arduino-first-project-v027167 .yi-drag-chip{
  background:#fff7f8!important;border-color:rgba(138,16,32,.24)!important;color:var(--yi-red)!important;
}
body.arduino-page.arduino-first-project-v027167 .yi-robot.is-voice-speaking .yi-antenna-light{
  animation:yiVoicePulse .5s ease-in-out infinite alternate!important;
}
body.arduino-page.arduino-first-project-v027167 .yi-robot.is-voice-speaking .yi-chest-ring{
  filter:drop-shadow(0 0 7px rgba(185,23,48,.55));
}
@keyframes yiVoicePulse{from{opacity:.45;transform:scale(.78)}to{opacity:1;transform:scale(1.45)}}

/* The whole visible page is now available to AIM. On narrow touch screens the
   instructor still behaves as a safe bottom assistant rather than blocking UI. */
@media(max-width:760px){
  body.arduino-page.arduino-first-project-v027167 .yi-shell{
    position:fixed!important;left:8px!important;right:8px!important;top:auto!important;bottom:8px!important;width:auto!important;max-width:none!important;
  }
}
@media(prefers-reduced-motion:reduce){
  body.arduino-page.arduino-first-project-v027167 .yi-shell{transition:none!important}
}
body.arduino-page.arduino-first-project-v027167 .yi-robot.is-voice-speaking .yi-mouth{animation:yiTalk .22s ease-in-out infinite!important}


/* --------------------------------------------------------------------------
   v0.27.113 — research-informed first-build welcome and challenge treatment.
---------------------------------------------------------------------------- */
#aimLabEntry.ale-arduino-first-build .ale-card{width:min(820px,94vw);padding:30px 30px 24px}
#aimLabEntry.ale-arduino-first-build #aleTitle{max-width:690px;font-size:clamp(30px,4vw,44px);letter-spacing:-.045em}
#aimLabEntry.ale-arduino-first-build .ale-card>p{max-width:720px;font-size:15px;line-height:1.65}
#aimLabEntry.ale-arduino-first-build .ale-journey{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:22px 0 6px;padding:10px;border:1px solid #e7ecee;border-radius:16px;background:#f8fafb}
#aimLabEntry.ale-arduino-first-build .ale-journey span{display:flex;align-items:center;justify-content:center;gap:7px;min-height:34px;border-right:1px solid #e6ebed;font-size:11px;font-weight:850;color:#48616c;white-space:nowrap}
#aimLabEntry.ale-arduino-first-build .ale-journey span:last-child{border-right:0}
#aimLabEntry.ale-arduino-first-build .ale-journey b{display:grid;place-items:center;width:21px;height:21px;border-radius:50%;background:#8a1020;color:#fff;font-size:10px}
#aimLabEntry.ale-arduino-first-build .ale-choices{margin-top:16px}
#aimLabEntry.ale-arduino-first-build .ale-choice{min-height:150px}

body.arduino-page.arduino-first-project-v027167 .yi-shell[data-step="challenge"] .yi-stage{background:#8a1020;color:#fff}
body.arduino-page.arduino-first-project-v027167 .yi-shell[data-step="challenge"] .yi-bubble{box-shadow:0 0 0 5px rgba(138,16,32,.08),0 28px 74px rgba(8,17,22,.22)!important}
body.arduino-page.arduino-first-project-v027167 .yi-shell[data-step="challenge"] .yi-title{color:#781020}
body.arduino-page.arduino-first-project-v027167 .yi-shell[data-step="challenge"] .yi-tip{border-color:rgba(138,16,32,.18);background:#fff7f8}
body.arduino-page.arduino-first-project-v027167 .yi-shell[data-step="observe"] .yi-stage{background:#edf7f2;color:#136344}
body.arduino-page.arduino-first-project-v027167 .yi-actions .yi-bonus{background:#fff;border:1px solid rgba(138,16,32,.24);color:#8a1020;font-weight:850}
body.arduino-page.arduino-first-project-v027167 .yi-actions .yi-bonus:hover{background:#fff7f8}

@media(max-width:700px){
  #aimLabEntry.ale-arduino-first-build .ale-journey{grid-template-columns:1fr 1fr 1fr;padding:8px}
  #aimLabEntry.ale-arduino-first-build .ale-journey span{border-right:0;justify-content:flex-start;padding-left:8px}
  #aimLabEntry.ale-arduino-first-build .ale-journey span:nth-child(4),#aimLabEntry.ale-arduino-first-build .ale-journey span:nth-child(5){grid-column:auto}
}
@media(max-width:470px){
  #aimLabEntry.ale-arduino-first-build .ale-journey{grid-template-columns:1fr 1fr}
  #aimLabEntry.ale-arduino-first-build .ale-card{padding:22px 18px 18px}
}

/* --------------------------------------------------------------------------
   v0.27.176 — persistent AIM mentor for the post-build hardware challenge.
   The challenge remains inside AIM's own screen rather than collapsing to a toast.
---------------------------------------------------------------------------- */
body.arduino-page.arduino-first-project-v027167 .yi-shell.is-bonus .yi-stage{
  background:#8a1020;color:#fff;
}
body.arduino-page.arduino-first-project-v027167 .yi-shell.is-bonus .yi-bubble{
  box-shadow:0 0 0 5px rgba(138,16,32,.08),0 28px 74px rgba(8,17,22,.22)!important;
}
body.arduino-page.arduino-first-project-v027167 .yi-shell.is-bonus .yi-title{color:#781020}
body.arduino-page.arduino-first-project-v027167 .yi-bonus-checklist{
  display:grid;gap:5px;margin:8px 0 3px;
}
body.arduino-page.arduino-first-project-v027167 .yi-bonus-checklist[hidden]{display:none!important}
body.arduino-page.arduino-first-project-v027167 .yi-bonus-item{
  display:grid;grid-template-columns:22px minmax(0,1fr);align-items:center;gap:7px;
  min-height:38px;padding:6px 8px;border:1px solid #e5e9eb;border-radius:9px;background:#fbfcfc;
}
body.arduino-page.arduino-first-project-v027167 .yi-bonus-item>i{
  display:grid;place-items:center;width:20px;height:20px;border-radius:50%;font-style:normal;
  background:#eef1f2;color:#7d8b91;font-size:10px;font-weight:950;
}
body.arduino-page.arduino-first-project-v027167 .yi-bonus-item strong{
  display:block;color:#334a54;font-size:8.8px;line-height:1.25;font-weight:950;
}
body.arduino-page.arduino-first-project-v027167 .yi-bonus-item span{
  display:block;margin-top:1px;color:#718087;font-size:7.7px;line-height:1.3;font-weight:700;
}
body.arduino-page.arduino-first-project-v027167 .yi-bonus-item[data-done="true"]{
  border-color:rgba(34,139,91,.20);background:#f4fbf7;
}
body.arduino-page.arduino-first-project-v027167 .yi-bonus-item[data-done="true"]>i{
  background:#218b5b;color:#fff;box-shadow:0 0 0 3px rgba(33,139,91,.10);
}
body.arduino-page.arduino-first-project-v027167 .yi-bonus-item[data-done="true"] strong{color:#246545}
body.arduino-page.arduino-first-project-v027167 .yi-actions .yi-bonus-hint{
  margin-right:auto;background:#fff7f8;border-color:rgba(138,16,32,.22);color:#8a1020;
}
body.arduino-page.arduino-first-project-v027167 .yi-actions .yi-bonus-later{background:#fff;color:#5f7178}
body.arduino-page.arduino-first-project-v027167 .yi-shell.is-bonus-complete .yi-bonus-checklist{margin-top:7px}
@media(max-width:760px){
  body.arduino-page.arduino-first-project-v027167 .yi-bonus-item{min-height:34px;padding:5px 7px}
  body.arduino-page.arduino-first-project-v027167 .yi-bonus-item strong{font-size:8px}
  body.arduino-page.arduino-first-project-v027167 .yi-bonus-item span{font-size:7px}
}


/* ===== SOURCE: labs/arduino/hardware/resistor-physical-v027108.css ===== */
/* AIM STEM LAB v0.27.108 — resistor lead continuity refinement.
   Presentation-only: no seat, scale, pin or wiring-coordinate changes. */
body.arduino-page.arduino-resistor-physical-v027108 #parts .part-resistor{overflow:visible!important}
body.arduino-page.arduino-resistor-physical-v027108 #parts .part-resistor>wokwi-resistor{
  opacity:0!important;filter:none!important;pointer-events:auto!important;transform-origin:0 0!important
}
body.arduino-page.arduino-resistor-physical-v027108 #parts .part-resistor>.aim-resistor-physical{
  position:absolute!important;left:0!important;top:0!important;width:58.8px!important;height:11.3px!important;
  overflow:visible!important;transform-origin:0 0!important;pointer-events:none!important;z-index:4!important;
  filter:drop-shadow(0 1.35px 1.45px rgba(0,0,0,.25));shape-rendering:geometricPrecision
}
/* The canonical .pin controls remain generous but invisible. The only visible
   electrical object is the continuous metal lead itself. */
body.arduino-page.arduino-resistor-physical-v027108 #parts .part-resistor>.pin,
body.arduino-page.arduino-resistor-physical-v027108 #parts .part-resistor>.pin:hover,
body.arduino-page.arduino-resistor-physical-v027108 #parts .part-resistor>.pin:focus,
body.arduino-page.arduino-resistor-physical-v027108 #parts .part-resistor>.pin:focus-visible,
body.arduino-page.arduino-resistor-physical-v027108 #parts .part-resistor>.pin.pending,
body.arduino-page.arduino-resistor-physical-v027108 #parts .part-resistor>.pin.is-connected,
body.arduino-page.arduino-resistor-physical-v027108 #parts .part-resistor>.pin.wire-snap-target,
body.arduino-page.arduino-resistor-physical-v027108 #parts .part-resistor>.pin.phase5-source,
body.arduino-page.arduino-resistor-physical-v027108 #parts .part-resistor>.pin.first-project-target,
body.arduino-page.arduino-resistor-physical-v027108 #parts .part-resistor>.pin.guided-target,
body.arduino-page.arduino-resistor-physical-v027108 #parts .part-resistor>.pin.yi-guided-target{
  width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;
  transform:translate(-50%,-50%)!important;opacity:0!important;border:0!important;outline:0!important;
  background:transparent!important;background-image:none!important;box-shadow:none!important
}
body.arduino-page.arduino-resistor-physical-v027108 #parts .part-resistor>.pin::before,
body.arduino-page.arduino-resistor-physical-v027108 #parts .part-resistor>.pin::after{display:none!important;content:none!important}

body.arduino-page.arduino-resistor-physical-v027108 #parts .part-resistor .aim-resistor-lead,
body.arduino-page.arduino-resistor-physical-v027108 #parts .part-resistor .aim-resistor-lead-tip{
  transition:filter .12s ease,stroke-width .12s ease;vector-effect:none
}
/* Wiring feedback brightens only the final physical metal segment. No dot,
   square, ring or detached terminal marker is introduced. */
body.arduino-page.arduino-resistor-physical-v027108.aim-wire-mode #parts .part-resistor:has(>.pin[data-label="1"]:hover) .aim-resistor-lead-tip--1,
body.arduino-page.arduino-resistor-physical-v027108.aim-wire-mode #parts .part-resistor:has(>.pin[data-label="1"].wire-snap-target) .aim-resistor-lead-tip--1,
body.arduino-page.arduino-resistor-physical-v027108.aim-wire-mode #parts .part-resistor:has(>.pin[data-label="1"].pending) .aim-resistor-lead-tip--1,
body.arduino-page.arduino-resistor-physical-v027108.aim-wire-mode #parts .part-resistor:has(>.pin[data-label="2"]:hover) .aim-resistor-lead-tip--2,
body.arduino-page.arduino-resistor-physical-v027108.aim-wire-mode #parts .part-resistor:has(>.pin[data-label="2"].wire-snap-target) .aim-resistor-lead-tip--2,
body.arduino-page.arduino-resistor-physical-v027108.aim-wire-mode #parts .part-resistor:has(>.pin[data-label="2"].pending) .aim-resistor-lead-tip--2{
  filter:brightness(1.65) drop-shadow(0 0 .75px rgba(255,255,255,.94));stroke-width:1.94
}
body.arduino-page.arduino-resistor-physical-v027108 #parts .part-resistor[data-aim-resistor-orientation="vertical-trench"]>.aim-resistor-physical{
  filter:drop-shadow(1.15px 1.65px 1.55px rgba(0,0,0,.28))
}
/* Historical synthetic resistor seat/contact graphics stay suppressed. */
body.arduino-page.arduino-resistor-physical-v027108 #wires .breadboard-lead,
body.arduino-page.arduino-resistor-physical-v027108 #wires .breadboard-lead-contact,
body.arduino-page.arduino-resistor-physical-v027108 #wires .aim-precision-seat-lead,
body.arduino-page.arduino-resistor-physical-v027108 #wires .aim-precision-seat-contact,
body.arduino-page.arduino-resistor-physical-v027108 #wires .aim-wire-terminal-collar.is-resistor,
body.arduino-page.arduino-resistor-physical-v027108 #wires .aim-wire-terminal-plug.is-resistor{display:none!important;opacity:0!important}


/* ===== SOURCE: labs/arduino/core/coordinate-system-v2798.css ===== */
/* AIM STEM LAB v0.27.98 — coordinate system marker only.
   Phase 2 intentionally makes no visual redesign. */
body.arduino-page.arduino-coordinate-system-v2798 #bench{transform-origin:top left!important;}


/* ===== SOURCE: labs/arduino/breadboard/breadboard-placement-v027109.css ===== */
/* AIM STEM LAB v0.27.109 — clean resistor intent-locked breadboard placement */
body.arduino-page.arduino-breadboard-placement-v027109 #parts .part.aim-bb94-seated{
  z-index:18!important;
  transition:none!important;
}
body.arduino-page.arduino-breadboard-placement-v027109 #parts .part.aim-bb94-fit-ready:not(.part-breadboard):not(.part-breadboard_half):not(.part-breadboard_mini){
  filter:brightness(1.02) drop-shadow(0 2px 4px rgba(0,0,0,.18))!important;
}
/* Preview the actual existing breadboard holes only. No extra sockets/circles. */
body.arduino-page.arduino-breadboard-placement-v027109 #parts .part-breadboard>.pin.aim-bb94-target-hole,
body.arduino-page.arduino-breadboard-placement-v027109 #parts .part-breadboard_half>.pin.aim-bb94-target-hole,
body.arduino-page.arduino-breadboard-placement-v027109 #parts .part-breadboard_mini>.pin.aim-bb94-target-hole{
  box-shadow:0 0 0 2px rgba(29,196,145,.24)!important;
}
/* Seated part terminals remain electrically active but visually invisible. */
body.arduino-page.arduino-breadboard-placement-v027109 #parts .part.aim-bb94-seated>.pin,
body.arduino-page.arduino-breadboard-placement-v027109 #parts .part.aim-bb94-seated>.pin:hover,
body.arduino-page.arduino-breadboard-placement-v027109 #parts .part.aim-bb94-seated>.pin:focus-visible,
body.arduino-page.arduino-breadboard-placement-v027109 #parts .part.aim-bb94-seated>.pin.pending,
body.arduino-page.arduino-breadboard-placement-v027109 #parts .part.aim-bb94-seated>.pin.wire-snap-target{
  opacity:0!important;background:transparent!important;border-color:transparent!important;box-shadow:none!important;
}
body.arduino-page.arduino-breadboard-placement-v027109 #wires .breadboard-lead,
body.arduino-page.arduino-breadboard-placement-v027109 #wires .breadboard-lead-contact,
body.arduino-page.arduino-breadboard-placement-v027109 #wires .aim-precision-seat-lead,
body.arduino-page.arduino-breadboard-placement-v027109 #wires .aim-precision-seat-contact{
  display:none!important;opacity:0!important;
}
body.arduino-page.arduino-breadboard-placement-v027109 #parts .part-seat-badge{display:none!important}
@media(prefers-reduced-motion:reduce){
  body.arduino-page.arduino-breadboard-placement-v027109 #parts .part.aim-bb94-fit-ready{filter:none!important}
}

/* v0.27.109: resistor placement never uses green hole-ring previews. */
body.arduino-page.arduino-breadboard-placement-v027109 #parts .part-breadboard>.pin.aim-bb94-target-hole[data-aim-resistor-preview="1"]{box-shadow:none!important}

/* v0.27.109: resistor placement is represented by the real component only.
   No green hole rings, helper plugs, or synthetic lead contacts are allowed. */
body.arduino-page.arduino-breadboard-placement-v027109 #parts .part-resistor.aim-bb94-fit-ready{
  filter:brightness(1.025) drop-shadow(0 2px 4px rgba(0,0,0,.20))!important;
}
body.arduino-page.arduino-breadboard-placement-v027109 #parts .part-breadboard>.pin.aim-bb94-target-hole,
body.arduino-page.arduino-breadboard-placement-v027109 #parts .part-breadboard_half>.pin.aim-bb94-target-hole,
body.arduino-page.arduino-breadboard-placement-v027109 #parts .part-breadboard_mini>.pin.aim-bb94-target-hole{
  background:transparent!important;outline:0!important;
}


/* ===== SOURCE: labs/arduino/workbench/movement-engine-v027108.css ===== */
/* AIM STEM LAB v0.27.108 — one unified movement engine */
body.arduino-page.aim-movement-v027108 #parts .part{backface-visibility:hidden}
body.arduino-page.aim-movement-v027108 #parts .part>.handle{touch-action:none!important}
body.arduino-page.aim-movement-v027108 #parts .part.is-dragging,
body.arduino-page.aim-movement-v027108 #parts .part.aim-smooth-dragging,
body.arduino-page.aim-movement-v027108 #parts .part.aim-assembly-passenger,
body.arduino-page.aim-movement-v027108 #parts .part.aim-board-passenger{will-change:translate!important;transition:none!important}
body.arduino-page.aim-movement-v027108.aim-unified-moving #viewport{user-select:none!important;overscroll-behavior:none!important}
body.arduino-page.aim-movement-v027108.aim-unified-moving #parts .part.is-dragging>.handle,
body.arduino-page.aim-movement-v027108.aim-assembly-moving #parts .part>.handle{cursor:grabbing!important}
body.arduino-page .aim-move-circuit{width:auto!important;min-width:96px!important;padding:0 10px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;white-space:nowrap!important}
body.arduino-page .aim-move-circuit span{font-size:14px;line-height:1}
body.arduino-page .aim-move-circuit b{font-size:8px;font-weight:900;letter-spacing:.02em}
body.arduino-page .aim-move-circuit.is-active,body.arduino-page .aim-move-circuit[aria-pressed="true"]{background:#14a69e!important;border-color:#5be0d8!important;color:#fff!important;box-shadow:0 0 0 3px rgba(48,211,199,.14)!important}
body.arduino-page.aim-assembly-move-mode #parts .part{cursor:move!important}
body.arduino-page .part.aim-assembly-anchor{filter:drop-shadow(0 0 0 transparent) drop-shadow(0 0 10px rgba(67,220,205,.42))!important}
body.arduino-page.aim-assembly-moving #viewport,body.arduino-page.aim-assembly-moving #parts .part{cursor:grabbing!important}
body.arduino-page .part.breadboard-mounted,body.arduino-page .part.is-seated{z-index:14;opacity:1!important;visibility:visible!important;pointer-events:auto!important}
body.arduino-page.aim-breadboard-moving #parts .part.aim-board-passenger{z-index:15!important;opacity:1!important;visibility:visible!important;pointer-events:none!important}
body.arduino-page.aim-breadboard-moving #parts .part.part-breadboard{z-index:4!important;filter:drop-shadow(0 14px 22px rgba(0,0,0,.20))}
body.arduino-page #parts .part.part-breadboard{z-index:2!important}
body.arduino-page #parts .part.breadboard-mounted:hover,body.arduino-page #parts .part.is-seated:hover,body.arduino-page #parts .part.breadboard-mounted:focus-within,body.arduino-page #parts .part.is-seated:focus-within{z-index:18!important}
body.arduino-page #parts .part.breadboard-mounted.is-dragging,body.arduino-page #parts .part.is-seated.is-dragging{z-index:36!important}
body.arduino-page .part-seat-badge{display:none!important}
body.arduino-page #aimWireCard .aim-wire-card-head{cursor:grab!important;touch-action:none!important;user-select:none!important}
body.arduino-page #aimWireCard.is-tool-dragging .aim-wire-card-head{cursor:grabbing!important}
body.arduino-page #aimWireCard .aim-wire-card-head>*{pointer-events:auto}
@media(max-width:900px){body.arduino-page .aim-move-circuit{min-width:38px!important;width:38px!important;padding:0!important}body.arduino-page .aim-move-circuit b{display:none!important}}
@media(prefers-reduced-motion:reduce){body.arduino-page.aim-movement-v027108 #parts .part{transition:none!important}}


/* Phase 4.1 — seated components are manipulation-first surfaces.
   This rule intentionally comes after the wiring cursor stylesheet so a small
   component never inherits the breadboard hole's pointing-hand cursor. */
body.arduino-page.aim-movement-v027108 #parts .part.breadboard-mounted:not(.part-breadboard),
body.arduino-page.aim-movement-v027108 #parts .part.breadboard-mounted:not(.part-breadboard) *,
body.arduino-page.aim-movement-v027108 #parts .part.is-seated:not(.part-breadboard),
body.arduino-page.aim-movement-v027108 #parts .part.is-seated:not(.part-breadboard) *{
  cursor:grab!important;
}
body.arduino-page.aim-movement-v027108.aim-unified-moving #parts .part.breadboard-mounted.is-dragging,
body.arduino-page.aim-movement-v027108.aim-unified-moving #parts .part.breadboard-mounted.is-dragging *,
body.arduino-page.aim-movement-v027108.aim-unified-moving #parts .part.is-seated.is-dragging,
body.arduino-page.aim-movement-v027108.aim-unified-moving #parts .part.is-seated.is-dragging *{
  cursor:grabbing!important;
}


/* ===== SOURCE: labs/arduino/wiring/connection-engine-v027113.css ===== */
/* AIM STEM LAB v0.27.113 — explicit wire-mode terminal interaction
   Connection affordance is the native pointing-hand cursor. No crosshair / plus cue.
   The physical pin, lead or breadboard hole stays visually clean; the hit target remains invisible.
*/

/* Build/move is the default interaction. Invisible terminal hit targets are
   disabled until wiring is deliberately armed. This prevents a breadboard
   hole underneath a dragged component from starting a wire. */
body.arduino-page.arduino-connection-engine-v027113:not(.aim-wire-mode) #parts .pin{
  pointer-events:none!important;
  cursor:inherit!important;
}
body.arduino-page.arduino-connection-engine-v027113:not(.aim-wire-mode) #viewport.aim-terminal-detected-v2797,
body.arduino-page.arduino-connection-engine-v027113:not(.aim-wire-mode) #viewport.aim-terminal-detected-v2797 *{
  cursor:default!important;
}
body.arduino-page.arduino-connection-engine-v027113.aim-wire-mode #parts .pin{
  pointer-events:auto!important;
}
/* Re-introduce the Wire control hidden by the older approved UI. It is now the
   explicit mode switch rather than a modal shortcut. */
body.arduino-page.arduino-approved-v2713.arduino-connection-engine-v027113 .aim-wire-card-body #wirebuilder{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
}
body.arduino-page.arduino-connection-engine-v027113 .aim-wire-card-body #wirebuilder[aria-pressed="true"]{
  background:#0f766e!important;
  border-color:#5eead4!important;
  box-shadow:0 0 0 2px rgba(45,212,191,.16)!important;
}
body.arduino-page.arduino-connection-engine-v027113 #aimWireCard .aim-wire-card-state{
  min-width:74px!important;
  text-align:right!important;
}
body.arduino-page.arduino-connection-engine-v027113:not(.aim-wire-mode) #aimWireCard .aim-wire-card-state{
  opacity:.72!important;
}

body.arduino-page.arduino-connection-engine-v027113.aim-wire-mode #parts .pin,
body.arduino-page.arduino-connection-engine-v027113.aim-wire-mode #parts .pin:hover,
body.arduino-page.arduino-connection-engine-v027113.aim-wire-mode #parts .pin:focus,
body.arduino-page.arduino-connection-engine-v027113.aim-wire-mode #parts .pin:focus-visible,
body.arduino-page.arduino-connection-engine-v027113.aim-wire-mode #parts .pin.pending,
body.arduino-page.arduino-connection-engine-v027113.aim-wire-mode #parts .pin.phase5-source,
body.arduino-page.arduino-connection-engine-v027113.aim-wire-mode #parts .pin.phase5-group-peer,
body.arduino-page.arduino-connection-engine-v027113.aim-wire-mode #parts .pin.wire-snap-target,
body.arduino-page.arduino-connection-engine-v027113.aim-wire-mode #parts .pin.is-connected,
body.arduino-page.arduino-connection-engine-v027113.aim-wire-mode #parts .pin.suggested,
body.arduino-page.arduino-connection-engine-v027113.aim-wire-mode #parts .pin.guided-target,
body.arduino-page.arduino-connection-engine-v027113.aim-wire-mode #parts .pin.guided-origin,
body.arduino-page.arduino-connection-engine-v027113.aim-wire-mode #parts .pin.yi-guided-target,
body.arduino-page.arduino-connection-engine-v027113.aim-wire-mode #parts .pin.first-project-target{
  cursor:pointer!important;
  touch-action:none!important;
  background:transparent!important;
  background-image:none!important;
  border-color:transparent!important;
  box-shadow:none!important;
  outline:none!important;
}

/* Preserve generous invisible targets without drawing a socket/circle. */
body.arduino-page.arduino-connection-engine-v027113 #parts .part:not(.part-breadboard):not(.part-breadboard_half):not(.part-breadboard_mini)>.pin{
  width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;
  opacity:0!important;
}
body.arduino-page.arduino-connection-engine-v027113 #parts .part-uno>.pin{
  width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;
}
body.arduino-page.arduino-connection-engine-v027113 #parts .part-breadboard>.pin,
body.arduino-page.arduino-connection-engine-v027113 #parts .part-breadboard_half>.pin,
body.arduino-page.arduino-connection-engine-v027113 #parts .part-breadboard_mini>.pin{
  width:10px!important;height:10px!important;min-width:10px!important;min-height:10px!important;
  opacity:0!important;
}
body.arduino-page.arduino-connection-engine-v027113.aim-wire-mode #parts .pin::before,
body.arduino-page.arduino-connection-engine-v027113.aim-wire-mode #parts .pin::after{display:none!important;content:none!important}

/* Remove the old crosshair/plus-like cursor from every legacy wiring state. */
body.arduino-page.arduino-connection-engine-v027113 #bench.wire-preview-active,
body.arduino-page.arduino-connection-engine-v027113 #bench,
body.arduino-page.arduino-connection-engine-v027113 #viewport{cursor:default!important}
body.arduino-page.arduino-connection-engine-v027113.aim-wire-mode #viewport.aim-terminal-detected-v2797,
body.arduino-page.arduino-connection-engine-v027113.aim-wire-mode #viewport.aim-terminal-detected-v2797 *{cursor:pointer!important}
body.arduino-page.arduino-connection-engine-v027113.arduino-sim-running #parts .pin{cursor:default!important}

/* The physical component is the visual terminal. Keep wire endpoint ornaments hidden. */
body.arduino-page.arduino-connection-engine-v027113 #wires .aim-wire-terminal-collar,
body.arduino-page.arduino-connection-engine-v027113 #wires .aim-wire-terminal-plug,
body.arduino-page.arduino-connection-engine-v027113 #wire-preview .wire-preview-terminal,
body.arduino-page.arduino-connection-engine-v027113 #wires .wire-preview-terminal{display:none!important;opacity:0!important}

/* Permanent wire styling remains engineering-clean. */
body.arduino-page.arduino-connection-engine-v027113 #wires .aim-wire-v2797 .aim-wire-shadow{
  stroke-width:4.4!important;opacity:.5!important;pointer-events:none!important
}
body.arduino-page.arduino-connection-engine-v027113 #wires .aim-wire-v2797 .aim-wire-core{
  stroke-width:2.8!important;pointer-events:none!important
}
body.arduino-page.arduino-connection-engine-v027113 #wires .aim-wire-v2797 .aim-wire-hit{
  stroke-width:16!important;pointer-events:stroke!important;cursor:pointer!important
}

/* Compact instruction label, no artificial target bubble. */
body.arduino-page .aim-terminal-label-v2797{
  position:absolute;z-index:160;pointer-events:none;max-width:230px;padding:5px 7px;border-radius:7px;
  background:#071f28;color:#eefafa;border:1px solid #28505b;box-shadow:0 8px 22px rgba(0,13,18,.26);
  font:800 7px/1.25 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:.02em;
  white-space:nowrap
}
body.arduino-page .aim-terminal-label-v2797[hidden]{display:none!important}

/* Source/destination feedback is communicated through the component and preview line, not circles. */
body.arduino-page.arduino-connection-engine-v027113 #parts .part:has(>.pin.wire-snap-target),
body.arduino-page.arduino-connection-engine-v027113 #parts .part:has(>.pin.pending),
body.arduino-page.arduino-connection-engine-v027113 #parts .part:has(>.pin.phase5-source){
  filter:brightness(1.035) drop-shadow(0 3px 7px rgba(0,0,0,.14))!important
}
body.arduino-page.arduino-connection-engine-v027113 #parts .part-breadboard:has(>.pin.wire-snap-target),
body.arduino-page.arduino-connection-engine-v027113 #parts .part-breadboard:has(>.pin.pending),
body.arduino-page.arduino-connection-engine-v027113 #parts .part-breadboard:has(>.pin.phase5-source),
body.arduino-page.arduino-connection-engine-v027113 #parts .part-breadboard_half:has(>.pin.wire-snap-target),
body.arduino-page.arduino-connection-engine-v027113 #parts .part-breadboard_half:has(>.pin.pending),
body.arduino-page.arduino-connection-engine-v027113 #parts .part-breadboard_half:has(>.pin.phase5-source),
body.arduino-page.arduino-connection-engine-v027113 #parts .part-breadboard_mini:has(>.pin.wire-snap-target),
body.arduino-page.arduino-connection-engine-v027113 #parts .part-breadboard_mini:has(>.pin.pending),
body.arduino-page.arduino-connection-engine-v027113 #parts .part-breadboard_mini:has(>.pin.phase5-source){filter:none!important}

@media(pointer:coarse){
  body.arduino-page.arduino-connection-engine-v027113 #parts .part:not(.part-breadboard):not(.part-breadboard_half):not(.part-breadboard_mini)>.pin{
    width:26px!important;height:26px!important;min-width:26px!important;min-height:26px!important
  }
  body.arduino-page.arduino-connection-engine-v027113 #parts .part-breadboard>.pin,
body.arduino-page.arduino-connection-engine-v027113 #parts .part-breadboard_half>.pin,
body.arduino-page.arduino-connection-engine-v027113 #parts .part-breadboard_mini>.pin{
    width:14px!important;height:14px!important;min-width:14px!important;min-height:14px!important
  }
}

/* v0.27.113 wire card: explicit mode control + colour choices without crowding. */
body.arduino-page.arduino-approved-v2713.arduino-connection-engine-v027113 .aim-wire-card{
  width:270px!important;
}
body.arduino-page.arduino-approved-v2713.arduino-connection-engine-v027113 .aim-wire-card-head .aim-wire-card-state{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:70px!important;
  padding:4px 7px!important;
  font-size:6px!important;
}
body.arduino-page.arduino-approved-v2713.arduino-connection-engine-v027113 .aim-wire-card-body{
  display:grid!important;
  grid-template-columns:76px 1fr!important;
  gap:8px!important;
  justify-content:stretch!important;
  padding:9px 10px!important;
}
body.arduino-page.arduino-approved-v2713.arduino-connection-engine-v027113 .aim-wire-card-body #wirebuilder{
  width:76px!important;
  min-width:76px!important;
  height:30px!important;
  min-height:30px!important;
  padding:0 8px!important;
}
body.arduino-page.arduino-approved-v2713.arduino-connection-engine-v027113 .aim-wire-card-body .wire-palette{
  display:flex!important;
  gap:6px!important;
  justify-content:space-between!important;
  min-width:0!important;
}
body.arduino-page.arduino-approved-v2713.arduino-connection-engine-v027113 .aim-wire-card-body .wire-palette button{
  width:22px!important;height:22px!important;min-width:22px!important;min-height:22px!important;
}
@media(max-width:760px){
  body.arduino-page.arduino-approved-v2713.arduino-connection-engine-v027113 .aim-wire-card{width:244px!important}
  body.arduino-page.arduino-approved-v2713.arduino-connection-engine-v027113 .aim-wire-card-body{grid-template-columns:70px 1fr!important;gap:6px!important}
  body.arduino-page.arduino-approved-v2713.arduino-connection-engine-v027113 .aim-wire-card-body #wirebuilder{width:70px!important;min-width:70px!important}
  body.arduino-page.arduino-approved-v2713.arduino-connection-engine-v027113 .aim-wire-card-body .wire-palette{gap:4px!important}
}


/* ===== SOURCE: labs/arduino/core/core-stability-v027106.css ===== */
/* AIM STEM LAB v0.27.106 — physical resistor core-stability presentation guard */
body.arduino-page.arduino-core-stable-v027106 #wire-preview,
body.arduino-page.arduino-core-stable-v027106 #aimPrecisionPreview,
body.arduino-page.arduino-core-stable-v027106 #aimConnectionPreview2791,
body.arduino-page.arduino-core-stable-v027106 .wire-preview-terminal{display:none!important}
body.arduino-page.arduino-core-stable-v027106 #bench.wire-preview-active{cursor:default!important}


/* ===== SOURCE: labs/arduino/hardware/component-hit-precision-v027112.css ===== */
/* AIM STEM LAB v0.27.112 — physical-silhouette component hit precision. */

/* Positioning containers never own pointer input. */
body.arduino-page.aim-hit-precision-v027112 #parts .part{
  pointer-events:none!important;
}

/* Stock Wokwi hosts can contain large transparent rectangles. During Build and
   Wiring they are render sources only; compact AIM silhouette zones own drag. */
body.arduino-page.aim-hit-precision-v027112 #parts .part > .aim-hit-source-v027112{
  pointer-events:none!important;
}

/* Zero-footprint overlay: only its compact children can receive pointer input. */
body.arduino-page.aim-hit-precision-v027112 #parts .part > .aim-component-hit-layer-v027112{
  position:absolute!important;
  left:0!important;top:0!important;width:0!important;height:0!important;
  overflow:visible!important;
  z-index:8!important;
  pointer-events:none!important;
}
body.arduino-page.aim-hit-precision-v027112 #parts .part > .aim-component-hit-layer-v027112 > .aim-component-hit-zone-v027112{
  position:absolute!important;
  display:block!important;
  pointer-events:auto!important;
  touch-action:none!important;
  cursor:grab!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
body.arduino-page.aim-hit-precision-v027112.aim-unified-moving #parts .part.is-dragging > .aim-component-hit-layer-v027112 > .aim-component-hit-zone-v027112{
  cursor:grabbing!important;
}

/* Wiring mode belongs to terminals and breadboard holes, not component bodies.
   This guarantees that an LED body cannot mask the hole immediately beside it. */
body.arduino-page.aim-hit-precision-v027112.aim-wire-mode #parts .part > .aim-component-hit-layer-v027112 > .aim-component-hit-zone-v027112{
  pointer-events:none!important;
}

/* The approved resistor SVG already has true painted geometry. Keep it as the
   only special direct surface; never reactivate the hidden Wokwi resistor. */
body.arduino-page.aim-hit-precision-v027112 #parts .part-resistor > wokwi-resistor{
  pointer-events:none!important;
}
body.arduino-page.aim-hit-precision-v027112 #parts .part-resistor > .aim-resistor-physical.aim-physical-hit-surface-v027112{
  pointer-events:visiblePainted!important;
  touch-action:none!important;
  cursor:grab!important;
}
body.arduino-page.aim-hit-precision-v027112 #parts .part-resistor > .aim-resistor-physical.aim-physical-hit-surface-v027112 *{
  pointer-events:visiblePainted;
}
body.arduino-page.aim-hit-precision-v027112.aim-wire-mode #parts .part-resistor > .aim-resistor-physical.aim-physical-hit-surface-v027112{
  pointer-events:none!important;
}

/* Explicit controls remain usable even though the part wrapper is transparent. */
body.arduino-page.aim-hit-precision-v027112 #parts .part > .handle,
body.arduino-page.aim-hit-precision-v027112 #parts .part > .partcontrol{
  pointer-events:auto!important;
}

/* Build mode: no electrical target may intercept the physical manipulation
   surface or nearby board holes. */
body.arduino-page.aim-hit-precision-v027112:not(.aim-wire-mode) #parts .part > .pin{
  pointer-events:none!important;
}

/* Wiring mode: terminals are compact. Seated parts use a target close to one
   breadboard pitch, preventing one terminal from swallowing the next hole. */
body.arduino-page.aim-hit-precision-v027112.aim-wire-mode #parts .part > .pin{
  pointer-events:auto!important;
}
body.arduino-page.aim-hit-precision-v027112.aim-wire-mode #parts .part.breadboard-mounted:not(.part-breadboard):not(.part-breadboard_half):not(.part-breadboard_mini) > .pin,
body.arduino-page.aim-hit-precision-v027112.aim-wire-mode #parts .part.is-seated:not(.part-breadboard):not(.part-breadboard_half):not(.part-breadboard_mini) > .pin,
body.arduino-page.aim-hit-precision-v027112.aim-wire-mode #parts .part.seatedpart:not(.part-breadboard):not(.part-breadboard_half):not(.part-breadboard_mini) > .pin{
  width:9px!important;height:9px!important;min-width:9px!important;min-height:9px!important;
  z-index:24!important;
}

/* Breadboard holes are wiring targets only. */
body.arduino-page.aim-hit-precision-v027112:not(.aim-wire-mode) #parts .part-breadboard > .pin,
body.arduino-page.aim-hit-precision-v027112:not(.aim-wire-mode) #parts .part-breadboard_half > .pin,
body.arduino-page.aim-hit-precision-v027112:not(.aim-wire-mode) #parts .part-breadboard_mini > .pin{
  pointer-events:none!important;
}
body.arduino-page.aim-hit-precision-v027112.aim-wire-mode #parts .part-breadboard > .pin,
body.arduino-page.aim-hit-precision-v027112.aim-wire-mode #parts .part-breadboard_half > .pin,
body.arduino-page.aim-hit-precision-v027112.aim-wire-mode #parts .part-breadboard_mini > .pin{
  z-index:23!important;
}

/* Simulation restores real Wokwi controls and disables drag overlays. Movement
   is already blocked while running, so this does not reintroduce drag ambiguity. */
body.arduino-page.aim-hit-precision-v027112.arduino-sim-running #parts .part > .aim-hit-source-v027112,
body.arduino-page.aim-hit-precision-v027112.simulating #parts .part > .aim-hit-source-v027112{
  pointer-events:auto!important;
}
body.arduino-page.aim-hit-precision-v027112.arduino-sim-running #parts .part > .aim-component-hit-layer-v027112 > .aim-component-hit-zone-v027112,
body.arduino-page.aim-hit-precision-v027112.simulating #parts .part > .aim-component-hit-layer-v027112 > .aim-component-hit-zone-v027112{
  pointer-events:none!important;
}


/* ===== SOURCE: labs/arduino/wiring/wire-card-v027114.css ===== */
/* AIM STEM LAB v0.27.114 — Wire colour card visual refinement
   Presentation only. Wiring state, terminal ownership and connection logic remain unchanged.
*/
body.arduino-page #aimWireCard{
  position:absolute!important;
  width:314px!important;
  max-width:calc(100% - 16px)!important;
  border-radius:15px!important;
  border:1px solid rgba(74,139,151,.72)!important;
  background:linear-gradient(180deg,#0a3743 0%,#082f3a 100%)!important;
  box-shadow:0 20px 42px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.035)!important;
  overflow:hidden!important;
  color:#edf7f8!important;
}

body.arduino-page #aimWireCard .aim-wire-card-head::after{display:none!important;content:none!important}

body.arduino-page #aimWireCard .aim-wire-card-head{
  position:relative!important;
  height:52px!important;
  min-height:52px!important;
  padding:0 46px 0 12px!important;
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  border-bottom:1px solid rgba(128,190,201,.18)!important;
  background:linear-gradient(180deg,#0c3d49 0%,#0a3743 100%)!important;
}
body.arduino-page #aimWireCard .aim-wire-card-grip{
  width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;
  padding:0!important;border:0!important;border-radius:8px!important;background:transparent!important;
  color:#8fc3cc!important;font-size:15px!important;line-height:1!important;opacity:.9!important;
}
body.arduino-page #aimWireCard .aim-wire-card-head>div{
  flex:0 0 auto!important;min-width:0!important;display:flex!important;align-items:center!important;
}
body.arduino-page #aimWireCard .aim-wire-card-head>div small{display:none!important}
body.arduino-page #aimWireCard .aim-wire-card-head>div strong{
  font-size:0!important;line-height:1!important;color:#f4fbfc!important;font-weight:850!important;
}
body.arduino-page #aimWireCard .aim-wire-card-head>div strong::before{
  content:'Wire Color';font-size:13px!important;line-height:1!important;letter-spacing:-.01em!important;
}
body.arduino-page #aimWireCard .aim-wire-card-state{
  margin-left:auto!important;min-width:0!important;width:auto!important;max-width:118px!important;
  height:30px!important;padding:0 10px!important;border-radius:999px!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;
  border:1px solid rgba(72,151,153,.28)!important;background:rgba(10,75,79,.38)!important;
  color:#d9f4f1!important;font-size:8px!important;font-weight:850!important;line-height:1!important;
  text-align:center!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;
}
body.arduino-page #aimWireCard .aim-wire-card-state::before{
  content:'';width:7px;height:7px;min-width:7px;border-radius:50%;background:#35e0bd;
  box-shadow:0 0 0 3px rgba(53,224,189,.08),0 0 9px rgba(53,224,189,.34);
}
body.arduino-page:not(.aim-wire-mode) #aimWireCard .aim-wire-card-state::before{
  background:#799aa1;box-shadow:none;
}

/* The existing cancel action is visually promoted into the header. */
body.arduino-page #aimWireCard .aim-wire-card-body #cancelwire{
  position:absolute!important;z-index:5!important;right:9px!important;top:9px!important;
  width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;
  padding:0!important;border-radius:10px!important;border:1px solid #8f4650!important;
  background:linear-gradient(180deg,#7f303b 0%,#672631 100%)!important;
  box-shadow:0 5px 12px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.06)!important;
  color:#fff!important;font-size:0!important;
}
body.arduino-page #aimWireCard .aim-wire-card-body #cancelwire::after{
  content:'×'!important;font-size:18px!important;font-weight:500!important;line-height:1!important;color:#fff!important;
}
body.arduino-page #aimWireCard .aim-wire-card-body #cancelwire:hover{background:#8a3440!important}

body.arduino-page #aimWireCard .aim-wire-card-body{
  min-height:74px!important;padding:10px 12px!important;
  display:grid!important;grid-template-columns:88px minmax(0,1fr)!important;align-items:center!important;
  gap:10px!important;justify-content:stretch!important;background:rgba(4,39,49,.16)!important;
}
body.arduino-page #aimWireCard .aim-wire-card-body .wire-colour{display:none!important}
body.arduino-page #aimWireCard .aim-wire-card-body #wirebuilder{
  width:88px!important;min-width:88px!important;height:54px!important;min-height:54px!important;
  padding:6px 8px!important;border-radius:12px!important;border:1px solid #376c76!important;
  background:linear-gradient(180deg,#0e4854 0%,#0b3d48 100%)!important;color:#e9f6f7!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 5px 12px rgba(0,0,0,.12)!important;
  display:grid!important;grid-template-rows:16px 18px!important;place-items:center!important;align-content:center!important;
  gap:2px!important;font-size:0!important;line-height:1!important;text-align:center!important;
}
body.arduino-page #aimWireCard .aim-wire-card-body #wirebuilder::before{
  content:'✦';display:block;font-size:13px!important;line-height:1!important;font-weight:900!important;color:#a8cbd1!important;
}
body.arduino-page #aimWireCard .aim-wire-card-body #wirebuilder::after{
  content:'Wire';display:block;font-size:10px!important;line-height:1!important;font-weight:900!important;color:#eef8f9!important;
}
body.arduino-page #aimWireCard .aim-wire-card-body #wirebuilder[aria-pressed="true"]{
  background:linear-gradient(180deg,#0f8f80 0%,#0d756d 100%)!important;
  border-color:#2bd1bc!important;box-shadow:0 0 0 3px rgba(33,205,183,.12),inset 0 1px 0 rgba(255,255,255,.08)!important;
}
body.arduino-page #aimWireCard .aim-wire-card-body #wirebuilder[aria-pressed="true"]::before{
  content:'✓';font-size:15px!important;color:#f1fffc!important;
}
body.arduino-page #aimWireCard .aim-wire-card-body #wirebuilder[aria-pressed="true"]::after{
  content:'Wiring';font-size:10px!important;color:#fff!important;
}

body.arduino-page #aimWireCard .aim-wire-card-body .wire-palette{
  width:100%!important;min-width:0!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:5px!important;overflow:visible!important;
}
body.arduino-page #aimWireCard .aim-wire-card-body .wire-palette button{
  width:26px!important;height:26px!important;min-width:26px!important;min-height:26px!important;
  padding:0!important;border-radius:50%!important;border:2px solid rgba(255,255,255,.30)!important;
  background:var(--swatch)!important;box-shadow:0 3px 7px rgba(0,0,0,.20),inset 0 1px 1px rgba(255,255,255,.14)!important;
  transform:none!important;transition:box-shadow .12s ease,border-color .12s ease,transform .12s ease!important;
}
body.arduino-page #aimWireCard .aim-wire-card-body .wire-palette button:hover{transform:translateY(-1px)!important}
body.arduino-page #aimWireCard .aim-wire-card-body .wire-palette button.is-active{
  border-color:#e8ffff!important;box-shadow:0 0 0 2px #e8ffff,0 0 0 4px rgba(54,222,214,.34),0 5px 10px rgba(0,0,0,.23)!important;
}

body.arduino-page #aimWireCard .aim-wire-layer-control{
  min-height:62px!important;margin:0!important;padding:10px 12px!important;
  border-top:1px solid rgba(128,190,201,.18)!important;background:rgba(3,31,40,.22)!important;
  display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:12px!important;align-items:center!important;
}
body.arduino-page #aimWireCard .aim-wire-layer-copy small{
  display:block!important;margin:0 0 3px!important;color:#89aeb5!important;font-size:7px!important;line-height:1!important;
  font-weight:900!important;letter-spacing:.13em!important;
}
body.arduino-page #aimWireCard .aim-wire-layer-copy strong{
  display:block!important;margin:0!important;color:#eff8f9!important;font-size:11px!important;line-height:1.15!important;font-weight:850!important;
}
body.arduino-page #aimWireCard .aim-wire-layer-tabs{
  display:grid!important;grid-template-columns:1fr 1fr!important;width:118px!important;height:34px!important;padding:2px!important;
  border:1px solid #3d6973!important;border-radius:10px!important;background:#082a34!important;overflow:hidden!important;
}
body.arduino-page #aimWireCard .aim-wire-layer-tabs button{
  min-width:0!important;height:28px!important;min-height:28px!important;padding:0 8px!important;border:0!important;border-radius:8px!important;
  background:transparent!important;color:#8fb0b6!important;font-size:8px!important;font-weight:900!important;line-height:1!important;box-shadow:none!important;
}
body.arduino-page #aimWireCard .aim-wire-layer-tabs button.is-active,
body.arduino-page #aimWireCard .aim-wire-layer-tabs button[aria-pressed="true"]{
  background:#eefaf8!important;color:#0a5960!important;box-shadow:0 2px 7px rgba(0,0,0,.18)!important;
}

@media(max-width:760px){
  body.arduino-page #aimWireCard{width:284px!important}
  body.arduino-page #aimWireCard .aim-wire-card-head{height:48px!important;min-height:48px!important;padding-left:10px!important}
  body.arduino-page #aimWireCard .aim-wire-card-state{max-width:100px!important;padding:0 8px!important;font-size:7px!important}
  body.arduino-page #aimWireCard .aim-wire-card-body{grid-template-columns:80px minmax(0,1fr)!important;gap:8px!important;padding:9px 10px!important}
  body.arduino-page #aimWireCard .aim-wire-card-body #wirebuilder{width:80px!important;min-width:80px!important;height:50px!important;min-height:50px!important}
  body.arduino-page #aimWireCard .aim-wire-card-body .wire-palette{gap:4px!important}
  body.arduino-page #aimWireCard .aim-wire-card-body .wire-palette button{width:23px!important;height:23px!important;min-width:23px!important;min-height:23px!important}
  body.arduino-page #aimWireCard .aim-wire-layer-control{grid-template-columns:minmax(0,1fr) 108px!important;gap:8px!important;padding:9px 10px!important}
  body.arduino-page #aimWireCard .aim-wire-layer-tabs{width:108px!important}
}


/* ===== SOURCE: labs/arduino/design/wire-card-compact-v027116.css ===== */
/* AIM STEM LAB v0.27.116
   Compact refinement for the Arduino wire colour card.
   Goal: reduce the card footprint so it sits on the workbench without taking too much space.
   Presentation only; no wiring logic or behaviour changes.
*/

body.arduino-page #aimWireCard{
  width:272px!important;
  max-width:calc(100% - 16px)!important;
  border-radius:14px!important;
}

body.arduino-page #aimWireCard .aim-wire-card-head{
  height:46px!important;
  min-height:46px!important;
  padding:0 40px 0 10px!important;
  gap:8px!important;
}

body.arduino-page #aimWireCard .aim-wire-card-grip{
  width:24px!important;
  height:24px!important;
  min-width:24px!important;
  min-height:24px!important;
  font-size:13px!important;
}

body.arduino-page #aimWireCard .aim-wire-card-head>div strong::before{
  font-size:12px!important;
}

body.arduino-page #aimWireCard .aim-wire-card-state{
  max-width:96px!important;
  height:26px!important;
  padding:0 8px!important;
  font-size:7px!important;
}
body.arduino-page #aimWireCard .aim-wire-card-state::before{
  width:6px!important;
  height:6px!important;
  min-width:6px!important;
}

body.arduino-page #aimWireCard .aim-wire-card-body #cancelwire{
  right:7px!important;
  top:7px!important;
  width:30px!important;
  height:30px!important;
  min-width:30px!important;
  min-height:30px!important;
  border-radius:9px!important;
}
body.arduino-page #aimWireCard .aim-wire-card-body #cancelwire::after{
  font-size:16px!important;
}

body.arduino-page #aimWireCard .aim-wire-card-body{
  min-height:64px!important;
  padding:9px 10px!important;
  grid-template-columns:74px minmax(0,1fr)!important;
  gap:9px!important;
}

body.arduino-page #aimWireCard .aim-wire-card-body #wirebuilder{
  width:74px!important;
  min-width:74px!important;
  height:48px!important;
  min-height:48px!important;
  border-radius:11px!important;
  grid-template-rows:14px 16px!important;
}
body.arduino-page #aimWireCard .aim-wire-card-body #wirebuilder::before{
  font-size:12px!important;
}
body.arduino-page #aimWireCard .aim-wire-card-body #wirebuilder::after,
body.arduino-page #aimWireCard .aim-wire-card-body #wirebuilder[aria-pressed="true"]::after{
  font-size:9px!important;
}
body.arduino-page #aimWireCard .aim-wire-card-body #wirebuilder[aria-pressed="true"]::before{
  font-size:14px!important;
}

body.arduino-page #aimWireCard .aim-wire-card-body .wire-palette{
  justify-content:flex-start!important;
  flex-wrap:wrap!important;
  gap:7px!important;
}
body.arduino-page #aimWireCard .aim-wire-card-body .wire-palette button{
  width:23px!important;
  height:23px!important;
  min-width:23px!important;
  min-height:23px!important;
}

body.arduino-page #aimWireCard .aim-wire-layer-control{
  min-height:54px!important;
  padding:8px 10px!important;
  gap:10px!important;
}
body.arduino-page #aimWireCard .aim-wire-layer-copy small{
  margin-bottom:2px!important;
  font-size:6.5px!important;
}
body.arduino-page #aimWireCard .aim-wire-layer-copy strong{
  font-size:10px!important;
}
body.arduino-page #aimWireCard .aim-wire-layer-tabs{
  width:104px!important;
  height:32px!important;
}
body.arduino-page #aimWireCard .aim-wire-layer-tabs button{
  height:26px!important;
  min-height:26px!important;
  font-size:7px!important;
  padding:0 6px!important;
}

@media (max-width:760px){
  body.arduino-page #aimWireCard{
    width:248px!important;
  }
  body.arduino-page #aimWireCard .aim-wire-card-head{
    height:44px!important;
    min-height:44px!important;
  }
  body.arduino-page #aimWireCard .aim-wire-card-body{
    grid-template-columns:68px minmax(0,1fr)!important;
    gap:8px!important;
    padding:8px 9px!important;
  }
  body.arduino-page #aimWireCard .aim-wire-card-body #wirebuilder{
    width:68px!important;
    min-width:68px!important;
    height:45px!important;
    min-height:45px!important;
  }
  body.arduino-page #aimWireCard .aim-wire-card-body .wire-palette{
    gap:6px!important;
  }
  body.arduino-page #aimWireCard .aim-wire-card-body .wire-palette button{
    width:21px!important;
    height:21px!important;
    min-width:21px!important;
    min-height:21px!important;
  }
  body.arduino-page #aimWireCard .aim-wire-layer-control{
    grid-template-columns:minmax(0,1fr) 98px!important;
    padding:8px 9px!important;
  }
  body.arduino-page #aimWireCard .aim-wire-layer-tabs{
    width:98px!important;
  }
}


/* ===== SOURCE: labs/arduino/design/modal-popups-v027117.css ===== */
/* AIM STEM LAB v0.27.117
   Arduino popup refinement: elevate shared dialog styling with the official AIM logo colour
   as the default accent while preserving existing modal behaviour and workflow logic.
*/

:root{
  --aim-modal-bg: linear-gradient(180deg, rgba(255,252,252,.985) 0%, rgba(250,244,245,.985) 100%);
  --aim-modal-surface: rgba(255,255,255,.92);
  --aim-modal-border: rgba(157,23,40,.16);
  --aim-modal-border-strong: rgba(157,23,40,.28);
  --aim-modal-shadow: 0 34px 90px rgba(14, 18, 24, .26);
  --aim-modal-title: #75111f;
  --aim-modal-title-strong: #5f0d18;
  --aim-modal-text: #4f5d66;
  --aim-modal-muted: #7c6b73;
  --aim-modal-subtle: #fff4f6;
  --aim-modal-chip: rgba(157,23,40,.08);
  --aim-modal-primary: #9d1728;
  --aim-modal-primary-strong: #7f0f1d;
  --aim-modal-primary-soft: rgba(157,23,40,.10);
  --aim-modal-highlight: rgba(212, 90, 109, .18);
  --aim-modal-backdrop: rgba(8, 14, 20, .52);
}

#modal{
  position:relative;
  width:min(700px, calc(100vw - 2rem));
  max-width:700px;
  border:1px solid var(--aim-modal-border);
  border-radius:28px;
  padding:0;
  color:var(--aim-modal-text);
  background:var(--aim-modal-bg);
  box-shadow:var(--aim-modal-shadow);
  overflow:hidden;
}

#modal[open]{
  animation:aimModalRise .22s ease-out;
}

#modal::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:6px;
  background:linear-gradient(90deg, #9d1728 0%, #bf3347 52%, #7f0f1d 100%);
}

#modal::after{
  content:"";
  position:absolute;
  inset:18px 18px auto auto;
  width:180px;
  height:180px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(157,23,40,.08) 0%, rgba(157,23,40,0) 70%);
  pointer-events:none;
  filter:blur(2px);
}

#modal::backdrop{
  background:var(--aim-modal-backdrop);
  backdrop-filter:blur(9px) saturate(1.02);
}

#modal .close{
  position:absolute;
  top:18px;
  right:18px;
  z-index:2;
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid rgba(157,23,40,.14);
  border-radius:16px;
  background:rgba(255,255,255,.86);
  color:#7d2330;
  font-size:20px;
  line-height:1;
  box-shadow:0 10px 22px rgba(33, 19, 24, .09);
  transition:background .18s ease, border-color .18s ease, transform .18s ease, color .18s ease, box-shadow .18s ease;
}

#modal .close:hover{
  background:#fff7f8;
  border-color:var(--aim-modal-border-strong);
  color:var(--aim-modal-title-strong);
  transform:translateY(-1px);
  box-shadow:0 12px 24px rgba(33, 19, 24, .14);
}

#modalcontent{
  position:relative;
  padding:34px 32px 28px;
  display:flex;
  flex-direction:column;
  gap:15px;
}

#modalcontent .eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  width:max-content;
  max-width:calc(100% - 82px);
  padding:8px 13px;
  border:1px solid rgba(157,23,40,.10);
  border-radius:999px;
  background:linear-gradient(180deg, rgba(157,23,40,.10) 0%, rgba(157,23,40,.05) 100%);
  color:var(--aim-modal-primary);
  letter-spacing:.12em;
  font-size:11px;
  font-weight:900;
}

#modalcontent h2{
  margin:0;
  max-width:calc(100% - 92px);
  color:var(--aim-modal-title);
  font:900 clamp(1.75rem, 1.42rem + .8vw, 2.35rem) Manrope, "DM Sans", sans-serif;
  line-height:1.08;
  letter-spacing:-.04em;
  text-wrap:balance;
}

#modalcontent p,
#modalcontent li,
#modalcontent label,
#modalcontent details,
#modalcontent summary,
#modalcontent select,
#modalcontent input{
  color:var(--aim-modal-text);
}

#modalcontent p,
#modalcontent li{
  margin:0;
  font-size:16px;
  line-height:1.72;
}

#modalcontent > p:last-of-type{
  margin-bottom:4px;
}

#modalcontent details,
#modalcontent .factbox,
#modalcontent .fieldnote,
#modalcontent .connectionlist,
#modalcontent .wireform,
#modalcontent .propertyfield{
  background:linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(255,249,250,.86) 100%);
  border:1px solid rgba(157,23,40,.10);
  border-radius:18px;
  box-shadow:0 10px 24px rgba(26, 18, 21, .04);
}

#modalcontent details{
  padding:14px 16px;
}

#modalcontent summary{
  cursor:pointer;
  font-weight:800;
  color:var(--aim-modal-title);
}

#modalcontent details p{
  margin-top:10px;
}

#modalcontent .factbox,
#modalcontent .fieldnote{
  padding:14px 16px;
}

#modalcontent .factbox strong{
  display:block;
  margin-bottom:8px;
  color:var(--aim-modal-title);
}

#modalcontent .wireform{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  gap:12px;
  padding:14px;
  align-items:end;
}

#modalcontent .wireform label,
#modalcontent .propertyfield{
  display:flex;
  flex-direction:column;
  gap:8px;
  font-size:13px;
  font-weight:800;
  color:var(--aim-modal-muted);
}

#modalcontent .connectionarrow{
  align-self:center;
  font-size:24px;
  color:var(--aim-modal-primary);
}

#modalcontent select,
#modalcontent input:not([type="checkbox"]):not([type="radio"]):not([type="range"]){
  width:100%;
  min-height:48px;
  padding:0 14px;
  border:1px solid rgba(157,23,40,.15);
  border-radius:14px;
  background:#fff;
  color:var(--aim-modal-title);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55);
}

#modalcontent select:focus,
#modalcontent input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus{
  outline:none;
  border-color:rgba(157,23,40,.42);
  box-shadow:0 0 0 4px rgba(157,23,40,.10);
}

#modalcontent button{
  min-height:48px;
  border-radius:15px;
  font-weight:800;
  transition:transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}

#modalcontent button:hover{
  transform:translateY(-1px);
}

#modalcontent > button,
#modalcontent .touractions button,
#modalcontent .connectionrow button,
#modalcontent .propertyfield + button,
#modalcontent .factbox + button,
#modalcontent details + button{
  border:1px solid rgba(157,23,40,.14);
  background:#fff;
  color:var(--aim-modal-title);
}

#modalcontent > button.primary,
#modalcontent .touractions button.primary,
#modalcontent #connectpins,
#modalcontent #startbuilding,
#modalcontent #confirmcode,
#modalcontent #confirmreset,
#modalcontent #confirmbread,
#modalcontent #applypart,
#modalcontent #tournext{
  background:linear-gradient(180deg, #9d1728 0%, #7f0f1d 100%);
  border-color:#7f0f1d;
  color:#fff;
  box-shadow:0 16px 30px rgba(157,23,40,.22);
}

#modalcontent > button.primary:hover,
#modalcontent .touractions button.primary:hover,
#modalcontent #connectpins:hover,
#modalcontent #startbuilding:hover,
#modalcontent #confirmcode:hover,
#modalcontent #confirmreset:hover,
#modalcontent #confirmbread:hover,
#modalcontent #applypart:hover,
#modalcontent #tournext:hover{
  background:linear-gradient(180deg, #b11d31 0%, #8a1221 100%);
}

#modalcontent > button:not(.primary):hover,
#modalcontent .touractions button:not(.primary):hover,
#modalcontent .connectionrow button:hover,
#modalcontent #wirethispart:hover,
#modalcontent #tourback:hover,
#modalcontent #tourskip:hover{
  background:var(--aim-modal-subtle);
  border-color:var(--aim-modal-border-strong);
  color:var(--aim-modal-primary-strong);
}

#modalcontent > button:last-child,
#modalcontent > button.primary:last-child,
#modalcontent #confirmcode,
#modalcontent #confirmreset,
#modalcontent #confirmbread,
#modalcontent #startbuilding,
#modalcontent #connectpins{
  width:100%;
}

#modalcontent .connectionsheading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:4px 0 0;
  color:var(--aim-modal-title);
  font:800 1rem Manrope, "DM Sans", sans-serif;
}

#modalcontent .connectionsheading span{
  min-width:34px;
  height:34px;
  display:grid;
  place-items:center;
  padding:0 10px;
  border-radius:999px;
  background:var(--aim-modal-chip);
  color:var(--aim-modal-primary);
  font-size:13px;
  font-weight:900;
}

#modalcontent .connectionlist{
  display:grid;
  gap:10px;
  max-height:240px;
  overflow:auto;
  padding:12px;
}

#modalcontent .connectionrow,
#modalcontent .connectionlist > p{
  display:flex;
  align-items:center;
  gap:12px;
  margin:0;
  padding:12px 14px;
  border-radius:14px;
  background:#fff;
  border:1px solid rgba(157,23,40,.08);
  font-size:13px;
}

#modalcontent .connectionrow i{
  width:14px;
  height:14px;
  flex:0 0 14px;
  border-radius:50%;
  box-shadow:0 0 0 4px rgba(157,23,40,.08);
}

#modalcontent .connectionrow span{
  flex:1;
  min-width:0;
  font-family:Consolas, Monaco, monospace;
  color:var(--aim-modal-title);
}

#modalcontent .connectionrow button{
  width:38px;
  min-width:38px;
  min-height:38px;
  padding:0;
  border-radius:12px;
  font-size:18px;
  line-height:1;
}

#modalcontent .tourprogress{
  display:flex;
  gap:8px;
  align-items:center;
}

#modalcontent .tourprogress span{
  width:34px;
  height:8px;
  border-radius:999px;
  background:rgba(157,23,40,.14);
}

#modalcontent .tourprogress span.current{
  width:48px;
  background:linear-gradient(90deg, #bf3347 0%, #9d1728 100%);
}

#modalcontent .touractions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  padding-top:4px;
}

#modalcontent .touractions button{
  flex:1 1 140px;
}

#modalcontent .success{
  color:var(--aim-modal-primary-strong);
}

#modalcontent .issue{
  color:#b45332;
}

@keyframes aimModalRise{
  from{
    opacity:0;
    transform:translateY(14px) scale(.98);
  }
  to{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}

@media (max-width:720px){
  #modal{
    width:calc(100vw - 1rem);
    border-radius:24px;
  }

  #modalcontent{
    padding:24px 18px 18px;
    gap:12px;
  }

  #modalcontent h2{
    max-width:calc(100% - 60px);
    font-size:1.7rem;
  }

  #modalcontent .eyebrow{
    max-width:calc(100% - 60px);
  }

  #modal .close{
    top:14px;
    right:14px;
    width:40px;
    height:40px;
    border-radius:14px;
  }

  #modalcontent .wireform{
    grid-template-columns:1fr;
  }

  #modalcontent .connectionarrow{
    justify-self:center;
    transform:rotate(90deg);
  }

  #modalcontent .touractions button{
    flex:1 1 100%;
  }
}


/* ===== SOURCE: labs/arduino/design/modal-popups-v027140.css ===== */
/* AIM STEM LAB v0.27.140 — professional, simplified Arduino modal system */
:root{
  --aim-popup-red:#99172a;
  --aim-popup-red-dark:#7b1020;
  --aim-popup-text:#344a54;
  --aim-popup-muted:#718087;
  --aim-popup-line:#eadadd;
  --aim-popup-soft:#fff8f9;
}

/* Shared Arduino modal refinement */
body.arduino-page #modal{
  width:min(680px,calc(100vw - 32px));
  max-width:680px;
  max-height:min(82dvh,780px);
  border:1px solid rgba(153,23,42,.14);
  border-radius:20px;
  background:#fff;
  box-shadow:0 30px 90px rgba(5,20,28,.30);
  overflow:hidden;
}
body.arduino-page #modal::before{height:5px;background:var(--aim-popup-red)}
body.arduino-page #modal::after{display:none}
body.arduino-page #modal::backdrop{background:rgba(4,17,24,.58);backdrop-filter:blur(7px)}
body.arduino-page #modal .close{
  top:16px;right:16px;width:42px;height:42px;min-height:42px;padding:0;
  border:1px solid #eadfe1;border-radius:50%;background:#fff;color:#8b1728;
  box-shadow:0 6px 18px rgba(33,22,25,.06);font-size:20px;font-weight:400;
}
body.arduino-page #modal .close:hover{background:#fff6f7;border-color:#d8b6bc;transform:none;box-shadow:0 7px 18px rgba(33,22,25,.08)}
body.arduino-page #modalcontent{padding:28px 30px 26px;gap:13px}
body.arduino-page #modalcontent .eyebrow{
  padding:7px 12px;background:#fbf0f2;border:1px solid #efdadd;color:#8f1628;
  font-size:10px;letter-spacing:.7px;font-weight:850;
}
body.arduino-page #modalcontent h2{
  margin:2px 56px 0 0;max-width:none;color:#821327;
  font:850 clamp(26px,3vw,35px)/1.08 Manrope,"DM Sans",sans-serif;letter-spacing:-.035em;
}
body.arduino-page #modalcontent p,body.arduino-page #modalcontent li{font-size:14px;line-height:1.62;color:var(--aim-popup-text)}
body.arduino-page #modalcontent > button{min-height:48px;border-radius:12px}

/* Component inspector — matches approved visual direction */
body.arduino-page #modal.aim-part-inspector-dialog{width:min(720px,calc(100vw - 32px));max-width:720px}
body.arduino-page #modal.aim-part-inspector-dialog #modalcontent{padding:30px 32px 28px}
body.arduino-page .aim-part-inspector{display:flex;flex-direction:column;gap:14px}
body.arduino-page .aim-part-inspector .eyebrow{align-self:flex-start}
body.arduino-page .aim-part-inspector h2{margin-top:3px}
body.arduino-page .aim-inspector-lead{margin:0 0 4px!important;max-width:95%;font-size:15px!important;line-height:1.55!important}
body.arduino-page .aim-pin-card{
  display:grid!important;grid-template-columns:74px minmax(0,1fr);align-items:center;gap:16px;
  padding:18px 20px!important;border:1px solid #ecd9dd!important;border-radius:14px!important;
  background:#fffafa!important;box-shadow:none!important;
}
body.arduino-page .aim-pin-card__icon{
  width:58px;height:58px;border-radius:50%;display:grid;place-items:center;
  background:#f8e9ec;color:#99172a;font:700 30px/1 system-ui;transform:rotate(-18deg)
}
body.arduino-page .aim-pin-card strong{margin:0 0 5px!important;color:#7f1325!important;font-size:16px}
body.arduino-page .aim-pin-card p{margin:0!important;font-size:14px!important;line-height:1.55!important;color:#40545d!important}
body.arduino-page .aim-inspector-field{
  display:flex!important;flex-direction:column!important;gap:7px!important;padding:0!important;
  border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
  color:#31464f!important;font-size:13px!important;font-weight:750!important;
}
body.arduino-page .aim-inspector-field>span{display:block}
body.arduino-page .aim-inspector-field select{
  min-height:50px!important;border:1px solid #e6d6d9!important;border-radius:12px!important;
  background:#fff!important;color:#161a1d!important;font-size:15px!important;font-weight:750!important;
  padding:0 16px!important;box-shadow:none!important;
}
body.arduino-page .aim-inspector-field select:focus{border-color:#b55564!important;box-shadow:0 0 0 3px rgba(153,23,42,.08)!important}
body.arduino-page #modalcontent .aim-inspector-primary{
  width:100%;min-height:52px;border:0!important;border-radius:12px!important;
  background:linear-gradient(180deg,#a3162c 0%,#8d1125 100%)!important;color:#fff!important;
  box-shadow:0 8px 18px rgba(153,23,42,.16)!important;font-size:13px!important;font-weight:850!important;
}
body.arduino-page #modalcontent .aim-inspector-primary span{margin-left:8px;font-size:19px;vertical-align:-1px}
body.arduino-page #modalcontent .aim-inspector-secondary{
  width:100%;min-height:50px;border:1.5px solid #a51a2e!important;border-radius:12px!important;
  background:#fff!important;color:#8d1326!important;box-shadow:none!important;font-size:13px!important;font-weight:850!important;
}
body.arduino-page #modalcontent .aim-inspector-secondary:hover{background:#fff7f8!important}
body.arduino-page .aim-plug-icon{display:inline-block;margin-right:8px;font-size:18px;transform:rotate(90deg)}

/* Breadboard attachment/status appended by the existing integration layer */
body.arduino-page #modal.aim-part-inspector-dialog #modalcontent>.factbox:not(.aim-pin-card){
  margin:3px 0 0;padding:13px 4px 0 30px;border:0!important;border-top:1px solid #eee4e6!important;
  border-radius:0!important;background:transparent!important;box-shadow:none!important;
  color:#6a777e!important;font-size:13px!important;position:relative
}
body.arduino-page #modal.aim-part-inspector-dialog #modalcontent>.factbox:not(.aim-pin-card)::before{
  content:'⌕';position:absolute;left:4px;top:12px;color:#75838a;font-size:19px
}
body.arduino-page #modal.aim-part-inspector-dialog #modalcontent>.factbox:not(.aim-pin-card)+button{
  min-height:40px;border:1px solid #ded6d8;background:#fff;color:#7c2634;border-radius:10px;font-size:12px;font-weight:750
}

/* Parts-catalogue information dialog uses the same calm professional language */
body.arduino-page .aim-component-info-dialog{
  width:min(640px,calc(100vw - 30px));max-height:min(780px,calc(100dvh - 28px));
  border:1px solid rgba(153,23,42,.14);border-radius:20px;background:#fff;
  box-shadow:0 30px 90px rgba(5,20,28,.30)
}
body.arduino-page .aim-component-info-dialog::backdrop{background:rgba(4,17,24,.58);backdrop-filter:blur(7px)}
body.arduino-page .aci-shell>header{padding:21px 24px 16px;border-bottom:1px solid #eee5e7;background:#fff;border-top:5px solid var(--aim-popup-red)}
body.arduino-page .aci-eyebrow{color:#941729;font-size:9px;letter-spacing:1px}
body.arduino-page .aci-shell h2{font-size:24px;color:#801325;letter-spacing:-.02em}
body.arduino-page .aci-close{width:38px;height:38px;border-radius:50%;background:#fff;border:1px solid #eadfe1;color:#8b1728}
body.arduino-page .aci-main{padding:18px 24px 22px;gap:12px 16px}
body.arduino-page .aci-preview{border-color:#e1e8e9;border-radius:13px;box-shadow:none}
body.arduino-page .aci-main section{padding:12px 14px;border-color:#e3e9ea;border-radius:11px;box-shadow:none}
body.arduino-page .aci-main .aci-tip{background:#fff8f9;border-color:#eddade}
body.arduino-page .aci-shell>footer{padding:12px 24px;border-top:1px solid #eee5e7;background:#fff}
body.arduino-page .aci-shell>footer button{height:38px;min-width:92px;border-radius:10px;background:#99172a}

@media(max-width:620px){
  body.arduino-page #modal,body.arduino-page #modal.aim-part-inspector-dialog{width:calc(100vw - 16px);border-radius:16px}
  body.arduino-page #modalcontent,body.arduino-page #modal.aim-part-inspector-dialog #modalcontent{padding:24px 18px 20px}
  body.arduino-page #modalcontent h2{font-size:27px;margin-right:48px}
  body.arduino-page .aim-pin-card{grid-template-columns:1fr;padding:15px!important}
  body.arduino-page .aim-pin-card__icon{width:46px;height:46px;font-size:24px}
  body.arduino-page .aim-inspector-lead{max-width:100%}
}


/* ===== SOURCE: labs/arduino/design/modal-popups-v027142.css ===== */
/* AIM STEM LAB v0.27.142 — workbench-anchored responsive popup refinement */
:root{
  --aim-modal-width: 392px;
  --aim-modal-gap: 14px;
  --aim-modal-surface: rgba(255,255,255,.985);
  --aim-modal-line: #ead9dd;
  --aim-modal-text: #31464f;
  --aim-modal-muted: #697980;
  --aim-modal-accent: #99172a;
  --aim-modal-shadow: none;
}

body.arduino-page .benchpanel{position:relative;overflow:hidden;isolation:isolate}
body.arduino-page .aim-workbench-overlay-root{
  position:fixed;inset:0;z-index:2147483400;pointer-events:none;isolation:isolate
}

body.arduino-page .aim-workbench-modal-backdrop{
  position:fixed;z-index:2147483401;border:0;border-radius:18px;padding:0;
  background:rgba(4,17,24,.12);box-shadow:none;cursor:pointer;pointer-events:auto;
}
body.arduino-page .aim-workbench-modal-backdrop:hover{background:linear-gradient(180deg,rgba(4,17,24,.19),rgba(4,17,24,.25))}
body.arduino-page .aim-workbench-modal-backdrop[hidden]{display:none!important}

body.arduino-page #modal,
body.arduino-page .aim-component-info-dialog{
  position:fixed;top:0;left:0;right:auto;bottom:auto;margin:0;z-index:2147483510;
  width:min(var(--aim-modal-width),calc(100vw - 24px));max-width:var(--aim-modal-width);
  max-height:min(520px,calc(100dvh - 24px));overflow:hidden;
  min-width:min(304px,calc(100vw - 24px));pointer-events:auto;
  border:1px solid rgba(153,23,42,.13);border-radius:16px;background:var(--aim-modal-surface);
  box-shadow:none;backdrop-filter:none;
}
body.arduino-page #modal[open],
body.arduino-page .aim-component-info-dialog[open]{display:block}
body.arduino-page #modal::backdrop,
body.arduino-page .aim-component-info-dialog::backdrop{display:none}
body.arduino-page #modal::before{height:4px;background:var(--aim-modal-accent)}
body.arduino-page #modal::after{display:none}

body.arduino-page #modal .close{
  top:10px;right:10px;width:36px;height:36px;min-height:36px;
  border:1px solid #eadfe1;border-radius:999px;background:#fff;color:#8b1728;
  box-shadow:none;font-size:18px
}
body.arduino-page #modal .close:hover{background:#fff6f7;border-color:#d7bac0;box-shadow:none}

body.arduino-page #modalcontent{
  display:flex;flex-direction:column;gap:9px;padding:13px 13px 12px;
  max-height:inherit;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;
  scrollbar-width:thin;scrollbar-color:rgba(90,105,112,.38) transparent;scrollbar-gutter:stable;
  -webkit-overflow-scrolling:touch;scroll-behavior:smooth;touch-action:pan-y;
}
body.arduino-page #modalcontent .eyebrow{
  align-self:flex-start;padding:6px 10px;border-radius:999px;
  background:#fbf0f2;border:1px solid #efdadd;color:#8f1628;
  font-size:10px;letter-spacing:.6px;font-weight:800
}
body.arduino-page #modalcontent h2{
  margin:0 42px 0 0;color:#821327;
  font:820 clamp(17px,1.45vw,22px)/1.1 Manrope,"DM Sans",sans-serif;letter-spacing:-.03em;
}
body.arduino-page #modalcontent p,
body.arduino-page #modalcontent li,
body.arduino-page #modalcontent label,
body.arduino-page #modalcontent summary{
  color:var(--aim-modal-text);font-size:13px;line-height:1.55
}
body.arduino-page #modalcontent > p:last-of-type{margin-bottom:2px}
body.arduino-page #modalcontent > button,
body.arduino-page #modalcontent .touractions button,
body.arduino-page #modalcontent .connectionrow button,
body.arduino-page #modalcontent .propertyfield + button,
body.arduino-page #modalcontent .factbox + button,
body.arduino-page #modalcontent details + button{
  min-height:42px;border-radius:11px;font-size:13px;font-weight:760
}
body.arduino-page #modalcontent > button.primary,
body.arduino-page #modalcontent .touractions button.primary,
body.arduino-page #modalcontent #connectpins,
body.arduino-page #modalcontent #startbuilding,
body.arduino-page #modalcontent #confirmcode,
body.arduino-page #modalcontent #confirmreset,
body.arduino-page #modalcontent #confirmbread,
body.arduino-page #modalcontent #applypart,
body.arduino-page #modalcontent #tournext{
  background:linear-gradient(180deg,#a3162c 0%,#8d1125 100%)!important;
  box-shadow:0 8px 18px rgba(153,23,42,.16)!important;border:0!important;color:#fff!important
}
body.arduino-page #modalcontent > button:not(.primary),
body.arduino-page #modalcontent .touractions button:not(.primary),
body.arduino-page #modalcontent .connectionrow button,
body.arduino-page #modalcontent #wirethispart,
body.arduino-page #modalcontent #tourback,
body.arduino-page #modalcontent #tourskip{
  background:#fff;border:1px solid var(--aim-modal-line);color:#7c2634
}

body.arduino-page #modalcontent details,
body.arduino-page #modalcontent .factbox,
body.arduino-page #modalcontent .fieldnote,
body.arduino-page #modalcontent .connectionlist,
body.arduino-page #modalcontent .wireform,
body.arduino-page #modalcontent .propertyfield{
  border:1px solid #efe4e6;border-radius:14px;background:#fffafb;box-shadow:none
}
body.arduino-page #modalcontent details,
body.arduino-page #modalcontent .factbox,
body.arduino-page #modalcontent .fieldnote{padding:12px 13px}
body.arduino-page #modalcontent summary{font-weight:800;color:#7f1325}
body.arduino-page #modalcontent details p{margin:8px 0 0}
body.arduino-page #modalcontent .factbox strong{display:block;margin-bottom:4px;color:#7f1325}
body.arduino-page #modalcontent .fieldnote{min-height:0;color:var(--aim-modal-muted)}

body.arduino-page #modalcontent .wireform{
  display:grid;grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr);align-items:end;gap:10px;padding:14px
}
body.arduino-page #modalcontent .wireform label,
body.arduino-page #modalcontent .propertyfield{
  display:flex;flex-direction:column;gap:6px;margin:0;color:#475b63;font-weight:760
}
body.arduino-page #modalcontent .connectionarrow{display:grid;place-items:center;color:#99172a;font-size:20px;padding-bottom:12px}
body.arduino-page #modalcontent select,
body.arduino-page #modalcontent input:not([type="checkbox"]):not([type="radio"]):not([type="range"]){
  min-height:44px;border:1px solid #e7d8db;border-radius:11px;background:#fff;
  color:#162026;font-size:14px;font-weight:760;padding:0 12px;box-shadow:none
}
body.arduino-page #modalcontent select:focus,
body.arduino-page #modalcontent input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus{border-color:#b55564;box-shadow:0 0 0 3px rgba(153,23,42,.08)}

body.arduino-page #modalcontent .connectionsheading{
  display:flex;align-items:center;justify-content:space-between;gap:12px;margin:2px 0 0;
  color:#7f1325;font-size:13px;font-weight:820
}
body.arduino-page #modalcontent .connectionsheading span{
  display:inline-grid;place-items:center;min-width:28px;height:28px;padding:0 8px;
  border-radius:999px;background:#f6eced;color:#8f1628;font-size:12px
}
body.arduino-page #modalcontent .connectionlist{display:grid;gap:9px;padding:10px;max-height:150px;overflow:auto}
body.arduino-page #modalcontent .connectionrow,
body.arduino-page #modalcontent .connectionlist > p{
  display:grid;grid-template-columns:12px minmax(0,1fr) 34px;align-items:center;gap:10px;
  margin:0;padding:10px 11px;border:1px solid #efe4e6;border-radius:12px;background:#fff
}
body.arduino-page #modalcontent .connectionrow i{width:12px;height:12px;border-radius:50%;display:block}
body.arduino-page #modalcontent .connectionrow span{min-width:0;font-size:12px;line-height:1.35;color:#5a4248;word-break:break-word}
body.arduino-page #modalcontent .connectionrow button{width:34px;min-width:34px;height:34px;min-height:34px;padding:0;border-radius:10px}
body.arduino-page #modalcontent .connectionlist > p{grid-template-columns:1fr;font-size:12px;color:#6b7a81}

body.arduino-page #modal.aim-part-inspector-dialog{width:min(372px,calc(100% - 24px));max-width:372px}
body.arduino-page #modal.aim-part-inspector-dialog #modalcontent{padding:16px 16px 14px}
body.arduino-page .aim-part-inspector{display:flex;flex-direction:column;gap:10px}
body.arduino-page .aim-inspector-lead{margin:0!important;font-size:13px!important;line-height:1.52!important;max-width:100%}
body.arduino-page .aim-pin-card{
  display:grid!important;grid-template-columns:56px minmax(0,1fr);align-items:center;gap:12px;
  padding:14px!important;border:1px solid #ecd9dd!important;border-radius:14px!important;background:#fffafa!important
}
body.arduino-page .aim-pin-card__icon{
  width:48px;height:48px;border-radius:50%;display:grid;place-items:center;
  background:#f8e9ec;color:#99172a;font:700 24px/1 system-ui;transform:rotate(-18deg)
}
body.arduino-page .aim-pin-card strong{margin:0 0 4px!important;color:#7f1325!important;font-size:14px}
body.arduino-page .aim-pin-card p{margin:0!important;font-size:12.5px!important;line-height:1.5!important;color:#40545d!important}
body.arduino-page .aim-inspector-field{display:flex!important;flex-direction:column!important;gap:6px!important;padding:0!important;border:0!important;background:transparent!important}
body.arduino-page .aim-inspector-field>span{font-size:12px;color:#455961;font-weight:760}
body.arduino-page .aim-inspector-field select{min-height:44px!important;font-size:14px!important}
body.arduino-page #modalcontent .aim-inspector-primary,
body.arduino-page #modalcontent .aim-inspector-secondary{width:100%}
body.arduino-page #modalcontent .aim-inspector-primary span{margin-left:6px;font-size:18px;vertical-align:-1px}
body.arduino-page .aim-plug-icon{display:inline-block;margin-right:7px;font-size:16px;transform:rotate(90deg)}
body.arduino-page #modal.aim-part-inspector-dialog #modalcontent>.factbox:not(.aim-pin-card){
  margin:0;padding:11px 12px;border:1px solid #efe4e6!important;border-radius:12px!important;background:#fffafb!important;color:#5d6971!important
}
body.arduino-page #modal.aim-part-inspector-dialog #modalcontent>.factbox:not(.aim-pin-card)::before{display:none}
body.arduino-page #modal.aim-part-inspector-dialog #modalcontent>.factbox:not(.aim-pin-card)+button{min-height:38px;border-radius:10px;font-size:12px}

body.arduino-page #modalcontent .tourprogress{display:flex;gap:6px;align-items:center;margin-top:2px}
body.arduino-page #modalcontent .tourprogress span{width:24px;height:5px;border-radius:999px;background:#ead9dd}
body.arduino-page #modalcontent .tourprogress span.current{background:#99172a}
body.arduino-page #modalcontent .touractions{display:flex;flex-wrap:wrap;gap:8px}
body.arduino-page #modalcontent .touractions button{flex:1 1 120px}

body.arduino-page .aim-component-info-dialog{width:min(372px,calc(100% - 24px));max-width:372px}
body.arduino-page .aim-component-info-dialog .aci-shell{display:flex;flex-direction:column;max-height:inherit;overflow:hidden}
body.arduino-page .aim-component-info-dialog .aci-shell>header{padding:16px 18px 12px;border-bottom:1px solid #eee5e7;background:#fff;border-top:4px solid var(--aim-modal-accent)}
body.arduino-page .aim-component-info-dialog .aci-eyebrow{font-size:9px;letter-spacing:.9px;color:#941729}
body.arduino-page .aim-component-info-dialog .aci-shell h2{margin:4px 32px 0 0;font-size:20px;line-height:1.15;color:#801325;letter-spacing:-.02em}
body.arduino-page .aim-component-info-dialog .aci-close{position:absolute;top:10px;right:10px;width:34px;height:34px;border-radius:999px;background:#fff;border:1px solid #eadfe1;color:#8b1728}
body.arduino-page .aim-component-info-dialog .aci-main{padding:13px 15px 14px;display:grid;gap:9px;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:rgba(90,105,112,.38) transparent;-webkit-overflow-scrolling:touch;scroll-behavior:smooth;touch-action:pan-y}
body.arduino-page .aim-component-info-dialog .aci-preview,
body.arduino-page .aim-component-info-dialog .aci-main section{padding:11px 12px;border-color:#e3e9ea;border-radius:11px;box-shadow:none}
body.arduino-page .aim-component-info-dialog .aci-main .aci-tip{background:#fff8f9;border-color:#eddade}
body.arduino-page .aim-component-info-dialog .aci-shell>footer{padding:10px 18px;border-top:1px solid #eee5e7;background:#fff}
body.arduino-page .aim-component-info-dialog .aci-shell>footer button{height:36px;min-width:88px;border-radius:10px;background:#99172a;color:#fff;border:0}


body.arduino-page #modalcontent .eyebrow,
body.arduino-page #modalcontent h2,
body.arduino-page .aim-component-info-dialog .aci-shell>header,
body.arduino-page .aim-component-info-dialog .aci-eyebrow,
body.arduino-page .aim-component-info-dialog [data-aci-title]{cursor:grab;user-select:none}
body.arduino-page #modal.is-dragging,
body.arduino-page .aim-component-info-dialog.is-dragging{box-shadow:none}
body.arduino-page #modal.is-dragging #modalcontent .eyebrow,
body.arduino-page #modal.is-dragging #modalcontent h2,
body.arduino-page .aim-component-info-dialog.is-dragging .aci-shell>header,
body.arduino-page .aim-component-info-dialog.is-dragging .aci-eyebrow,
body.arduino-page .aim-component-info-dialog.is-dragging [data-aci-title]{cursor:grabbing}
body.arduino-page .aim-component-info-dialog .aci-shell>header{position:sticky;top:0;z-index:1}
body.arduino-page .aim-component-info-dialog .aci-shell>footer{position:sticky;bottom:0;z-index:1}

@media (max-width: 1180px){
  body.arduino-page #modal,
  body.arduino-page .aim-component-info-dialog{max-height:min(500px,calc(100dvh - 24px))}
}

@media (max-width: 760px){
  body.arduino-page .aim-workbench-modal-backdrop{inset:6px;border-radius:20px}
  body.arduino-page #modal,
  body.arduino-page .aim-component-info-dialog{
    width:min(360px,calc(100vw - 20px));max-width:none;
    max-height:min(68dvh,460px);border-radius:15px;min-width:0
  }
  body.arduino-page #modalcontent{padding:14px 14px 12px}
  body.arduino-page #modalcontent h2{font-size:22px;margin-right:36px}
  body.arduino-page #modalcontent .wireform{grid-template-columns:1fr;gap:9px}
  body.arduino-page #modalcontent .connectionarrow{display:none}
  body.arduino-page .aim-pin-card{grid-template-columns:1fr;padding:13px!important}
  body.arduino-page .aim-pin-card__icon{width:42px;height:42px;font-size:21px}
}


/* v0.27.147 — top-level popup portal. These rules intentionally override all earlier modal layers. */
body.arduino-page .aim-workbench-modal-backdrop{
  position:fixed!important;
  inset:auto!important;
  z-index:2147482990!important;
  border-radius:0!important;
  background:rgba(4,17,24,.13)!important;
  backdrop-filter:none!important;
}
body.arduino-page #modal,
body.arduino-page .aim-component-info-dialog{
  position:fixed!important;
  z-index:2147483000!important;
  top:12px;
  left:auto;
  right:12px;
  bottom:auto;
  width:min(356px,calc(100vw - 24px),var(--aim-popup-safe-width,356px))!important;
  max-width:356px!important;
  min-width:min(300px,calc(100vw - 24px))!important;
  height:auto!important;
  max-height:min(var(--aim-popup-max-height,520px),calc(100dvh - 24px))!important;
  overflow:hidden!important;
  border-radius:16px!important;
  box-shadow:none!important;
  isolation:isolate!important;
}
body.arduino-page #modalcontent{
  box-sizing:border-box!important;
  max-height:var(--aim-popup-max-height,520px)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior-y:contain!important;
  scrollbar-gutter:stable!important;
  scrollbar-width:thin!important;
  scrollbar-color:rgba(90,105,112,.38) transparent!important;
  -webkit-overflow-scrolling:touch!important;
  scroll-behavior:smooth!important;
  touch-action:pan-y!important;
  padding:13px 13px 12px!important;
  gap:9px!important;
}
body.arduino-page #modalcontent h2{
  font-size:19px!important;
  line-height:1.12!important;
  margin-right:38px!important;
}
body.arduino-page #modalcontent .eyebrow{font-size:9px!important;padding:5px 9px!important}
body.arduino-page #modal .close{
  width:32px!important;height:32px!important;min-height:32px!important;
  top:8px!important;right:8px!important;font-size:16px!important;
}
body.arduino-page .aim-component-info-dialog .aci-shell{
  height:auto!important;
  max-height:var(--aim-popup-max-height,520px)!important;
  min-height:0!important;
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr) auto!important;
}
body.arduino-page .aim-component-info-dialog .aci-shell>header{padding:12px 14px 10px!important}
body.arduino-page .aim-component-info-dialog .aci-shell h2{font-size:18px!important;line-height:1.12!important}
body.arduino-page .aim-component-info-dialog .aci-main{
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior-y:contain!important;
  scrollbar-gutter:stable!important;
  scrollbar-width:thin!important;
  scrollbar-color:rgba(90,105,112,.38) transparent!important;
  -webkit-overflow-scrolling:touch!important;
  scroll-behavior:smooth!important;
  touch-action:pan-y!important;
  padding:11px 14px 13px!important;
}
body.arduino-page .aim-component-info-dialog .aci-shell>footer{padding:8px 14px!important}
body.arduino-page #modal.is-dragging,
body.arduino-page .aim-component-info-dialog.is-dragging{z-index:2147483640!important}
@media (max-width:760px){
  body.arduino-page #modal,
  body.arduino-page .aim-component-info-dialog{
    left:8px!important;right:8px!important;top:auto!important;bottom:8px!important;
    width:auto!important;max-width:none!important;min-width:0!important;
    max-height:min(68dvh,var(--aim-popup-max-height,500px))!important;
    border-radius:15px!important;
  }
  body.arduino-page #modalcontent{max-height:min(68dvh,var(--aim-popup-max-height,500px))!important}
  body.arduino-page #modalcontent h2{font-size:18px!important}
  body.arduino-page .aim-component-info-dialog .aci-shell{max-height:min(68dvh,var(--aim-popup-max-height,500px))!important}
}


/* v0.27.149 — flat popup + polished single-scroll behaviour */
body.arduino-page #modal,
body.arduino-page .aim-component-info-dialog,
body.arduino-page #modal.is-dragging,
body.arduino-page .aim-component-info-dialog.is-dragging{
  box-shadow:none!important;
  filter:none!important;
  backdrop-filter:none!important;
}
body.arduino-page #modal .close,
body.arduino-page #modal .close:hover,
body.arduino-page .aim-component-info-dialog .aci-close,
body.arduino-page .aim-component-info-dialog .aci-close:hover{box-shadow:none!important}
body.arduino-page #modalcontent::-webkit-scrollbar,
body.arduino-page .aim-component-info-dialog .aci-main::-webkit-scrollbar{width:6px}
body.arduino-page #modalcontent::-webkit-scrollbar-track,
body.arduino-page .aim-component-info-dialog .aci-main::-webkit-scrollbar-track{background:transparent}
body.arduino-page #modalcontent::-webkit-scrollbar-thumb,
body.arduino-page .aim-component-info-dialog .aci-main::-webkit-scrollbar-thumb{
  background:rgba(90,105,112,.34);border-radius:999px;border:1px solid transparent;background-clip:padding-box
}
body.arduino-page #modalcontent::-webkit-scrollbar-thumb:hover,
body.arduino-page .aim-component-info-dialog .aci-main::-webkit-scrollbar-thumb:hover{background:rgba(90,105,112,.5)}


/* v0.27.150 — absolutely no dimming/backdrop/shadow behind popup */
body.arduino-page .aim-workbench-modal-backdrop{display:none!important;background:transparent!important;opacity:0!important;pointer-events:none!important;box-shadow:none!important;backdrop-filter:none!important;filter:none!important}
body.arduino-page #modal::backdrop,
body.arduino-page .aim-component-info-dialog::backdrop{background:transparent!important;opacity:0!important;backdrop-filter:none!important;filter:none!important}
body.arduino-page #modal,
body.arduino-page .aim-component-info-dialog,
body.arduino-page #modal.is-dragging,
body.arduino-page .aim-component-info-dialog.is-dragging{box-shadow:none!important;filter:none!important;backdrop-filter:none!important}


/* ===== SOURCE: labs/arduino/design/modal-popups-v027146.css ===== */
/* AIM STEM LAB v0.27.146 — compact always-on-top workbench popup refinement */
:root{
  --aim-popup-compact-width: 348px;
  --aim-popup-compact-z: 9801;
  --aim-popup-backdrop-z: 9799;
}

body.arduino-page .aim-workbench-modal-backdrop{
  z-index:var(--aim-popup-backdrop-z)!important;
  background:rgba(3,18,24,.10)!important;
  backdrop-filter:none!important;
}

body.arduino-page #modal,
body.arduino-page .aim-component-info-dialog{
  z-index:var(--aim-popup-compact-z)!important;
  width:min(var(--aim-popup-compact-width),calc(100% - 24px))!important;
  max-width:var(--aim-popup-compact-width)!important;
  min-width:min(300px,calc(100% - 24px))!important;
  max-height:min(calc(100% - 30px),440px)!important;
  border-radius:15px!important;
  box-shadow:0 20px 46px rgba(3,18,24,.24)!important;
}

body.arduino-page #modal.is-dragging,
body.arduino-page .aim-component-info-dialog.is-dragging{
  z-index:10050!important;
  box-shadow:0 26px 56px rgba(3,18,24,.30)!important;
}

body.arduino-page #modal .close,
body.arduino-page .aim-component-info-dialog .aci-close{
  width:31px!important;
  height:31px!important;
  min-height:31px!important;
  top:9px!important;
  right:9px!important;
  font-size:15px!important;
}

body.arduino-page #modalcontent{
  gap:8px!important;
  padding:13px 13px 12px!important;
  max-height:438px!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  scrollbar-gutter:stable;
}

body.arduino-page #modalcontent .eyebrow{
  padding:5px 8px!important;
  font-size:8.5px!important;
  letter-spacing:.55px!important;
}

body.arduino-page #modalcontent h2{
  margin:0 36px 1px 0!important;
  font:800 18px/1.16 Manrope,"DM Sans",sans-serif!important;
  letter-spacing:-.02em!important;
  color:#821327!important;
}

body.arduino-page #modalcontent h3,
body.arduino-page #modalcontent .connectionsheading{
  font-size:12px!important;
  line-height:1.3!important;
}

body.arduino-page #modalcontent p,
body.arduino-page #modalcontent li,
body.arduino-page #modalcontent label,
body.arduino-page #modalcontent summary{
  font-size:11.5px!important;
  line-height:1.48!important;
}

body.arduino-page #modalcontent details,
body.arduino-page #modalcontent .factbox,
body.arduino-page #modalcontent .fieldnote,
body.arduino-page #modalcontent .wireform,
body.arduino-page #modalcontent .propertyfield{
  border-radius:11px!important;
}

body.arduino-page #modalcontent details,
body.arduino-page #modalcontent .factbox,
body.arduino-page #modalcontent .fieldnote{
  padding:10px 11px!important;
}

body.arduino-page #modalcontent .wireform{
  padding:11px!important;
  gap:8px!important;
}

body.arduino-page #modalcontent select,
body.arduino-page #modalcontent input:not([type="checkbox"]):not([type="radio"]):not([type="range"]){
  min-height:38px!important;
  border-radius:9px!important;
  font-size:12px!important;
  padding:0 10px!important;
}

body.arduino-page #modalcontent > button,
body.arduino-page #modalcontent .touractions button,
body.arduino-page #modalcontent .connectionrow button,
body.arduino-page #modalcontent .propertyfield + button,
body.arduino-page #modalcontent .factbox + button,
body.arduino-page #modalcontent details + button{
  min-height:38px!important;
  border-radius:9px!important;
  font-size:11.5px!important;
}

body.arduino-page #modalcontent .connectionlist{
  max-height:126px!important;
  padding:8px!important;
  gap:7px!important;
  overflow-y:auto!important;
}

body.arduino-page #modalcontent .connectionrow,
body.arduino-page #modalcontent .connectionlist > p{
  padding:8px 9px!important;
  border-radius:9px!important;
}

body.arduino-page #modal.aim-part-inspector-dialog{
  width:min(336px,calc(100% - 24px))!important;
  max-width:336px!important;
}
body.arduino-page #modal.aim-part-inspector-dialog #modalcontent{
  padding:13px 13px 12px!important;
}
body.arduino-page .aim-part-inspector{gap:8px!important}
body.arduino-page .aim-inspector-lead{
  font-size:11.5px!important;
  line-height:1.46!important;
}
body.arduino-page .aim-pin-card{
  grid-template-columns:42px minmax(0,1fr)!important;
  gap:10px!important;
  padding:10px!important;
  border-radius:11px!important;
}
body.arduino-page .aim-pin-card__icon{
  width:38px!important;
  height:38px!important;
  font-size:18px!important;
}
body.arduino-page .aim-pin-card strong{font-size:12px!important}
body.arduino-page .aim-pin-card p{font-size:11px!important;line-height:1.42!important}

body.arduino-page .aim-component-info-dialog{
  width:min(336px,calc(100% - 24px))!important;
  max-width:336px!important;
}
body.arduino-page .aim-component-info-dialog .aci-shell{
  max-height:min(calc(100% - 20px),430px)!important;
}
body.arduino-page .aim-component-info-dialog .aci-shell>header{
  padding:12px 14px 10px!important;
}
body.arduino-page .aim-component-info-dialog .aci-eyebrow{
  font-size:8px!important;
}
body.arduino-page .aim-component-info-dialog .aci-shell h2{
  margin:3px 30px 0 0!important;
  font-size:17px!important;
  line-height:1.15!important;
}
body.arduino-page .aim-component-info-dialog .aci-main{
  padding:10px 14px 12px!important;
  gap:8px!important;
  overflow-y:auto!important;
}
body.arduino-page .aim-component-info-dialog .aci-main p{
  font-size:11px!important;
  line-height:1.45!important;
}
body.arduino-page .aim-component-info-dialog .aci-main section,
body.arduino-page .aim-component-info-dialog .aci-preview{
  padding:9px 10px!important;
  border-radius:9px!important;
}
body.arduino-page .aim-component-info-dialog .aci-shell>footer{
  padding:8px 14px!important;
}
body.arduino-page .aim-component-info-dialog .aci-shell>footer button{
  height:34px!important;
  min-width:78px!important;
  border-radius:9px!important;
  font-size:11px!important;
}

@media (max-height:720px){
  body.arduino-page #modal,
  body.arduino-page .aim-component-info-dialog{
    max-height:min(calc(100% - 20px),390px)!important;
  }
  body.arduino-page #modalcontent{max-height:388px!important}
}

@media (max-width:760px){
  body.arduino-page #modal,
  body.arduino-page .aim-component-info-dialog{
    left:8px!important;
    right:8px!important;
    top:auto!important;
    bottom:8px!important;
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
    max-height:min(64dvh,430px)!important;
    border-radius:14px!important;
  }
  body.arduino-page #modalcontent h2{font-size:17px!important}
  body.arduino-page .aim-component-info-dialog .aci-shell h2{font-size:16px!important}
}


/* ===== SOURCE: labs/arduino/design/modal-popups-v027147.css ===== */
/* AIM STEM LAB v0.27.147 — true top-layer Arduino popup portal */
:root{
  --aim-popup-top-z:2147483000;
  --aim-popup-backdrop-top-z:2147482990;
}

body.arduino-page .aim-workbench-modal-backdrop{
  position:fixed!important;
  inset:auto!important;
  z-index:var(--aim-popup-backdrop-top-z)!important;
  border-radius:0!important;
  background:rgba(3,18,24,.12)!important;
  backdrop-filter:none!important;
  pointer-events:auto!important;
}
body.arduino-page .aim-workbench-modal-backdrop[hidden]{display:none!important}

body.arduino-page #modal,
body.arduino-page .aim-component-info-dialog{
  position:fixed!important;
  z-index:var(--aim-popup-top-z)!important;
  margin:0!important;
  width:min(356px,calc(100vw - 24px),var(--aim-popup-safe-width,356px))!important;
  max-width:356px!important;
  min-width:min(300px,calc(100vw - 24px))!important;
  height:auto!important;
  max-height:min(var(--aim-popup-max-height,520px),calc(100dvh - 24px))!important;
  overflow:hidden!important;
  border-radius:15px!important;
  box-shadow:0 24px 70px rgba(2,16,23,.34)!important;
  isolation:isolate!important;
  transform:none!important;
}
body.arduino-page #modal[open],
body.arduino-page .aim-component-info-dialog[open]{display:block!important}
body.arduino-page #modal.is-dragging,
body.arduino-page .aim-component-info-dialog.is-dragging{
  z-index:2147483640!important;
  box-shadow:0 28px 80px rgba(2,16,23,.40)!important;
}

body.arduino-page #modalcontent{
  box-sizing:border-box!important;
  max-height:var(--aim-popup-max-height,520px)!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  scrollbar-gutter:stable!important;
  padding:13px 13px 12px!important;
  gap:8px!important;
}
body.arduino-page #modalcontent .eyebrow{
  font-size:8.5px!important;
  line-height:1!important;
  padding:5px 8px!important;
}
body.arduino-page #modalcontent h2{
  margin:0 36px 1px 0!important;
  font:800 18px/1.15 Manrope,"DM Sans",sans-serif!important;
  letter-spacing:-.02em!important;
}
body.arduino-page #modalcontent p,
body.arduino-page #modalcontent li,
body.arduino-page #modalcontent label,
body.arduino-page #modalcontent summary{
  font-size:11.5px!important;
  line-height:1.48!important;
}
body.arduino-page #modal .close{
  width:31px!important;
  height:31px!important;
  min-height:31px!important;
  top:8px!important;
  right:8px!important;
  font-size:15px!important;
}

body.arduino-page .aim-component-info-dialog .aci-shell{
  height:auto!important;
  min-height:0!important;
  max-height:var(--aim-popup-max-height,520px)!important;
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr) auto!important;
  overflow:hidden!important;
}
body.arduino-page .aim-component-info-dialog .aci-shell>header{
  position:sticky!important;
  top:0!important;
  z-index:2!important;
  padding:12px 14px 10px!important;
  background:#fff!important;
}
body.arduino-page .aim-component-info-dialog .aci-shell h2{
  margin:3px 30px 0 0!important;
  font-size:17px!important;
  line-height:1.14!important;
}
body.arduino-page .aim-component-info-dialog .aci-main{
  min-height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  scrollbar-gutter:stable!important;
  padding:10px 14px 12px!important;
  gap:8px!important;
}
body.arduino-page .aim-component-info-dialog .aci-main p{
  font-size:11px!important;
  line-height:1.45!important;
}
body.arduino-page .aim-component-info-dialog .aci-shell>footer{
  position:sticky!important;
  bottom:0!important;
  z-index:2!important;
  padding:8px 14px!important;
  background:#fff!important;
}

@media (max-height:720px){
  body.arduino-page #modal,
  body.arduino-page .aim-component-info-dialog{
    max-height:min(var(--aim-popup-max-height,430px),calc(100dvh - 20px))!important;
  }
  body.arduino-page #modalcontent{
    max-height:min(var(--aim-popup-max-height,430px),calc(100dvh - 20px))!important;
  }
}

@media (max-width:760px){
  body.arduino-page #modal,
  body.arduino-page .aim-component-info-dialog{
    left:8px!important;
    right:8px!important;
    top:auto!important;
    bottom:8px!important;
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
    max-height:min(68dvh,var(--aim-popup-max-height,500px))!important;
    border-radius:14px!important;
  }
  body.arduino-page #modalcontent{
    max-height:min(68dvh,var(--aim-popup-max-height,500px))!important;
  }
  body.arduino-page #modalcontent h2{font-size:17px!important}
  body.arduino-page .aim-component-info-dialog .aci-shell h2{font-size:16px!important}
}


/* Browser top-layer guarantee: showModal() places these dialogs above every ordinary stacking context. */
body.arduino-page #modal::backdrop,
body.arduino-page .aim-component-info-dialog::backdrop{
  background:transparent!important;
  backdrop-filter:none!important;
}
body.arduino-page #modal[open],
body.arduino-page .aim-component-info-dialog[open]{
  pointer-events:auto!important;
}


/* ===== SOURCE: labs/arduino/design/modal-popups-v027148.css ===== */
/* AIM STEM LAB v0.27.148 — professional single-scroll workbench inspector */
:root{
  --aim-popup-professional-width:344px;
  --aim-popup-radius:14px;
}

body.arduino-page #modal,
body.arduino-page .aim-component-info-dialog{
  width:min(var(--aim-popup-professional-width),calc(100vw - 20px),var(--aim-popup-safe-width,344px))!important;
  max-width:var(--aim-popup-professional-width)!important;
  min-width:min(288px,calc(100vw - 20px))!important;
  max-height:min(var(--aim-popup-max-height,500px),calc(100dvh - 20px))!important;
  border-radius:var(--aim-popup-radius)!important;
  border:1px solid rgba(122,31,47,.14)!important;
  background:#fff!important;
  box-shadow:0 18px 52px rgba(3,18,24,.27)!important;
}

/* One natural vertical scroll for the entire standard popup. */
body.arduino-page #modalcontent{
  box-sizing:border-box!important;
  width:100%!important;
  height:auto!important;
  max-height:min(var(--aim-popup-max-height,500px),calc(100dvh - 20px))!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior-y:contain!important;
  scrollbar-gutter:auto!important;
  scroll-behavior:smooth!important;
  padding:12px 12px 13px!important;
  gap:7px!important;
}
body.arduino-page #modalcontent::-webkit-scrollbar,
body.arduino-page .aim-component-info-dialog .aci-main::-webkit-scrollbar{width:7px}
body.arduino-page #modalcontent::-webkit-scrollbar-track,
body.arduino-page .aim-component-info-dialog .aci-main::-webkit-scrollbar-track{background:transparent}
body.arduino-page #modalcontent::-webkit-scrollbar-thumb,
body.arduino-page .aim-component-info-dialog .aci-main::-webkit-scrollbar-thumb{
  background:#d6c5c9;border:2px solid #fff;border-radius:999px
}
body.arduino-page #modalcontent::-webkit-scrollbar-thumb:hover,
body.arduino-page .aim-component-info-dialog .aci-main::-webkit-scrollbar-thumb:hover{background:#bfa4aa}

/* Calm, compact visual hierarchy. */
body.arduino-page #modalcontent .eyebrow{
  width:max-content;max-width:calc(100% - 42px)!important;
  padding:4px 7px!important;
  border-radius:999px!important;
  font-size:8px!important;line-height:1.1!important;letter-spacing:.45px!important;
  margin:0 0 1px!important;
}
body.arduino-page #modalcontent h2{
  margin:0 35px 2px 0!important;
  font:800 16px/1.18 Manrope,"DM Sans",sans-serif!important;
  letter-spacing:-.018em!important;
  color:#7f1426!important;
}
body.arduino-page #modalcontent h3,
body.arduino-page #modalcontent .connectionsheading{
  font-size:12px!important;line-height:1.3!important;margin:5px 0 1px!important
}
body.arduino-page #modalcontent p,
body.arduino-page #modalcontent li,
body.arduino-page #modalcontent label,
body.arduino-page #modalcontent summary{
  font-size:11px!important;line-height:1.46!important
}
body.arduino-page #modalcontent p{margin-block:2px 5px!important}
body.arduino-page #modal .close{
  position:sticky!important;
  float:right!important;
  top:7px!important;right:7px!important;
  width:29px!important;height:29px!important;min-height:29px!important;
  font-size:14px!important;z-index:5!important;
  border-radius:999px!important;background:#fff!important;
  box-shadow:0 3px 10px rgba(15,23,42,.08)!important
}

body.arduino-page #modalcontent .wireform{
  grid-template-columns:minmax(0,1fr) 15px minmax(0,1fr)!important;
  gap:7px!important;padding:10px!important;border-radius:11px!important
}
body.arduino-page #modalcontent .wireform label{font-size:10px!important;gap:4px!important}
body.arduino-page #modalcontent .connectionarrow{font-size:16px!important;padding-bottom:10px!important}
body.arduino-page #modalcontent select,
body.arduino-page #modalcontent input:not([type="checkbox"]):not([type="radio"]):not([type="range"]){
  min-height:38px!important;height:38px!important;border-radius:9px!important;
  font-size:11.5px!important;padding:0 9px!important
}
body.arduino-page #modalcontent > button,
body.arduino-page #modalcontent .touractions button,
body.arduino-page #modalcontent .propertyfield + button,
body.arduino-page #modalcontent .factbox + button,
body.arduino-page #modalcontent details + button{
  min-height:38px!important;border-radius:9px!important;font-size:11px!important
}

/* Avoid nested scrolling: connection rows become part of the popup's single scroll. */
body.arduino-page #modalcontent .connectionlist{
  display:grid!important;gap:6px!important;padding:7px!important;
  max-height:none!important;height:auto!important;overflow:visible!important;
  border-radius:11px!important
}
body.arduino-page #modalcontent .connectionrow,
body.arduino-page #modalcontent .connectionlist > p{
  padding:8px 9px!important;border-radius:9px!important;gap:7px!important;
  grid-template-columns:10px minmax(0,1fr) 30px!important
}
body.arduino-page #modalcontent .connectionrow span{font-size:10.5px!important}
body.arduino-page #modalcontent .connectionrow button{
  width:30px!important;min-width:30px!important;height:30px!important;min-height:30px!important;border-radius:8px!important
}
body.arduino-page #modalcontent .connectionsheading span{
  min-width:24px!important;height:24px!important;padding:0 7px!important;font-size:10px!important
}
body.arduino-page #modalcontent .fieldnote:empty{display:none!important}
body.arduino-page #modalcontent .fieldnote{padding:8px 9px!important;border-radius:9px!important;font-size:10.5px!important}

/* Component inspector follows the same compact scale. */
body.arduino-page #modal.aim-part-inspector-dialog{width:min(338px,calc(100vw - 20px))!important;max-width:338px!important}
body.arduino-page #modal.aim-part-inspector-dialog #modalcontent{padding:12px!important}
body.arduino-page .aim-part-inspector{gap:7px!important}
body.arduino-page .aim-inspector-lead{font-size:11px!important;line-height:1.45!important}
body.arduino-page .aim-pin-card{
  grid-template-columns:42px minmax(0,1fr)!important;gap:9px!important;
  padding:10px!important;border-radius:11px!important
}
body.arduino-page .aim-pin-card__icon{width:38px!important;height:38px!important;font-size:18px!important}
body.arduino-page .aim-pin-card strong{font-size:11.5px!important;margin-bottom:2px!important}
body.arduino-page .aim-pin-card p{font-size:10.5px!important;line-height:1.42!important}

/* Component guide: fixed shell, one dedicated content scroll, no nested scroll areas. */
body.arduino-page .aim-component-info-dialog{width:min(338px,calc(100vw - 20px))!important;max-width:338px!important}
body.arduino-page .aim-component-info-dialog .aci-shell{
  height:min(var(--aim-popup-max-height,500px),calc(100dvh - 20px))!important;
  max-height:min(var(--aim-popup-max-height,500px),calc(100dvh - 20px))!important;
  grid-template-rows:auto minmax(0,1fr) auto!important
}
body.arduino-page .aim-component-info-dialog .aci-shell>header{
  padding:10px 12px 8px!important;border-top-width:3px!important
}
body.arduino-page .aim-component-info-dialog .aci-eyebrow{font-size:7.5px!important;letter-spacing:.6px!important}
body.arduino-page .aim-component-info-dialog .aci-shell h2{
  font-size:15px!important;line-height:1.16!important;margin:2px 29px 0 0!important
}
body.arduino-page .aim-component-info-dialog .aci-close{
  width:29px!important;height:29px!important;top:7px!important;right:7px!important;font-size:14px!important
}
body.arduino-page .aim-component-info-dialog .aci-main{
  min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;
  padding:9px 12px 10px!important;gap:7px!important;scrollbar-gutter:auto!important
}
body.arduino-page .aim-component-info-dialog .aci-preview,
body.arduino-page .aim-component-info-dialog .aci-main section{padding:9px 10px!important;border-radius:9px!important}
body.arduino-page .aim-component-info-dialog .aci-main p{font-size:10.5px!important;line-height:1.42!important}
body.arduino-page .aim-component-info-dialog .aci-main small{font-size:8px!important;letter-spacing:.45px!important}
body.arduino-page .aim-component-info-dialog .aci-shell>footer{padding:7px 12px!important}
body.arduino-page .aim-component-info-dialog .aci-shell>footer button{height:32px!important;min-height:32px!important;border-radius:8px!important;font-size:10.5px!important}

@media (max-height:680px){
  body.arduino-page #modal,
  body.arduino-page .aim-component-info-dialog{max-height:min(var(--aim-popup-max-height,420px),calc(100dvh - 16px))!important}
  body.arduino-page #modalcontent{max-height:min(var(--aim-popup-max-height,420px),calc(100dvh - 16px))!important}
  body.arduino-page .aim-component-info-dialog .aci-shell{height:min(var(--aim-popup-max-height,420px),calc(100dvh - 16px))!important}
}

@media (max-width:760px){
  body.arduino-page #modal,
  body.arduino-page .aim-component-info-dialog{
    left:7px!important;right:7px!important;top:auto!important;bottom:7px!important;
    width:auto!important;max-width:none!important;min-width:0!important;
    max-height:min(var(--aim-popup-max-height,72dvh),72dvh)!important;
    border-radius:13px 13px 10px 10px!important
  }
  body.arduino-page #modalcontent{max-height:min(var(--aim-popup-max-height,72dvh),72dvh)!important;padding:11px!important}
  body.arduino-page #modalcontent h2{font-size:15px!important}
  body.arduino-page #modalcontent .wireform{grid-template-columns:1fr!important}
  body.arduino-page #modalcontent .connectionarrow{display:none!important}
  body.arduino-page .aim-component-info-dialog .aci-shell{height:min(var(--aim-popup-max-height,72dvh),72dvh)!important;max-height:72dvh!important}
}


/* ===== SOURCE: labs/arduino/wiring/wire-card-compact-v027116.css ===== */
/* AIM STEM LAB v0.27.116 — Wire card compact refinement
   Makes the Arduino wire colour card more moderate on the workbench without changing behaviour.
*/
body.arduino-page #aimWireCard{
  width:286px!important;
  max-width:calc(100% - 16px)!important;
  border-radius:14px!important;
}

body.arduino-page #aimWireCard .aim-wire-card-head{
  height:48px!important;
  min-height:48px!important;
  padding:0 40px 0 10px!important;
  gap:8px!important;
}
body.arduino-page #aimWireCard .aim-wire-card-grip{
  width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;
  border-radius:7px!important;font-size:13px!important;
}
body.arduino-page #aimWireCard .aim-wire-card-head>div strong::before{
  font-size:12px!important;
}
body.arduino-page #aimWireCard .aim-wire-card-state{
  max-width:96px!important;
  height:27px!important;
  padding:0 8px!important;
  gap:6px!important;
  font-size:7px!important;
}
body.arduino-page #aimWireCard .aim-wire-card-state::before{
  width:6px!important;height:6px!important;min-width:6px!important;
}

body.arduino-page #aimWireCard .aim-wire-card-body #cancelwire{
  right:8px!important;top:8px!important;
  width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;
  border-radius:9px!important;
}
body.arduino-page #aimWireCard .aim-wire-card-body #cancelwire::after{
  font-size:16px!important;
}

body.arduino-page #aimWireCard .aim-wire-card-body{
  min-height:66px!important;
  padding:8px 10px!important;
  grid-template-columns:76px minmax(0,1fr)!important;
  gap:8px!important;
}
body.arduino-page #aimWireCard .aim-wire-card-body #wirebuilder{
  width:76px!important;min-width:76px!important;height:48px!important;min-height:48px!important;
  padding:5px 6px!important;
  border-radius:11px!important;
  grid-template-rows:14px 16px!important;
  gap:1px!important;
}
body.arduino-page #aimWireCard .aim-wire-card-body #wirebuilder::before{
  font-size:12px!important;
}
body.arduino-page #aimWireCard .aim-wire-card-body #wirebuilder::after,
body.arduino-page #aimWireCard .aim-wire-card-body #wirebuilder[aria-pressed="true"]::after{
  font-size:9px!important;
}
body.arduino-page #aimWireCard .aim-wire-card-body .wire-palette{
  gap:4px!important;
  justify-content:flex-start!important;
  flex-wrap:nowrap!important;
}
body.arduino-page #aimWireCard .aim-wire-card-body .wire-palette button{
  width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;
}
body.arduino-page #aimWireCard .aim-wire-card-body .wire-palette button.is-active{
  box-shadow:0 0 0 2px #e8ffff,0 0 0 3px rgba(54,222,214,.28),0 5px 10px rgba(0,0,0,.23)!important;
}

body.arduino-page #aimWireCard .aim-wire-layer-control{
  min-height:56px!important;
  padding:8px 10px!important;
  grid-template-columns:minmax(0,1fr) 102px!important;
  gap:8px!important;
}
body.arduino-page #aimWireCard .aim-wire-layer-copy small{
  margin:0 0 2px!important;
  font-size:6.5px!important;
}
body.arduino-page #aimWireCard .aim-wire-layer-copy strong{
  font-size:10px!important;
}
body.arduino-page #aimWireCard .aim-wire-layer-tabs{
  width:102px!important;
  height:32px!important;
  padding:2px!important;
}
body.arduino-page #aimWireCard .aim-wire-layer-tabs button{
  height:26px!important;min-height:26px!important;padding:0 6px!important;font-size:7px!important;
}

@media(max-width:760px){
  body.arduino-page #aimWireCard{width:262px!important}
  body.arduino-page #aimWireCard .aim-wire-card-head{height:44px!important;min-height:44px!important;padding:0 38px 0 9px!important}
  body.arduino-page #aimWireCard .aim-wire-card-state{max-width:88px!important;height:25px!important}
  body.arduino-page #aimWireCard .aim-wire-card-body{grid-template-columns:70px minmax(0,1fr)!important;padding:8px 9px!important;gap:7px!important}
  body.arduino-page #aimWireCard .aim-wire-card-body #wirebuilder{width:70px!important;min-width:70px!important;height:45px!important;min-height:45px!important}
  body.arduino-page #aimWireCard .aim-wire-card-body .wire-palette button{width:21px!important;height:21px!important;min-width:21px!important;min-height:21px!important}
  body.arduino-page #aimWireCard .aim-wire-layer-control{grid-template-columns:minmax(0,1fr) 96px!important;padding:8px 9px!important}
  body.arduino-page #aimWireCard .aim-wire-layer-tabs{width:96px!important;height:30px!important}
  body.arduino-page #aimWireCard .aim-wire-layer-tabs button{height:24px!important;min-height:24px!important}
}


/* ===== SOURCE: labs/arduino/wiring/wire-card-micro-v027118.css ===== */
/* AIM STEM LAB v0.27.118 — compact engineering wire palette
   Presentation only. Keeps all existing wiring controls and behaviour while
   reducing the palette footprint on the Arduino workbench.
*/
body.arduino-page #aimWireCard{
  width:252px!important;
  max-width:calc(100% - 12px)!important;
  border-radius:12px!important;
  box-shadow:0 14px 30px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.03)!important;
}

/* Compact draggable header */
body.arduino-page #aimWireCard .aim-wire-card-head{
  height:40px!important;
  min-height:40px!important;
  padding:0 35px 0 8px!important;
  gap:6px!important;
}
body.arduino-page #aimWireCard .aim-wire-card-grip{
  width:22px!important;height:22px!important;min-width:22px!important;min-height:22px!important;
  border-radius:6px!important;font-size:12px!important;
}
body.arduino-page #aimWireCard .aim-wire-card-head>div strong::before{
  content:'Wire Color'!important;
  font-size:10.5px!important;
  letter-spacing:0!important;
}
body.arduino-page #aimWireCard .aim-wire-card-state{
  height:23px!important;
  max-width:82px!important;
  padding:0 7px!important;
  gap:5px!important;
  font-size:6.5px!important;
  border-radius:999px!important;
}
body.arduino-page #aimWireCard .aim-wire-card-state::before{
  width:5px!important;height:5px!important;min-width:5px!important;
  box-shadow:none!important;
}
body.arduino-page #aimWireCard .aim-wire-card-body #cancelwire{
  right:6px!important;top:6px!important;
  width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;
  border-radius:8px!important;
}
body.arduino-page #aimWireCard .aim-wire-card-body #cancelwire::after{
  font-size:15px!important;
}

/* One compact row: Wire action + colour choices */
body.arduino-page #aimWireCard .aim-wire-card-body{
  min-height:50px!important;
  padding:7px 8px!important;
  grid-template-columns:58px minmax(0,1fr)!important;
  gap:7px!important;
  align-items:center!important;
}
body.arduino-page #aimWireCard .aim-wire-card-body #wirebuilder{
  width:58px!important;min-width:58px!important;height:36px!important;min-height:36px!important;
  padding:3px 5px!important;
  border-radius:9px!important;
  grid-template-rows:11px 13px!important;
  gap:0!important;
}
body.arduino-page #aimWireCard .aim-wire-card-body #wirebuilder::before{
  font-size:10px!important;
}
body.arduino-page #aimWireCard .aim-wire-card-body #wirebuilder::after,
body.arduino-page #aimWireCard .aim-wire-card-body #wirebuilder[aria-pressed="true"]::after{
  font-size:7.5px!important;
}
body.arduino-page #aimWireCard .aim-wire-card-body #wirebuilder[aria-pressed="true"]::before{
  font-size:11px!important;
}
body.arduino-page #aimWireCard .aim-wire-card-body .wire-palette{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:3px!important;
  width:100%!important;
}
body.arduino-page #aimWireCard .aim-wire-card-body .wire-palette button{
  width:21px!important;height:21px!important;min-width:21px!important;min-height:21px!important;
  border-width:1.5px!important;
  box-shadow:0 2px 5px rgba(0,0,0,.18),inset 0 1px 1px rgba(255,255,255,.10)!important;
}
body.arduino-page #aimWireCard .aim-wire-card-body .wire-palette button:hover{
  transform:none!important;
}
body.arduino-page #aimWireCard .aim-wire-card-body .wire-palette button.is-active{
  box-shadow:0 0 0 1px #e8ffff,0 0 0 3px rgba(54,222,214,.28),0 3px 7px rgba(0,0,0,.20)!important;
}

/* Slim layer footer */
body.arduino-page #aimWireCard .aim-wire-layer-control{
  min-height:40px!important;
  padding:6px 8px!important;
  grid-template-columns:minmax(0,1fr) 88px!important;
  gap:6px!important;
}
body.arduino-page #aimWireCard .aim-wire-layer-copy small{
  font-size:5.8px!important;
  letter-spacing:.10em!important;
  margin:0 0 1px!important;
}
body.arduino-page #aimWireCard .aim-wire-layer-copy strong{
  font-size:8.5px!important;
  line-height:1!important;
}
body.arduino-page #aimWireCard .aim-wire-layer-tabs{
  width:88px!important;
  height:28px!important;
  border-radius:8px!important;
  padding:2px!important;
}
body.arduino-page #aimWireCard .aim-wire-layer-tabs button{
  height:22px!important;min-height:22px!important;
  padding:0 4px!important;
  border-radius:6px!important;
  font-size:6.5px!important;
}

/* Keep the card proportionate on narrow viewports too. */
@media(max-width:760px){
  body.arduino-page #aimWireCard{width:238px!important}
  body.arduino-page #aimWireCard .aim-wire-card-head{height:38px!important;min-height:38px!important;padding-right:33px!important}
  body.arduino-page #aimWireCard .aim-wire-card-state{max-width:74px!important;font-size:6px!important}
  body.arduino-page #aimWireCard .aim-wire-card-body{grid-template-columns:54px minmax(0,1fr)!important;padding:6px 7px!important;gap:6px!important}
  body.arduino-page #aimWireCard .aim-wire-card-body #wirebuilder{width:54px!important;min-width:54px!important;height:34px!important;min-height:34px!important}
  body.arduino-page #aimWireCard .aim-wire-card-body .wire-palette button{width:19px!important;height:19px!important;min-width:19px!important;min-height:19px!important}
  body.arduino-page #aimWireCard .aim-wire-layer-control{grid-template-columns:minmax(0,1fr) 82px!important;padding:5px 7px!important}
  body.arduino-page #aimWireCard .aim-wire-layer-tabs{width:82px!important;height:26px!important}
  body.arduino-page #aimWireCard .aim-wire-layer-tabs button{height:20px!important;min-height:20px!important;font-size:6px!important}
}


/* ===== SOURCE: labs/arduino/blocks/block-editor-v027157.css ===== */
/* AIM STEM LAB v0.27.157 — native Blockly integration */
#aimProgrammingPanel{min-height:0!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}
.aim-block-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 9px;border-bottom:1px solid #e7e1e3;background:#fff;flex:0 0 auto;min-height:44px;box-sizing:border-box}
.aim-program-mode,.aim-block-actions{display:flex;align-items:center;gap:5px;min-width:0}.aim-toolbar-label{font:800 9px/1.2 Inter,system-ui,sans-serif;letter-spacing:.13em;color:#7d6d72;margin-right:4px}
.aim-mode-button,.aim-block-actions button{appearance:none;border:1px solid #d9cfd2;background:#fff;color:#5a3440;border-radius:8px;padding:7px 10px;font:750 10px/1 Inter,system-ui,sans-serif;cursor:pointer;transition:.15s ease;white-space:nowrap}.aim-mode-button:hover,.aim-block-actions button:hover{border-color:#b8949f;background:#faf6f7}.aim-mode-button.is-active{background:#761d32;border-color:#761d32;color:#fff;box-shadow:0 1px 2px #761d3226}.aim-block-actions button{min-width:31px;padding-inline:8px}.aim-block-actions [data-act="clear"]{color:#8d273e}
.aim-block-status{margin:0;padding:6px 10px;background:#fbfafb;border-bottom:1px solid #ece7e9;color:#686064;font:500 10px/1.35 Inter,system-ui,sans-serif;flex:0 0 auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.aim-block-status.is-error{color:#9f1733;background:#fff1f4}.aim-block-studio{position:relative;flex:1 1 0;min-height:270px;overflow:hidden;background:#f7f7f8}.aim-block-studio[hidden]{display:none!important}.aim-blockly-host{position:absolute;inset:0;min-width:0;min-height:0}.aim-block-loading{position:absolute;inset:0;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;background:#f8f7f8;color:#553540;font:700 12px/1.3 Inter,system-ui,sans-serif}.aim-block-loading[hidden]{display:none}.aim-block-loading small{font-weight:500;color:#807479}.aim-block-spinner{width:22px;height:22px;border:3px solid #dbcbd0;border-top-color:#761d32;border-radius:50%;animation:aimBlockSpin .75s linear infinite}@keyframes aimBlockSpin{to{transform:rotate(360deg)}}
#aimProgrammingPanel[data-programming-mode='blocks']>.editorwrap{display:none!important}#aimProgrammingPanel[data-programming-mode='blocks']>.experiment{display:none!important}#aimProgrammingPanel>.filetab,#aimProgrammingPanel>.codefoot{flex:0 0 auto!important}#aimProgrammingPanel>.editorwrap{min-height:0!important}
/* Native Blockly refinement */
.aim-block-studio .blocklySvg{background:#f7f7f8!important}.aim-block-studio .blocklyToolboxDiv{border-right:1px solid #e5dfe1!important;box-shadow:none!important}.aim-block-studio .blocklyTreeRow{height:34px!important;margin:2px 5px!important;padding:0 8px!important;border-radius:7px!important;display:flex!important;align-items:center!important}.aim-block-studio .blocklyTreeLabel{font:700 10px/1 Inter,system-ui,sans-serif!important;color:#50474a!important}.aim-block-studio .blocklyTreeSelected .blocklyTreeLabel{color:#fff!important}.aim-block-studio .blocklyFlyoutBackground{fill:#fbfafb!important;fill-opacity:1!important}.aim-block-studio .blocklyFlyout{filter:drop-shadow(2px 0 3px #0000000d)}.aim-block-studio .blocklyScrollbarHandle{fill:#aaa0a4!important;fill-opacity:.75!important}.aim-block-studio .blocklyTrash{opacity:.82}.aim-block-studio .blocklyZoom>image{opacity:.78}.aim-block-studio .blocklyText{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif!important;font-weight:650!important}.aim-block-studio .blocklyEditableText>rect{fill:#fff!important;fill-opacity:.97!important}.aim-block-studio .blocklyWidgetDiv .goog-menuitem,.blocklyWidgetDiv .goog-menuitem{font:600 11px/1.25 Inter,system-ui,sans-serif}.blocklyDropDownDiv .goog-menuitem-content{font-family:Inter,system-ui,sans-serif!important}
.aim-mode-button:focus-visible,.aim-block-actions button:focus-visible{outline:2px solid #761d32;outline-offset:2px}
@media(max-width:900px){.aim-block-toolbar{padding:6px 7px}.aim-mode-button,.aim-block-actions button{padding:6px 8px}.aim-block-studio{min-height:250px}.aim-block-studio .blocklyTreeRow{height:32px!important;margin-inline:3px!important;padding-inline:6px!important}.aim-block-studio .blocklyTreeLabel{font-size:9px!important}}
@media(max-width:650px){.aim-toolbar-label{display:none}.aim-block-actions [data-act="clear"]{display:none}.aim-block-status{font-size:9px}.aim-block-studio{min-height:330px}.aim-block-studio .blocklyToolboxDiv{max-width:92px!important}.aim-block-studio .blocklyTreeRow{padding-inline:4px!important}.aim-block-studio .blocklyTreeLabel{font-size:8px!important}.aim-mode-button{padding-inline:7px}}
@media(max-width:430px){.aim-block-actions [data-act="fit"]{display:none}.aim-block-studio .blocklyToolboxDiv{max-width:78px!important}.aim-block-studio{min-height:370px}}

/* v0.27.157 — responsive full-width Blockly build canvas */
#aimProgrammingPanel[data-programming-mode='blocks']{width:100%!important;height:100%!important;min-width:0!important;min-height:0!important}
#aimProgrammingPanel[data-programming-mode='blocks'] .aim-block-studio{width:100%!important;max-width:none!important;min-width:0!important;min-height:340px!important;flex:1 1 auto!important}
#aimProgrammingPanel[data-programming-mode='blocks'] .aim-blockly-host,
#aimProgrammingPanel[data-programming-mode='blocks'] .blocklySvg{width:100%!important;height:100%!important;max-width:none!important}
body.aim-block-mode-active #inspector{min-width:0!important;max-width:none!important}
body.aim-block-mode-active .code-pane,
body.aim-block-mode-active .code-pane .codepanel{min-width:0!important;width:100%!important;max-width:none!important}
body.aim-block-mode-active .aim-block-status{padding-block:5px}
body.aim-block-mode-active .aim-block-studio .blocklyToolboxDiv{min-width:104px!important;max-width:122px!important}
body.aim-block-mode-active .aim-block-studio .blocklyTreeRow{margin-right:4px!important}
body.aim-block-mode-active .aim-block-studio .blocklyFlyoutBackground{stroke:#e7e0e3!important;stroke-width:1!important}
body.aim-block-mode-active .aim-block-studio .blocklyMainBackground{stroke:none!important}
body.aim-block-mode-active .aim-block-studio .blocklyScrollbarHorizontal{opacity:.72}
body.aim-block-mode-active .aim-block-studio .blocklyScrollbarVertical{opacity:.72}

@media(min-width:1100px){
  body.aim-block-mode-active .workzone{grid-template-columns:minmax(520px,1fr) var(--splitter-w) var(--inspector-w)!important}
  body.aim-block-mode-active #aimProgrammingPanel[data-programming-mode='blocks'] .aim-block-studio{min-height:390px!important}
}
@media(max-width:1099px){
  body.aim-block-mode-active.inspector-open .workzone{grid-template-rows:minmax(220px,.72fr) minmax(430px,1.28fr)!important}
  body.aim-block-mode-active #aimProgrammingPanel[data-programming-mode='blocks'] .aim-block-studio{min-height:390px!important}
}
@media(max-width:680px){
  body.aim-block-mode-active.inspector-open .workzone{grid-template-rows:minmax(190px,.62fr) minmax(470px,1.38fr)!important}
  body.aim-block-mode-active .aim-block-toolbar{gap:5px}
  body.aim-block-mode-active .aim-block-actions button{padding-inline:7px}
  body.aim-block-mode-active .aim-block-studio .blocklyToolboxDiv{min-width:82px!important;max-width:92px!important}
}


/* ===== SOURCE: labs/arduino/stability/project-boot-v027199.css ===== */
/* AIM STEM LAB v0.27.199 — stable Arduino project boot/restore.
   The base Arduino seed project may render before Project Cloud has resolved the
   learner's current project. Keep that provisional geometry invisible, then
   reveal once the final project is ready. During any cloud restore, transitions
   are disabled so components and wires settle in one frame instead of travelling
   through intermediate positions. */
body.arduino-page.aim-project-booting #parts,
body.arduino-page.aim-project-booting #wires{visibility:hidden!important}
body.arduino-page.aim-project-booting #bench,
html.aim-project-restoring body.arduino-page #bench,
html.aim-project-restoring body.arduino-page #parts .part,
html.aim-project-restoring body.arduino-page #wires,
html.aim-project-restoring body.arduino-page #wires *{transition:none!important;animation:none!important}
html{scrollbar-gutter:stable}


/* ===== SOURCE: labs/arduino/design/notice-centre-v027202.css ===== */
/* AIM STEM LAB v0.27.202 — professional Arduino notices and stable five-tab IDE navigation. */
body.arduino-page.arduino-notice-v027202 #toast{display:none!important}

body.arduino-page .aim-arduino-notice-layer{
  position:fixed;inset:0;z-index:2147483550;display:grid;place-items:center;padding:20px;
  pointer-events:none;background:transparent;transition:background .16s ease,backdrop-filter .16s ease;
}
body.arduino-page .aim-arduino-notice-layer[hidden]{display:none!important}
body.arduino-page .aim-arduino-notice-layer.is-critical{
  pointer-events:auto;background:rgba(5,18,25,.34);backdrop-filter:blur(2px);
}
body.arduino-page .aim-arduino-notice-card{
  --notice-accent:#8a1020;
  width:min(430px,calc(100vw - 28px));max-height:min(520px,calc(100dvh - 32px));overflow:auto;
  background:#fff;color:#173746;border:1px solid #d9e4e7;border-radius:18px;
  box-shadow:0 26px 75px rgba(6,25,32,.28),0 2px 10px rgba(6,25,32,.08);
  pointer-events:auto;transform:translateY(-8px) scale(.985);opacity:0;
  transition:transform .16s ease,opacity .16s ease;scrollbar-gutter:stable;
}
body.arduino-page .aim-arduino-notice-layer.is-visible .aim-arduino-notice-card{transform:none;opacity:1}
body.arduino-page .aim-arduino-notice-card[data-type="success"]{--notice-accent:#087f83}
body.arduino-page .aim-arduino-notice-card[data-type="warning"]{--notice-accent:#a66a08}
body.arduino-page .aim-arduino-notice-card[data-type="info"]{--notice-accent:#356c7a}
body.arduino-page .aim-notice-head{display:grid;grid-template-columns:42px minmax(0,1fr) 34px;gap:11px;align-items:center;padding:17px 18px 12px;border-bottom:1px solid #edf1f2}
body.arduino-page .aim-notice-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:color-mix(in srgb,var(--notice-accent) 10%,white);color:var(--notice-accent);font-size:20px;font-weight:950;border:1px solid color-mix(in srgb,var(--notice-accent) 18%,white)}
body.arduino-page .aim-notice-title{min-width:0;display:grid;gap:2px}
body.arduino-page .aim-notice-title small{font-size:8px;font-weight:900;letter-spacing:.11em;color:#7a9098;text-transform:uppercase}
body.arduino-page .aim-notice-title strong{font-size:15px;line-height:1.2;color:#173746;letter-spacing:-.01em}
body.arduino-page .aim-notice-close{width:34px;height:34px;border:1px solid #d9e4e7;border-radius:10px;background:#fff;color:#627881;font-size:18px;cursor:pointer;display:grid;place-items:center;padding:0}
body.arduino-page .aim-notice-close:hover{background:#f7f9fa;color:#8a1020;border-color:#d7b2b9}
body.arduino-page .aim-notice-body{padding:15px 18px 6px}
body.arduino-page .aim-notice-body p{margin:0;color:#4f6871;font-size:12px;line-height:1.6}
body.arduino-page .aim-notice-body .aim-notice-detail{margin-top:9px;padding:9px 10px;border-radius:9px;background:#f5f8f9;color:#637a82;font:500 10px/1.5 "Cascadia Mono",Consolas,monospace;white-space:pre-wrap;word-break:break-word}
body.arduino-page .aim-notice-actions{display:flex;justify-content:flex-end;gap:8px;padding:13px 18px 17px}
body.arduino-page .aim-notice-actions button{min-height:36px;border-radius:9px;padding:0 13px;font-size:10px;font-weight:850;cursor:pointer}
body.arduino-page .aim-notice-actions .secondary{border:1px solid #d5e1e4;background:#fff;color:#49636d}
body.arduino-page .aim-notice-actions .primary{border:1px solid var(--notice-accent);background:var(--notice-accent);color:#fff}
body.arduino-page .aim-notice-progress{height:3px;background:#eef3f4;overflow:hidden;border-radius:0 0 18px 18px}
body.arduino-page .aim-notice-progress i{display:block;height:100%;width:100%;transform-origin:left;background:var(--notice-accent);animation:aimNoticeProgress var(--aim-notice-duration,6500ms) linear forwards}
body.arduino-page .aim-arduino-notice-layer.is-critical .aim-notice-progress{display:none}
@keyframes aimNoticeProgress{to{transform:scaleX(0)}}

/* Informational messages are prominent without blocking the workbench. */
body.arduino-page .aim-arduino-notice-layer:not(.is-critical){place-items:start center;padding-top:clamp(92px,13vh,128px)}
body.arduino-page .aim-arduino-notice-layer:not(.is-critical) .aim-arduino-notice-card{width:min(390px,calc(100vw - 28px))}

/* Five IDE destinations always remain on one row: Code / Monitor / Serial / Plotter / Learn. */
body.arduino-page .inspector-tabs{
  display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;grid-template-rows:56px!important;
  grid-auto-flow:column!important;grid-auto-rows:56px!important;height:56px!important;min-height:56px!important;max-height:56px!important;flex:0 0 56px!important;
  overflow:hidden!important;align-items:stretch!important;
}
body.arduino-page .inspector-tabs button{
  min-width:0!important;width:auto!important;max-width:none!important;height:56px!important;min-height:56px!important;
  padding:4px 2px!important;margin:0!important;overflow:hidden!important;white-space:nowrap!important;
  display:grid!important;place-items:center!important;align-content:center!important;gap:2px!important;
}
body.arduino-page .inspector-tabs button span{font-size:12px!important;line-height:1!important}
body.arduino-page .inspector-tabs button b{font-size:8px!important;line-height:1.1!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:100%!important}
body.arduino-page.arduino-notice-v027202 .inspector-body{height:calc(100% - 56px)!important}
body.arduino-page [data-studio-tab="code"].has-code-errors::after{right:4px!important;top:4px!important}

@media(max-width:640px){
  body.arduino-page .aim-arduino-notice-layer{padding:12px}
  body.arduino-page .aim-notice-head{grid-template-columns:38px minmax(0,1fr) 32px;padding:14px 14px 10px}
  body.arduino-page .aim-notice-icon{width:38px;height:38px;border-radius:10px}
  body.arduino-page .aim-notice-body{padding:13px 14px 5px}
  body.arduino-page .aim-notice-actions{padding:11px 14px 14px}
  body.arduino-page .inspector-tabs button b{font-size:7.25px!important}
  body.arduino-page .inspector-tabs button span{font-size:11px!important}
}


/* ===== SOURCE: labs/arduino/design/ide-tabs-v027193.css ===== */
/* AIM STEM LAB v0.27.193 — final equal-width Arduino IDE navigation.
   The older approved UI owns a higher-specificity four-column rule, so this
   release deliberately matches/exceeds that specificity and locks the final
   five destinations to one row: Code / Monitor / Serial / Plotter / Learn. */
html body.arduino-page.arduino-approved-v2713 .inspector-tabs,
html body.arduino-page.arduino-prephase6-v2720 .inspector-tabs,
html body.arduino-page .lab-side-tabs.inspector-tabs{
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  grid-template-rows:56px!important;
  grid-auto-flow:row!important;
  grid-auto-columns:unset!important;
  grid-auto-rows:56px!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  height:56px!important;
  min-height:56px!important;
  max-height:56px!important;
  flex:0 0 56px!important;
  padding:0!important;
  margin:0!important;
  overflow:hidden!important;
  align-items:stretch!important;
}
html body.arduino-page.arduino-approved-v2713 .inspector-tabs > button,
html body.arduino-page.arduino-prephase6-v2720 .inspector-tabs > button,
html body.arduino-page .lab-side-tabs.inspector-tabs > button{
  box-sizing:border-box!important;
  grid-row:1!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  height:56px!important;
  min-height:56px!important;
  max-height:56px!important;
  padding:4px 3px!important;
  margin:0!important;
  overflow:hidden!important;
  visibility:visible!important;
  opacity:1!important;
  display:grid!important;
  place-items:center!important;
  align-content:center!important;
  justify-content:stretch!important;
  gap:3px!important;
  white-space:nowrap!important;
}
html body.arduino-page.arduino-approved-v2713 .inspector-tabs > button span,
html body.arduino-page.arduino-approved-v2713 .inspector-tabs > button b,
html body.arduino-page .lab-side-tabs.inspector-tabs > button span,
html body.arduino-page .lab-side-tabs.inspector-tabs > button b{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  text-align:center!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
html body.arduino-page.arduino-approved-v2713 .inspector-tabs > button span,
html body.arduino-page .lab-side-tabs.inspector-tabs > button span{
  font-size:12px!important;
  line-height:1!important;
}
html body.arduino-page.arduino-approved-v2713 .inspector-tabs > button b,
html body.arduino-page .lab-side-tabs.inspector-tabs > button b{
  font-size:8px!important;
  line-height:1.15!important;
}
/* Learn is the fifth destination and must never be hidden, collapsed or moved. */
html body.arduino-page.arduino-approved-v2713 .inspector-tabs > [data-studio-tab="learn"],
html body.arduino-page .lab-side-tabs.inspector-tabs > [data-studio-tab="learn"]{
  display:grid!important;
  grid-column:5!important;
  grid-row:1!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  visibility:visible!important;
  opacity:1!important;
}
/* Keep the remaining destinations in deterministic positions after runtime insertion. */
html body.arduino-page.arduino-approved-v2713 .inspector-tabs > [data-studio-tab="code"]{grid-column:1!important}
html body.arduino-page.arduino-approved-v2713 .inspector-tabs > [data-studio-tab="monitor"]{grid-column:2!important}
html body.arduino-page.arduino-approved-v2713 .inspector-tabs > [data-studio-tab="serial"]{grid-column:3!important}
html body.arduino-page.arduino-approved-v2713 .inspector-tabs > [data-studio-tab="plotter"]{grid-column:4!important}
html body.arduino-page.arduino-approved-v2713 .inspector-tabs > [data-studio-tab="learn"]{grid-column:5!important}
@media(max-width:640px){
  html body.arduino-page.arduino-approved-v2713 .inspector-tabs > button b,
  html body.arduino-page .lab-side-tabs.inspector-tabs > button b{font-size:7.5px!important}
  html body.arduino-page.arduino-approved-v2713 .inspector-tabs > button span,
  html body.arduino-page .lab-side-tabs.inspector-tabs > button span{font-size:11px!important}
}

