/* Editor reference panels use the same quiet hardware vocabulary as the board. */
.editor-toolbar{gap:10px;flex-wrap:wrap}
.editor-toolbar .file{margin-right:auto;min-width:0;max-width:320px}
.editor-toolbar select{margin-left:0;max-width:180px}
#open-hardware[aria-expanded=true],#open-reference[aria-expanded=true]{background:var(--soft);border-color:var(--line)}
.code-hardware{flex:0 0 280px;max-width:38%;min-width:0;display:flex;flex-direction:column;padding:16px 18px 8px;border-left:1px solid var(--line);background:var(--surface);font-size:12px}
.code-hardware:focus{outline:none}.code-hardware:focus-visible{outline:2px solid var(--green);outline-offset:-3px}
.code-hardware-list{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding-bottom:12px}
.code-device-group h3{margin:16px 0 10px;font-size:11px;color:var(--muted);font-weight:600}.code-device-group:first-child h3{margin-top:4px}
.code-device-reference{border:1px solid var(--line);border-radius:9px;padding:10px;margin-bottom:9px;background:var(--paper)}
.code-device-summary{display:flex;gap:8px;align-items:center;min-width:0}.code-device-summary>div{min-width:0;flex:1}.code-device-summary .actuator-art{width:48px;height:48px}
.copy-device-name{background:none;border:0;border-radius:4px;padding:4px 0;min-width:0;max-width:100%;white-space:normal;justify-content:flex-start;text-align:left;gap:6px}
.copy-device-name code{font:600 12px var(--mono);overflow-wrap:anywhere;min-width:0}.copy-symbol{width:13px;height:13px;flex:none;fill:none;stroke:var(--muted);stroke-width:1.4}
.code-device-summary p{font-size:10px;margin:2px 0;color:var(--muted)}
.code-device-reference details{border-top:1px solid var(--line);margin-top:8px;padding-top:6px}.code-device-reference summary{font-size:11px;cursor:pointer;color:var(--muted)}
.lookup-code{display:block;white-space:pre-wrap;overflow-wrap:anywhere;padding:10px 0 4px;font:11px/1.7 var(--mono);color:var(--ink)}
.code-device-reference details button{font-size:11px;padding:5px 0}
#code-hardware-feedback{margin:4px 0;font-size:11px;overflow-wrap:anywhere}#code-hardware-feedback:empty{display:none}
.test-toolbar{justify-content:space-between}.test-toolbar #test-status{flex:1;margin:0}.test-toolbar>button{min-width:130px}.test-toolbar svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:760px){
 .editor-toolbar .file{order:0;max-width:calc(100% - 150px);flex:1 0 calc(100% - 150px)}.editor-toolbar #compile{order:1;margin-left:auto}
 .editor-toolbar select{order:2;width:auto;flex:1;max-width:none;min-width:90px}
 .editor-toolbar #format-code{order:3}.editor-toolbar #open-hardware{order:4}.editor-toolbar #open-reference{order:5}
 .editor-toolbar #format-code,.editor-toolbar #open-hardware,.editor-toolbar #open-reference{font-size:12px;padding:7px 9px}
 .code-hardware{position:absolute;inset:0;max-width:none;border-left:0;z-index:2}
 .test-toolbar #test-status{order:0;width:auto;min-width:130px;font-size:11px}.test-toolbar>button{min-width:120px}
}

.editor-assist-status{position:fixed;z-index:10;bottom:calc(20px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 32px);font-size:12px;line-height:1.5;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:0 4px 20px #0002;padding:12px 18px;margin:0;overflow-wrap:anywhere;pointer-events:none}.editor-assist-status:empty{display:none}
.import-assist{flex:none;max-height:145px;overflow:auto;padding:8px 22px;border-bottom:1px solid var(--line);background:var(--surface);font-size:12px}.import-assist summary{cursor:pointer;color:var(--green)}.import-choice{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:9px 0}.import-choice strong{font-size:11px}.import-choice button{font:11px var(--mono);padding:6px 8px;white-space:normal;overflow-wrap:anywhere;text-align:left}
