.explorer{margin:0;border:0;border-bottom:1px solid var(--line);padding:40px 0 48px;scroll-margin:8px;--canvas:#172d29;--rule:#d1d6cb;--side:260px}
.explorer [hidden]{display:none!important}.ex-header{display:flex;align-items:center;gap:20px;justify-content:space-between;margin-bottom:22px}.ex-header h2{margin:0;font-size:clamp(35px,4vw,58px)}.ex-overline{color:var(--green);font-size:12px;font-weight:650;letter-spacing:.06em;margin:0 0 5px}.explorer button,.explorer select,.explorer input{font:inherit}.explorer button,.explorer select{cursor:pointer}.explorer button{border:1px solid var(--rule);border-radius:4px;padding:7px 10px;color:var(--ink);background:#fffdf7;font-size:13px;font-weight:600}.explorer button:hover{background:#e7ecdf}.explorer button:focus-visible,.explorer input:focus-visible,.explorer select:focus-visible,.ex-stage:focus-visible{outline:2px solid #58936c;outline-offset:-2px}.ex-work{overflow:hidden;border:1px solid #b6c1b3;border-radius:6px;background:#f2f3eb}.ex-tabs{display:flex;gap:4px;padding:8px;border-bottom:1px solid var(--rule)}.ex-tabs button{background:transparent;border-color:transparent;padding:8px 15px}.ex-tabs button[aria-pressed=true]{background:#334c3b;color:white}.ex-grid{display:grid;grid-template-columns:minmax(0,1fr) var(--side)}.ex-viewport{position:relative;min-width:0;background:var(--canvas);background-image:radial-gradient(#647c702e .8px,transparent .8px);background-size:14px 14px;isolation:isolate}.ex-stage,.ex-panel{height:clamp(445px,44vw,610px)}.ex-stage{width:100%;touch-action:none;overflow:hidden}.ex-stage>svg,.ex-stage>canvas{display:block;width:100%;height:100%;touch-action:none}.ex-stage>svg{cursor:grab}.ex-stage>svg:active{cursor:grabbing}.explorer[data-mode=schematic] .ex-viewport{background:#e4e5dd}.explorer[data-mode=case] .ex-viewport,.explorer[data-mode=pcb3] .ex-viewport{background:radial-gradient(ellipse at 42% 35%,#e9e9df,#b6beb4)}.ex-fallback{width:100%;height:100%;object-fit:contain}.ex-status{position:absolute;top:12px;left:12px;max-width:80%;padding:7px 10px;background:#fafaf1ef;color:#263c30;border-radius:4px;font-size:13px}.ex-readout,.ex-camera{position:absolute;bottom:12px;border-radius:4px}.ex-readout{left:12px;font:11px ui-monospace,monospace;line-height:1.3;padding:6px 9px;max-width:calc(100% - 145px);color:#eaf0e7;background:#273d34ed;pointer-events:none}.ex-camera{right:12px;display:flex;background:#f8f9f1;box-shadow:0 1px 4px #0002;overflow:hidden}.ex-camera button{border:0;border-radius:0;min-width:34px;padding:6px 8px}.ex-camera button+button{border-left:1px solid var(--rule)}.ex-camera button:not(:last-child){font-size:16px}.ex-panel{min-width:0;overflow:auto;padding:16px;font-size:13px;border-left:1px solid var(--rule);overscroll-behavior:contain}.ex-field,.ex-range{display:block;font-weight:600;margin-bottom:13px}.ex-panel input[type=search],.ex-panel select{display:block;width:100%;min-height:34px;margin-top:5px;border:1px solid #a9b5a7;background:#fffef9;padding:5px 7px;border-radius:3px;color:var(--ink)}.ex-results{max-height:180px;overflow:auto;border:1px solid var(--rule);margin:-5px 0 12px}.ex-results button{display:block;text-align:left;width:100%;border:0;border-bottom:1px solid var(--rule);border-radius:0}.ex-results small{display:block;font-weight:400}.ex-results p{margin:6px}.ex-selection{border-left:3px solid #b38c47;background:#ebece1;padding:10px;margin:0 0 12px;overflow-wrap:anywhere}.ex-selection strong{font-size:15px}.ex-selection p{margin:4px 0}.ex-links,.ex-presets{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0}.ex-links button,.ex-presets button{font-size:11px;padding:5px 7px}.ex-selection .ex-clear{border:0;font-size:11px;background:transparent;padding:3px 0;text-decoration:underline}.ex-selection .ex-field{margin:8px 0}.ex-options{border:0;border-top:1px solid var(--rule);padding:0}.ex-options summary{font-size:13px;padding:10px 0;color:var(--ink)}.ex-options summary span{font-weight:400;color:var(--muted)}.ex-layerlist label,.ex-check,.ex-inline label{display:flex;align-items:center;gap:7px;cursor:pointer;min-height:25px;line-height:1.3}.ex-layerlist i{width:9px;height:9px;border-radius:50%;border:1px solid #0002}.ex-layerlist{padding-bottom:10px}.ex-panel input{accent-color:#44654e}.ex-inline{padding-top:8px}.ex-range output{float:right;font:12px ui-monospace,monospace}.ex-range input{width:100%;display:block;margin:8px 0}.ex-check{margin:8px 0}.ex-foot{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:8px 12px;color:var(--muted);font-size:12px;border-top:1px solid var(--rule)}.ex-foot a{flex-shrink:0}.ref-mark,.pcb-hit{fill:transparent;cursor:pointer}.ref-mark:hover,.ref-mark.selected{fill:#f1b83b55;stroke:#907023;stroke-width:1.3}.pcb-hit:hover{fill:#ffdd8888}.board-label{fill:#fff5cf;stroke:#152e28;stroke-width:.45;paint-order:stroke;font:bold 2px ui-monospace,monospace}
.explorer:fullscreen,.explorer.ex-expanded{width:100%;height:100%;background:var(--paper);overflow:auto;padding:14px clamp(12px,2vw,34px)}.explorer.ex-expanded{position:fixed;inset:0;z-index:1000}.ex-lock{overflow:hidden}.explorer:is(:fullscreen,.ex-expanded) .ex-header{margin-bottom:10px}.explorer:is(:fullscreen,.ex-expanded) .ex-overline{display:none}.explorer:is(:fullscreen,.ex-expanded) .ex-header h2{font-size:28px}.explorer:is(:fullscreen,.ex-expanded) :is(.ex-stage,.ex-panel){height:calc(100dvh - 164px)}
@media(max-width:800px){.explorer{--side:210px}.ex-panel{padding:10px}.ex-tabs button{padding:8px 10px}}
@media(max-width:650px){.explorer{padding:28px 0}.ex-grid{display:flex;flex-direction:column}.ex-header{margin-bottom:14px;gap:8px}.ex-full{white-space:nowrap}.ex-tabs{gap:0;justify-content:space-between;padding:4px}.ex-tabs button{padding:7px 5px;font-size:12px}.ex-stage{height:clamp(310px,89vw,480px)}.ex-panel{height:auto;max-height:310px;border-left:0;border-top:1px solid var(--rule)}.ex-layerlist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px}.ex-foot{align-items:flex-start;font-size:11px}.ex-readout{font-size:10px}.explorer:is(:fullscreen,.ex-expanded) .ex-stage{height:clamp(235px,57dvh,700px)}.explorer:is(:fullscreen,.ex-expanded) .ex-panel{height:auto;max-height:none}.ex-camera button{min-width:30px}}
.net-mark{fill:transparent;cursor:pointer}.net-mark:hover,.net-mark.selected{fill:#65ba9270;stroke:#267056;stroke-width:.75}

/* The work area follows the document strip, command bar, browser and canvas layout. */
.explorer{--rule:#c8cdd3;--side:250px;--canvas:#000}
.ex-work{background:#f5f6f7;border:1px solid #8d959f;border-radius:5px;color:#252a30}
.ex-tabs{background:#e5e8eb;border-color:#a7afb8;padding:0 8px;gap:0}
.ex-tabs button,.ex-tabs button[aria-pressed=true]{border:0;border-radius:0;background:transparent;color:#343943;font-size:13px;font-weight:550;padding:9px 16px;border-bottom:3px solid transparent}
.ex-tabs button[aria-pressed=true]{color:#125d96;background:#fff;border-color:#1878b6}.ex-tabs button:hover,.ex-tools button:hover{background:#d6e5f1}
.ex-tools{display:flex;gap:2px;padding:3px 10px;background:#f1f3f5;border-bottom:1px solid #bfc5cc}
.ex-tools button{display:flex;align-items:center;gap:6px;color:#333e49;border:0;background:transparent;font-size:12px;font-weight:500;padding:5px 8px}
.ex-tools button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.ex-tools button[aria-pressed=true]{background:#d5e7f4;color:#135b91}
.explorer:is([data-mode=board],[data-mode=schematic]) :is(.ex-tools,.ex-cube){display:none}
.ex-grid{grid-template-columns:var(--side) minmax(0,1fr);grid-template-areas:"browser model"}
.ex-viewport{grid-area:model;background:#000;background-image:none}.explorer[data-mode=schematic] .ex-viewport{background:#fff}
.explorer:is([data-mode=pcb3],[data-mode=case]) .ex-viewport{background:#2e3440}
.ex-panel{grid-area:browser;padding:0 12px 12px;border-left:0;border-right:1px solid #aeb5bd;background:#f6f7f8}
.ex-browser-title{position:sticky;top:0;z-index:2;margin:0 -12px 10px;padding:5px 12px;text-transform:uppercase;letter-spacing:.06em;font-size:11px;font-weight:700;background:#e0e3e6;border-bottom:1px solid #c4c9cd}
.ex-panel input{accent-color:#1976ac}.ex-panel input[type=search],.ex-panel select,.ex-presets button,.ex-camera button,.ex-links button{background:#fff;border-color:#bac1c8}
.ex-panel summary,.ex-field,.ex-options summary{color:#333d46}.ex-selection{background:#e3eef6;border-color:#1976ac}
.ex-native-layers{display:grid;grid-template-columns:1fr 1fr;gap:2px 4px}.ex-native-layers label{font-size:11px;gap:3px}.ex-native-layers label span,.ex-tree-branch small{color:#5b6773;font:10px ui-monospace,monospace}
.ex-tree-title{font-weight:650;border-top:1px solid var(--rule);padding:8px 0 3px}.ex-tree-branch{border:0}.ex-tree-branch summary{font:12px system-ui;padding:4px 0}.ex-tree-branch small{margin-left:5px}.ex-tree-children{margin-left:6px;padding-left:6px;border-left:1px solid #b7c0c8}.ex-tree-children>div{display:flex;align-items:center}.ex-tree-children button{background:none;border:0;padding:3px 2px;text-align:left;font-size:11px;font-weight:500;word-break:break-word}
.ex-cube{position:absolute;z-index:1;top:6px;right:8px;width:81px;height:74px;overflow:visible;pointer-events:none}.ex-cube g{pointer-events:auto;cursor:pointer}.ex-cube polygon{stroke:#5d6570;stroke-width:1.25}.ex-cube g:hover polygon,.ex-cube g:focus polygon{fill:#9ad5fd}.ex-cube text{fill:#263039;font:bold 7px system-ui;pointer-events:none}
.ex-readout{background:#2c323ad9;color:#f7f8fa}.ex-camera{right:50%;transform:translateX(50%);bottom:9px;background:#eff2f4}.ex-camera button{background:#e7eaed}.ex-readout{max-width:calc(50% - 78px)}
.ex-foot{background:#e8ebee;color:#46505b}.ex-foot a{color:#285879}.ex-dialog{width:min(920px,93vw);padding:12px;background:#f3f5f6;border:1px solid #858e99;border-radius:4px;max-height:94dvh;color:#27313c}.ex-dialog::backdrop{background:#131820bc}.ex-dialogbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.ex-dialogbar button{padding:3px 11px}.ex-reference-list{max-width:100%;padding:5px}.ex-native-image{display:block;width:100%;height:min(62dvh,600px);object-fit:contain;background:#2e3440;margin:8px 0}
.explorer:is(:fullscreen,.ex-expanded):is([data-mode=case],[data-mode=pcb3]) :is(.ex-stage,.ex-panel){height:calc(100dvh - 220px)}
@media(max-width:800px){.explorer{--side:203px}.ex-tools button{padding:5px}.ex-native-layers{grid-template-columns:1fr}}
@media(max-width:650px){.ex-grid{display:flex}.ex-viewport{order:0}.ex-panel{order:1;border-right:0}.ex-tabs button,.ex-tabs button[aria-pressed=true]{padding:7px 5px;font-size:12px}.ex-tools{justify-content:space-around}.ex-tools button{min-height:32px;min-width:34px;justify-content:center}.ex-tools button span{display:none}.ex-cube{width:61px;height:56px}.ex-native-layers{grid-template-columns:1fr 1fr}.ex-camera{right:8px;transform:none}.ex-readout{max-width:calc(100% - 130px)}.explorer:is(:fullscreen,.ex-expanded):is([data-mode=case],[data-mode=pcb3]) .ex-stage{height:clamp(230px,53dvh,650px)}.explorer:is(:fullscreen,.ex-expanded):is([data-mode=case],[data-mode=pcb3]) .ex-panel{height:auto}}
.ex-open-original{display:block;cursor:zoom-in}.ex-dialog [data-action=useref]{margin-top:2px}

.symbol-hit{fill:transparent;cursor:pointer}
.schematic-wire,.schematic-pin{fill:none;stroke:transparent;stroke-width:3.2;pointer-events:stroke;cursor:pointer}
.schematic-net-selected{fill:#186f59;stroke:#186f59;stroke-linecap:round;stroke-linejoin:round}
.schematic-net-selected path{fill:none;stroke-width:1.2}

.board-wire{fill:none;stroke:transparent;stroke-width:.36;pointer-events:stroke;cursor:pointer}

.ex-tree-children button[aria-pressed=true]{background:#d9e6ee;color:#113e59;font-weight:650}
