.pp-editor-arduino{margin:1.5rem 0;color:#172033;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.pp-editor-arduino *{box-sizing:border-box}
.pp-editor-arduino__intro{margin-bottom:1rem}
.pp-editor-arduino__eyebrow{display:inline-block;font-size:.72rem;font-weight:800;letter-spacing:.09em;color:#0f766e}
.pp-editor-arduino__intro h2{margin:.35rem 0;font-size:clamp(1.5rem,3vw,2rem)}
.pp-editor-arduino__intro p,.pp-editor-arduino__note{line-height:1.6;color:#526174}
.pp-editor-arduino__toolbar{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap;margin:1rem 0}
.pp-editor-arduino__toolbar button{border:0;border-radius:8px;padding:.72rem 1rem;font-weight:700;cursor:pointer;background:#0f766e;color:#fff}
.pp-editor-arduino__toolbar .pp-editor-arduino__reset{background:#e2e8f0;color:#172033}
.pp-editor-arduino__status{font-size:.88rem;color:#526174}
.pp-editor-arduino__status[data-state="success"]{color:#047857}
.pp-editor-arduino__status[data-state="error"]{color:#b91c1c}
.pp-editor-arduino__layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(260px,.8fr);gap:1rem;align-items:stretch}
.pp-editor-arduino__panel,.pp-editor-arduino__sim-panel{border:1px solid #d8e0e8;border-radius:12px;overflow:hidden;min-width:0;background:#fff}
.pp-editor-arduino__panel label,.pp-editor-arduino__sim-title{display:flex;justify-content:space-between;align-items:center;gap:.5rem;padding:.8rem 1rem;background:#f1f5f9;font-weight:750}
.pp-editor-arduino__panel label span,.pp-editor-arduino__sim-title span{font-size:.78rem;color:#64748b;font-weight:500}
.pp-editor-arduino__panel textarea{display:block;width:100%;min-height:390px;padding:1rem;border:0;border-radius:0;background:#282a36;color:#f8f8f2;font:14px/1.55 ui-monospace,SFMono-Regular,Menlo,monospace;resize:vertical}
.pp-editor-arduino .CodeMirror{height:390px;font:14px/1.55 ui-monospace,SFMono-Regular,Menlo,monospace}
.pp-editor-arduino__panel>p{padding:0 1rem;font-size:.83rem;color:#64748b;line-height:1.5}
.pp-editor-arduino__sim-body{padding:1rem}
.pp-editor-arduino__board{background:#166534;border-radius:12px;padding:1rem;color:#fff;min-height:190px;display:flex;flex-direction:column;justify-content:space-between}
.pp-editor-arduino__board-name{font-weight:800;letter-spacing:.04em}
.pp-editor-arduino__led-wrap{display:flex;align-items:center;gap:.8rem;margin:1.1rem 0}
.pp-editor-arduino__led{width:34px;height:34px;border-radius:50%;background:#475569;border:3px solid #cbd5e1;box-shadow:inset 0 0 0 4px #334155;transition:background .2s,box-shadow .2s}
.pp-editor-arduino__led.is-on{background:#ff3434;box-shadow:0 0 8px #ff3434,0 0 22px #ff3434;border-color:#fecaca}
.pp-editor-arduino__led-state{font-weight:700}
.pp-editor-arduino__board small{color:#dcfce7}
.pp-editor-arduino__serial-title{font-weight:750;margin:1rem 0 .4rem}
.pp-editor-arduino__output{margin:0;background:#111827;color:#bbf7d0;border-radius:8px;min-height:115px;max-height:260px;overflow:auto;padding:.85rem;white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.55 ui-monospace,SFMono-Regular,Menlo,monospace}
.pp-editor-arduino__steps-title{font-weight:750;margin:1rem 0 .4rem}
.pp-editor-arduino__steps{margin:0;padding-left:1.4rem;max-height:140px;overflow:auto;color:#334155;font-size:.9rem}
.pp-editor-arduino__steps li{margin:.25rem 0}
.pp-editor-arduino__note{font-size:.86rem;margin-top:1rem}
@media(max-width:760px){.pp-editor-arduino__layout{grid-template-columns:minmax(0,1fr)}.pp-editor-arduino__panel textarea,.pp-editor-arduino .CodeMirror{min-height:330px;height:330px}.pp-editor-arduino__toolbar button{flex:1}.pp-editor-arduino__status{width:100%}}
