#view-circuit{margin-left:calc(-1 * clamp(0px,2vw,24px));margin-right:calc(-1 * clamp(0px,2vw,24px))}.circuit-lab-app{--cl-bg:#0e1620;--cl-panel:#15212d;--cl-panel2:#1a2936;--cl-line:#2c4050;--cl-text:#eaf2f7;--cl-muted:#91a6b6;--cl-accent:#46c8c5;--cl-red:#e46666;--cl-yellow:#efc45f;position:relative;height:calc(100vh - 126px);min-height:620px;background:var(--cl-bg);border:1px solid #243746;border-radius:22px;overflow:hidden;color:var(--cl-text);box-shadow:0 25px 70px rgba(4,16,26,.18)}.cl-top{height:58px;display:flex;align-items:center;gap:14px;padding:8px 12px;background:rgba(17,29,40,.97);border-bottom:1px solid var(--cl-line);position:relative;z-index:8}.cl-title{min-width:145px}.cl-title strong{font-size:14px}.cl-title span{display:block;color:var(--cl-muted);font-size:10px;margin-top:2px}.cl-tools{display:flex;flex:1 1 auto;min-width:0;gap:6px;align-items:center;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch}.cl-tools button,.cl-inst-tabs button,.cl-panel button,.cl-modal button{border:1px solid var(--cl-line);background:var(--cl-panel2);color:var(--cl-text);height:36px;min-width:36px;border-radius:9px;cursor:pointer;font-weight:700}.cl-tools button.active{background:#1d555b;border-color:#3eaeb0}.cl-tools button:disabled{opacity:.3;cursor:not-allowed}.cl-sep{height:24px;width:1px;background:var(--cl-line)}.cl-live{margin-left:auto;flex:0 0 auto;display:flex;gap:6px;align-items:center;font-size:10px;color:#78dacb;font-weight:800;letter-spacing:1px}.cl-live i{width:7px;height:7px;border-radius:50%;background:#55d79c;box-shadow:0 0 10px #55d79c}.cl-workspace{display:grid;grid-template-columns:248px minmax(0,1fr) 280px;height:calc(100% - 58px)}.cl-panel{background:rgba(20,32,44,.98);border-color:var(--cl-line);overflow:auto;z-index:5}.cl-library{border-right:1px solid var(--cl-line)}.cl-inspector{border-left:1px solid var(--cl-line)}.cl-panel-head{display:flex;align-items:center;justify-content:space-between;padding:14px;border-bottom:1px solid var(--cl-line);position:sticky;top:0;background:var(--cl-panel);z-index:2}.cl-panel-head button{height:28px;min-width:28px}.cl-library>input{margin:12px;width:calc(100% - 24px);background:#0f1b25;border:1px solid var(--cl-line);color:var(--cl-text);border-radius:10px;padding:10px}.cl-cat{padding:4px 10px 12px}.cl-cat h4{font-size:10px;color:var(--cl-muted);letter-spacing:1px;text-transform:uppercase;margin:10px 4px 7px}.cl-library-item{width:100%;display:flex;align-items:center;gap:9px;border:0;background:transparent;color:var(--cl-text);padding:9px;border-radius:9px;cursor:grab;text-align:left}.cl-library-item:hover{background:#203342}.cl-symbol-chip{width:34px;height:30px;border-radius:8px;background:#223746;display:grid;place-items:center;color:var(--cl-accent);font-weight:800}.cl-canvas-wrap{position:relative;overflow:hidden;background:#101a23;touch-action:none;overscroll-behavior:contain}.cl-canvas{display:block;width:100%;height:100%;touch-action:none;user-select:none}.cl-grid{stroke:#2c3e4d;stroke-width:.6}.cl-grid+*{}.cl-canvas pattern:first-of-type path{stroke:#1d2b37;stroke-width:.55}.cl-canvas pattern:nth-of-type(2)>path{stroke:#314555;stroke-width:.8}.cl-world-wire{fill:none;stroke:#83a5b7;stroke-width:3;vector-effect:non-scaling-stroke;stroke-linejoin:round;stroke-linecap:round}.cl-world-wire.selected{stroke:#59d1ce}.cl-wire-hit{fill:none;stroke:transparent;stroke-width:18;vector-effect:non-scaling-stroke;cursor:pointer}.cl-junction{fill:#84a8ba;stroke:#101a23;stroke-width:2;vector-effect:non-scaling-stroke}.cl-comp{cursor:grab}.cl-comp.selected .cl-body{stroke:#52d5d1;stroke-width:2.5}.cl-body{fill:#172633;stroke:#7894a7;stroke-width:1.5;vector-effect:non-scaling-stroke}.cl-pin-hit{fill:transparent;stroke:none;cursor:crosshair}.cl-pin{fill:#d8eef3;stroke:#10202c;stroke-width:2;vector-effect:non-scaling-stroke}.cl-pin-hot{fill:#58d7d1;filter:drop-shadow(0 0 6px #58d7d1)}.cl-label{fill:#dce9f0;font-size:13px;font-weight:700;paint-order:stroke;stroke:#101a23;stroke-width:3px;stroke-linejoin:round}.cl-value{fill:#8fa7b5;font-size:11px;paint-order:stroke;stroke:#101a23;stroke-width:3px}.cl-led-glow{filter:drop-shadow(0 0 8px currentColor)}.cl-wire-preview{fill:none;stroke:#4bd2cf;stroke-width:2.5;stroke-dasharray:7 5;vector-effect:non-scaling-stroke}.cl-hud{position:absolute;left:10px;bottom:10px;display:flex;gap:7px;pointer-events:none}.cl-hud span{background:rgba(9,17,24,.82);border:1px solid #2c4050;border-radius:8px;padding:6px 8px;color:#a9bdca;font-size:10px}.cl-inspector-body{}.cl-empty{padding:18px;color:var(--cl-muted);font-size:12px;line-height:1.6}.cl-form{padding:14px}.cl-form label{display:block;color:var(--cl-muted);font-size:10px;margin:0 0 12px}.cl-form input,.cl-form select{display:block;width:100%;margin-top:6px;background:#0f1b25;border:1px solid var(--cl-line);color:var(--cl-text);border-radius:9px;padding:10px}.cl-form .row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.cl-form button{width:100%;margin-top:8px}.cl-danger{border-color:#75464a!important;color:#ff9d9d!important}.cl-instrument-dock{position:absolute;left:258px;right:290px;bottom:0;z-index:7;background:rgba(12,22,31,.97);border:1px solid #314757;border-bottom:0;border-radius:16px 16px 0 0;max-height:44%;min-height:250px;display:none;overflow:hidden}.cl-instrument-dock.open{display:block}.cl-inst-tabs{height:43px;display:flex;gap:5px;padding:5px;border-bottom:1px solid var(--cl-line)}.cl-inst-tabs button{height:31px;padding:0 12px}.cl-inst-tabs button.active{background:#1d555b}.cl-inst-tabs button:last-child{margin-left:auto}.cl-inst-body{height:calc(100% - 43px);padding:12px;overflow:auto}.cl-dmm{display:grid;grid-template-columns:220px 1fr;gap:14px}.cl-dmm-display{background:#071218;border:1px solid #2b4c58;border-radius:12px;padding:18px;display:flex;flex-direction:column;justify-content:center}.cl-dmm-display strong{font-family:ui-monospace,monospace;font-size:29px;color:#bbf6e6}.cl-dmm-display small{color:#73939f}.cl-scope-layout{display:grid;grid-template-columns:250px 1fr;gap:12px}.cl-scope-screen{background:#071218;border:1px solid #274552;border-radius:12px;min-height:190px}.cl-scope-screen svg{width:100%;height:220px}.cl-scope-grid{stroke:#153443;stroke-width:1}.cl-scope-zero{stroke:#2b5664;stroke-width:1}.cl-ch1{fill:none;stroke:#efc34e;stroke-width:2}.cl-ch2{fill:none;stroke:#43cbd0;stroke-width:2}.cl-scope-controls{display:grid;grid-template-columns:1fr 1fr;gap:7px}.cl-scope-controls label{font-size:9px;color:var(--cl-muted)}.cl-scope-controls select,.cl-scope-controls input{width:100%;margin-top:4px;background:#0f1b25;border:1px solid var(--cl-line);color:var(--cl-text);padding:8px;border-radius:8px}.cl-scope-measures{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:8px}.cl-measure{background:#0e1b25;border:1px solid #29404f;border-radius:8px;padding:7px;font-size:9px}.cl-measure b{display:block;font-size:11px;margin-top:3px}.cl-modal{position:absolute;inset:0;z-index:20;background:rgba(1,7,12,.55);display:grid;place-items:center}.cl-modal[hidden]{display:none}.cl-modal-card{width:min(380px,90%);background:#15212d;border:1px solid #3a5263;border-radius:16px;padding-bottom:14px}.cl-modal-card>label,.cl-modal-card>p{display:block;margin:14px;color:var(--cl-muted);font-size:11px}.cl-modal-card input{width:100%;margin-top:6px;background:#0f1b25;border:1px solid var(--cl-line);color:white;padding:10px;border-radius:8px}.cl-modal-actions{display:flex;gap:8px;margin:14px}.cl-modal-actions button{flex:1}.cl-toast{position:absolute;left:50%;bottom:18px;transform:translateX(-50%) translateY(20px);background:#101c25;border:1px solid #385363;color:#e7f2f6;padding:9px 12px;border-radius:9px;font-size:11px;opacity:0;pointer-events:none;transition:.2s;z-index:30}.cl-toast.show{opacity:1;transform:translateX(-50%) translateY(0)}.cl-selection-box{fill:rgba(70,200,197,.08);stroke:#46c8c5;stroke-dasharray:5 4;vector-effect:non-scaling-stroke}.cl-probe-dot{stroke-width:3;vector-effect:non-scaling-stroke}.cl-probe-dot.ch1{fill:#efc34e;stroke:#fff3bd}.cl-probe-dot.ch2{fill:#43cbd0;stroke:#b8f6f7}.cl-warning{padding:8px 10px;background:#392a1a;border:1px solid #6a4f2b;border-radius:8px;color:#efca85;font-size:10px;margin:8px}.cl-disabled{opacity:.45}
@media(max-width:1000px){#view-circuit{margin-left:0;margin-right:0}.circuit-lab-app{height:calc(100dvh - 112px);min-height:min(560px,calc(100dvh - 112px));border-radius:17px}.cl-title{min-width:104px}.cl-title span{display:none}.cl-workspace{grid-template-columns:1fr}.cl-library,.cl-inspector{position:absolute;top:58px;bottom:0;width:min(84vw,330px);z-index:12;box-shadow:0 20px 50px rgba(0,0,0,.35);transition:transform .22s ease}.cl-library{left:0;transform:translateX(-105%)}.cl-library.open{transform:none}.cl-inspector{right:0;transform:translateX(105%)}.cl-inspector.open{transform:none}.cl-instrument-dock{left:8px;right:8px;bottom:0;max-height:66%;min-height:300px;border-radius:17px 17px 0 0}.cl-dmm,.cl-scope-layout{grid-template-columns:1fr}.cl-scope-screen svg{height:180px}.cl-live span{display:none}.cl-tools{gap:4px}.cl-tools button{height:34px;min-width:34px}.cl-scope-measures{grid-template-columns:repeat(2,1fr)}}

.cl-scope-runbar{display:flex;gap:5px;margin-bottom:8px}.cl-scope-runbar button,.cl-scope-channel button{border:1px solid var(--cl-line);background:#142634;color:var(--cl-text);border-radius:7px;padding:6px 8px;font-size:10px}.cl-scope-runbar button.active{background:#1d555b}.cl-scope-channels{display:grid;gap:5px;margin-bottom:9px}.cl-scope-channel{display:grid;grid-template-columns:50px 30px 48px 72px 1fr 1fr 58px;gap:5px;align-items:center;background:#0e1b25;border:1px solid #29404f;border-radius:8px;padding:5px}.cl-scope-channel label{font-size:9px;color:var(--cl-muted)}.cl-scope-channel input[type=color]{width:28px;height:28px;border:0;background:transparent}.cl-scope-channel select{min-width:0;background:#0f1b25;border:1px solid var(--cl-line);color:var(--cl-text);border-radius:6px;padding:5px;font-size:9px}@media(max-width:700px){.cl-scope-channel{grid-template-columns:45px 28px 44px 66px 1fr 1fr 54px}.cl-scope-runbar{overflow-x:auto}}

.cl-scope-channel input[data-scope="name"],.cl-scope-channel input[data-scope="vpos"]{min-width:0;background:#0f1b25;border:1px solid var(--cl-line);color:var(--cl-text);border-radius:6px;padding:5px;font-size:9px}.cl-scope-measures[hidden]{display:none}
.cl-symbol-chip svg{width:31px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.circuit-lab-app.cl-delete-mode .cl-world-wire:hover,.circuit-lab-app.cl-delete-mode .cl-comp:hover .cl-body{stroke:#d66f75}.circuit-lab-app.cl-delete-mode .cl-probe-dot:hover{stroke:#ff8c91;filter:drop-shadow(0 0 5px rgba(255,100,110,.45))}.circuit-lab-app.cl-delete-mode .cl-inst-tabs button[data-inst="dmm"]:hover,.circuit-lab-app.cl-delete-mode .cl-inst-tabs button[data-inst="scope"]:hover{border-color:#805056;color:#ffb2b5}
.cl-project-card{width:min(620px,94%);max-height:min(78vh,720px);overflow:auto}.cl-project-section{margin:10px 14px 0;border-top:1px solid var(--cl-line);padding-top:10px}.cl-project-section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.cl-project-section-head strong{font-size:11px;color:var(--cl-muted);text-transform:uppercase;letter-spacing:.9px}.cl-project-section-head button{height:30px;min-width:30px}.cl-project-list{display:grid;gap:7px}.cl-project-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;padding:9px 10px;border:1px solid var(--cl-line);border-radius:10px;background:#0f1b25}.cl-project-meta{min-width:0}.cl-project-meta strong{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cl-project-meta small{display:block;margin-top:3px;color:var(--cl-muted);font-size:9px}.cl-project-actions{display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end}.cl-project-actions button{height:30px;min-width:30px;padding:0 8px;font-size:9px}.cl-project-actions .danger{border-color:#75464a;color:#ff9d9d}@media(max-width:600px){.cl-project-row{grid-template-columns:1fr}.cl-project-actions{justify-content:flex-start}.cl-project-card{width:96%}}

/* v13 instrument workspace: resizable without moving the circuit canvas */
.cl-instrument-dock{--cl-dock-height:340px;height:var(--cl-dock-height);max-height:min(74%,680px);min-height:220px}
.cl-dock-grip{position:absolute;left:50%;top:2px;transform:translateX(-50%);z-index:3;width:72px;height:18px;border:0;background:transparent;cursor:ns-resize;padding:0}
.cl-dock-grip::after{content:"";position:absolute;left:16px;right:16px;top:7px;height:3px;border-radius:999px;background:#5f7786;opacity:.7}
.cl-dock-grip:hover::after,.cl-dock-grip:focus-visible::after{background:#78c8c6;opacity:1}
.cl-inst-tabs{padding-top:12px}
@media(max-width:1000px){.cl-instrument-dock{--cl-dock-height:46dvh;height:var(--cl-dock-height);min-height:220px;max-height:78dvh}.cl-dock-grip{height:24px;touch-action:none}.cl-dock-grip::after{top:9px;height:4px}}

/* v14 physical probe interaction */
.cl-probe-control{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;align-items:end}.cl-probe-control select{min-width:0}.cl-probe-pick{height:38px!important;min-width:58px!important;margin-top:6px!important;padding:0 9px!important;font-size:9px}.cl-probe-red{border-color:#8b4b50!important;color:#ff9ca2!important}.cl-probe-black{border-color:#64727c!important;color:#dce5ea!important}.cl-dmm-probe{vector-effect:non-scaling-stroke;stroke-width:3;pointer-events:auto}.cl-dmm-red{fill:#db5962;stroke:#ffd9dc}.cl-dmm-black{fill:#17212a;stroke:#d8e1e7}.cl-dmm-probe:hover{filter:drop-shadow(0 0 6px rgba(255,255,255,.35))}
@media(max-width:700px){.cl-probe-control{grid-template-columns:1fr 58px}.cl-probe-pick{min-width:52px!important;padding:0 6px!important}}

.cl-tools [data-action="diagnostics"]{position:relative}
.cl-tools [data-action="diagnostics"][data-count]:not([data-count="0"])::after{content:attr(data-count);position:absolute;right:-5px;top:-6px;min-width:16px;height:16px;padding:0 3px;border-radius:9px;background:#8a5a22;color:#fff;font-size:9px;line-height:16px;text-align:center;border:1px solid #f0b35c}
.cl-tools [data-action="diagnostics"].has-errors::after{background:#8d3338;border-color:#ff8c94}
.cl-diagnostics-card{width:min(620px,94%);max-height:min(80vh,760px);overflow:auto}
.cl-diagnostics-summary{display:flex;gap:8px;padding:12px 14px 4px}
.cl-diag-chip{border-radius:999px;padding:5px 9px;font-size:10px;border:1px solid var(--cl-line)}
.cl-diag-chip.error{background:#3c1f24;border-color:#774047;color:#ffadb3}
.cl-diag-chip.warning{background:#392a1a;border-color:#6a4f2b;color:#efca85}
.cl-diagnostics-list{display:grid;gap:7px;padding:10px 14px}
.cl-diag-row{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:9px;align-items:center;width:100%;text-align:left;background:#0f1b25;border:1px solid var(--cl-line);border-radius:10px;padding:9px;color:var(--cl-text)}
.cl-diag-row.error{border-color:#6a343a}.cl-diag-row.warning{border-color:#59482d}
.cl-diag-row small{display:block;color:var(--cl-muted);margin-top:3px;line-height:1.4}.cl-diag-row em{font-size:9px;font-style:normal;color:#78d5d0}
.cl-diag-icon{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#243440}
.cl-diag-row.error .cl-diag-icon{background:#52282e;color:#ffadb3}.cl-diag-row.warning .cl-diag-icon{background:#49361f;color:#efca85}
.cl-diag-ok{padding:18px;border:1px solid #28524b;border-radius:10px;background:#102b28}.cl-diag-ok strong,.cl-diag-ok span{display:block}.cl-diag-ok span{margin-top:5px;color:var(--cl-muted);font-size:10px}

.cl-tools [data-action="explorer"].active{background:#173d3b;border-color:#3e8e89;color:#92f0e9}
.cl-node-live{pointer-events:none}.cl-node-live text{font-size:10px;font-weight:700;paint-order:stroke;stroke:#071017;stroke-width:3px;stroke-linejoin:round}
.cl-power-live{pointer-events:none;text-anchor:middle;font-size:9px;fill:#e7d8a2;paint-order:stroke;stroke:#071017;stroke-width:3px}
.cl-explorer-legend{display:none;position:absolute;z-index:5;left:12px;top:12px;gap:8px;padding:6px 8px;border-radius:8px;background:rgba(8,17,24,.82);border:1px solid var(--cl-line);font-size:9px;color:var(--cl-muted);pointer-events:none}
.cl-canvas-wrap.explorer-active .cl-explorer-legend{display:flex}
.cl-explorer-legend span{display:flex;align-items:center;gap:4px}.cl-explorer-legend i{width:8px;height:8px;border-radius:50%;display:inline-block}.cl-explorer-legend .negative{background:rgb(45,105,240)}.cl-explorer-legend .zero{background:rgb(120,125,70)}.cl-explorer-legend .positive{background:rgb(230,55,70)}

.cl-annotation{cursor:grab}.cl-annotation rect{fill:#182733;stroke:#516778;stroke-width:1}.cl-annotation text{fill:#d8e3e8;font-size:12px;user-select:none;pointer-events:none}.cl-annotation.selected rect{stroke:#7ad8d2;stroke-width:2}.cl-delete-mode .cl-annotation:hover rect{stroke:#d56a72}

@media(max-width:520px){
 .cl-scope-layout>*{min-width:0}
 .cl-scope-channel{grid-template-columns:52px 34px 62px minmax(0,1fr);gap:6px;padding:6px}
 .cl-scope-channel>*{min-width:0;max-width:100%;box-sizing:border-box}
 .cl-scope-channel>:nth-child(1){grid-column:1}
 .cl-scope-channel>:nth-child(2){grid-column:2}
 .cl-scope-channel>:nth-child(3){grid-column:3}
 .cl-scope-channel>:nth-child(4){grid-column:4}
 .cl-scope-channel>:nth-child(5){grid-column:1 / span 2}
 .cl-scope-channel>:nth-child(6){grid-column:3 / span 2}
 .cl-scope-channel>:nth-child(7){grid-column:1 / -1}
 .cl-scope-channel button{min-height:34px}
 .cl-scope-controls{grid-template-columns:1fr}
 .cl-scope-measures{grid-template-columns:1fr 1fr}
}

.cl-tools::-webkit-scrollbar{display:none}

/* v81 mobile safe-area protection */
@media(max-width:1000px){
 .cl-instrument-dock{bottom:env(safe-area-inset-bottom,0px)}
 .cl-inst-body{padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))}
}

/* v82 short mobile viewport / landscape protection */
@media(max-width:1000px) and (max-height:560px){
 .circuit-lab-app{min-height:0}
 .cl-instrument-dock{
  --cl-dock-height:min(58dvh,260px);
  min-height:min(220px,58dvh);
  max-height:calc(100% - 58px);
 }
 .cl-inst-body{padding:8px 10px calc(10px + env(safe-area-inset-bottom,0px))}
 .cl-scope-screen svg{height:150px}
}

/* v83 mobile side-panel safe-area protection */
@media(max-width:1000px){
 .cl-library,.cl-inspector{
  box-sizing:border-box;
  padding-bottom:env(safe-area-inset-bottom,0px);
 }
}

/* v84 mobile touch-target hardening */
@media(max-width:1000px) and (pointer:coarse){
 .cl-tools button,.cl-inst-tabs button{
  min-width:44px;
  height:44px;
 }
 .cl-panel-head button{
  min-width:44px;
  height:44px;
 }
 .cl-library-item{
  min-height:44px;
 }
}

/* v85 complete mobile touch-target coverage */
@media(max-width:1000px) and (pointer:coarse){
 .cl-panel button,
 .cl-modal button,
 .cl-scope-runbar button,
 .cl-scope-channel button,
 .cl-probe-pick{
  min-height:44px!important;
 }
 .cl-project-actions button{
  min-height:44px;
 }
}

/* v86 coarse-pointer topbar geometry */
@media(max-width:1000px) and (pointer:coarse){
 .cl-top{height:60px}
 .cl-workspace{height:calc(100% - 60px)}
 .cl-library,.cl-inspector{top:60px}
}
@media(max-width:1000px) and (max-height:560px) and (pointer:coarse){
 .cl-instrument-dock{max-height:calc(100% - 60px)}
}

/* v109 model-transition interaction lock */
#clApp.cl-model-transition .cl-workspace,
#clApp.cl-model-transition .cl-tools,
#clApp.cl-model-transition .cl-library,
#clApp.cl-model-transition .cl-inspector,
#clApp.cl-model-transition .cl-instrument-dock,
#clApp.cl-model-transition .cl-modal{
 pointer-events:none;
 user-select:none;
}
#clApp.cl-model-transition{cursor:progress}

/* v125 targeted UX correction batch: white professional workbench, simplified controls */
#view-circuit{margin-left:0;margin-right:0}
.circuit-lab-app{
 --cl-bg:#ffffff;--cl-panel:#ffffff;--cl-panel2:#f7f9fc;--cl-line:#d7e0e8;
 --cl-text:#142033;--cl-muted:#677487;--cl-accent:#347bbd;--cl-red:#d83d45;--cl-yellow:#b98319;
 background:#fff;border:0;border-radius:0;box-shadow:none;color:var(--cl-text);overflow:hidden;
}
.cl-top{background:rgba(255,255,255,.96);border-bottom:1px solid #e1e7ed;padding:8px 14px;backdrop-filter:blur(16px)}
.cl-title strong{font-size:15px;color:#132033}.cl-title span{color:#778395}
.cl-tools button,.cl-inst-tabs button,.cl-panel button,.cl-modal button{
 border:1px solid #dce4eb;background:#fff;color:#1d2939;box-shadow:0 2px 8px rgba(26,48,71,.045);
}
.cl-tools button{display:grid;place-items:center}.cl-tools button svg,.cl-panel-head button svg,.cl-inst-tabs button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cl-tools button:hover,.cl-tools button.active{background:#edf5fc;border-color:#9bc2e7;color:#276da8}
.cl-tools .cl-danger-tool{color:#cf3038;border-color:#f0c5c8;background:#fff6f6}
.cl-tools .cl-danger-tool.active{background:#cf3038;border-color:#cf3038;color:#fff}
.cl-secondary-tool{display:none!important}
.cl-live{color:#418d69}.cl-live i{background:#48c78e;box-shadow:0 0 8px rgba(72,199,142,.55)}
.cl-workspace{grid-template-columns:230px minmax(0,1fr) 270px;background:#fff}
.cl-panel{background:#fff;border-color:#e1e7ed;color:#172235}
.cl-panel-head{background:#fff;border-bottom:1px solid #e7edf2;padding:12px 14px}
.cl-panel-head button{display:grid;place-items:center}
.cl-library>input{background:#f8fafc;border:1px solid #dce4eb;color:#142033;padding:10px 12px}
.cl-cat h4{color:#778395}.cl-library-item{color:#172235}.cl-library-item:hover{background:#f3f7fb}
.cl-symbol-chip{background:#f5f8fb;color:#1e293b;border:1px solid #e2e8ee}
.cl-symbol-chip svg{width:32px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.cl-instrument-library{display:grid;grid-template-columns:1fr;gap:8px;padding:0 10px 10px}
.cl-instrument-library>button{min-height:64px;display:grid;grid-template-columns:42px 1fr;gap:10px;align-items:center;text-align:left;padding:9px 10px;border-radius:12px;background:#f7fbff;border-color:#cfe0ef;color:#183047}
.cl-instrument-library>button:hover{background:#edf6ff;border-color:#98bfe2}
.cl-instrument-card-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:#fff;border:1px solid #d9e5ef;color:#347bbd}
.cl-instrument-card-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.cl-instrument-library strong,.cl-instrument-library small{display:block}.cl-instrument-library small{font-size:9px;color:#748294;margin-top:3px;font-weight:500}
.cl-canvas-wrap{background:#fff}
.cl-canvas{background:#fff}
.cl-grid{stroke:#d9e2eb;stroke-width:.55}
.cl-canvas pattern:first-of-type path{fill:none!important;stroke:#edf1f5;stroke-width:.6}
.cl-canvas pattern:nth-of-type(2)>path{fill:none!important;stroke:#d9e2eb;stroke-width:.9}
.cl-world-wire{stroke:#256ea8;stroke-width:2.5}.cl-world-wire.selected{stroke:#0f8d94;stroke-width:3}
.cl-junction{fill:#256ea8;stroke:#fff}.cl-body{fill:#fff;stroke:#172235;stroke-width:1.8}.cl-comp.selected .cl-body{stroke:#287bb8;stroke-width:2.5}
.cl-pin{fill:#fff;stroke:#172235;stroke-width:2}.cl-pin-hot{fill:#2a83c0;stroke:#fff;filter:drop-shadow(0 0 6px rgba(42,131,192,.55))}
.cl-label{fill:#172235;stroke:#fff;stroke-width:3px}.cl-value{fill:#647386;stroke:#fff;stroke-width:3px}
.cl-wire-preview{stroke:#2485bd;stroke-width:2.5;stroke-dasharray:7 5}
.cl-hud span{background:rgba(255,255,255,.93);border:1px solid #dbe4ec;color:#536274;box-shadow:0 3px 14px rgba(24,42,61,.08)}
.cl-explorer-legend{background:rgba(255,255,255,.94);border-color:#dbe4ec;color:#5c6a7a}
.cl-inspector{background:#fff}.cl-form{padding:18px}.cl-form>strong{font-size:18px;color:#152236}
.cl-form label{color:#667587;font-size:11px}.cl-form input,.cl-form select{background:#f8fafc;border:1px solid #d8e2ea;color:#172235}
.cl-form button{background:#f8fafc;color:#172235}.cl-form .cl-danger{background:#fff5f5!important;color:#c92d35!important;border-color:#efb7bb!important}
.cl-empty{color:#6c7a8c}
.cl-instrument-dock{background:#fff;border:1px solid #d8e2ea;box-shadow:0 -12px 36px rgba(25,48,70,.12)}
.cl-inst-tabs{background:#fff;border-bottom:1px solid #e1e7ed;height:48px;padding:6px 8px}.cl-inst-tabs button{height:36px;display:flex;align-items:center;gap:7px;padding:0 13px}.cl-inst-tabs button.active{background:#edf5fc;border-color:#9bc2e7;color:#276da8}.cl-inst-tabs button span{display:grid;place-items:center}.cl-inst-body{background:#fff}
.cl-dmm-display,.cl-scope-screen{background:#f8fbfd;border-color:#cfdae4}.cl-dmm-display strong{color:#173b4d}.cl-dmm-display small{color:#6b7c89}
.cl-scope-grid{stroke:#dce8ee}.cl-scope-zero{stroke:#b8cbd5}.cl-measure{background:#f7fafc;border-color:#dbe5ec;color:#243447}
.cl-scope-controls select,.cl-scope-controls input,.cl-scope-channel select{background:#fff;border-color:#d8e2ea;color:#1c2a3b}.cl-scope-channel{background:#f8fafc;border-color:#dae4eb}
.cl-modal{background:rgba(28,42,58,.24);backdrop-filter:blur(4px)}.cl-modal-card{background:#fff;border-color:#d9e2ea;box-shadow:0 24px 80px rgba(31,48,65,.18)}.cl-modal-card input{background:#f8fafc;border-color:#d9e2ea;color:#172235}
.cl-toast{background:#172235;border-color:#172235;color:#fff}
.cl-annotation rect{fill:#fff;stroke:#9ba9b7}.cl-annotation text{fill:#263647}

/* Larger magnetic targets are invisible, while visible terminals stay precise. */
.cl-pin-hit{r:20px}.cl-wire-hit{stroke-width:22}

@media(max-width:1000px){
 #view-circuit{margin-left:calc(-1 * clamp(0px,4vw,24px));margin-right:calc(-1 * clamp(0px,4vw,24px))}
 .circuit-lab-app{height:calc(100dvh - 104px);min-height:520px;border-radius:0}
 .cl-top{height:54px;padding:7px 14px}.cl-title{min-width:0;flex:1}.cl-title strong{font-size:16px}.cl-title span{display:none}.cl-live{margin-left:auto}
 .cl-workspace{height:calc(100% - 54px);display:block;position:relative;padding-bottom:204px}
 .cl-canvas-wrap{position:absolute;inset:0 0 204px 0}
 .cl-tools{position:absolute;left:0;right:0;bottom:0;height:64px;z-index:19;background:rgba(255,255,255,.97);border-top:1px solid #e0e7ed;padding:7px max(8px,env(safe-area-inset-left)) calc(7px + env(safe-area-inset-bottom,0px));display:flex;justify-content:space-around;gap:6px;overflow:visible}
 .cl-tools button{width:46px;min-width:46px;height:46px!important;border-radius:14px;box-shadow:none}.cl-tools button svg{width:21px;height:21px}
 .cl-tools [data-tool="select"]{display:none}.cl-tools [data-action="project"]{display:grid}
 .cl-tools [data-action="library"]{order:4;border-radius:50%;background:#347bbd;color:#fff;border-color:#347bbd;width:50px;min-width:50px;height:50px!important;margin-top:-3px}.cl-tools [data-action="library"]:hover,.cl-tools [data-action="library"].active{background:#2b70aa;color:#fff}
 .cl-tools [data-tool="wire"]{order:2}.cl-tools [data-tool="delete"]{order:3}.cl-tools [data-action="undo"]{order:1}.cl-tools [data-action="instruments"]{order:5}.cl-tools [data-action="project"]{order:6}
 .cl-live span{display:none}
 .cl-library{position:absolute;left:0;right:0;top:auto!important;bottom:64px;width:100%;height:140px;transform:none!important;border:0;border-top:1px solid #e1e7ed;box-shadow:0 -8px 24px rgba(34,52,70,.06);z-index:15;display:grid;grid-template-columns:150px 1fr;grid-template-rows:42px 1fr;padding:0!important;overflow:hidden;transition:height .2s ease}
 .cl-library.open{height:min(330px,46dvh)}
 .cl-library .cl-panel-head{display:none}.cl-library>input{grid-column:1;grid-row:1;margin:6px 8px;width:134px;height:34px;padding:7px 9px;font-size:11px}
 .cl-instrument-library{grid-column:1;grid-row:2;padding:2px 6px 6px;display:flex;gap:5px;overflow-x:auto}.cl-instrument-library>button{min-width:64px;width:64px;min-height:82px;display:flex;flex-direction:column;justify-content:center;gap:4px;padding:5px;text-align:center;border:0;background:transparent}.cl-instrument-library>button span:last-child small{display:none}.cl-instrument-library>button span:last-child strong{font-size:9px}.cl-instrument-card-icon{width:38px;height:38px}
 #clLibraryBody{grid-column:2;grid-row:1 / span 2;overflow-x:auto;overflow-y:hidden;display:flex;align-items:stretch;padding:4px 6px;-webkit-overflow-scrolling:touch}.cl-cat{display:contents}.cl-cat h4{display:none}.cl-library-item{min-width:88px;width:88px;height:126px;display:flex;flex-direction:column;justify-content:center;gap:8px;padding:5px;text-align:center;white-space:normal}.cl-library-item>span:last-child{font-size:9px;line-height:1.2}.cl-symbol-chip{width:54px;height:48px;background:#fff;border:0}.cl-symbol-chip svg{width:48px;height:34px}
 .cl-inspector{position:absolute;inset:0;width:100%;height:100%;top:0!important;bottom:0;right:0;transform:translateY(105%);z-index:27;box-shadow:none;border:0;padding:0;background:#fff;transition:transform .22s ease}.cl-inspector.open{transform:none}.cl-inspector .cl-panel-head{height:58px;padding:8px 14px;border-bottom:1px solid #e0e7ed}.cl-inspector .cl-panel-head strong{font-size:17px}.cl-inspector-body,#clInspectorBody{max-width:620px;margin:0 auto;padding-bottom:80px}
 .cl-instrument-dock{left:0;right:0;bottom:64px;max-height:70%;min-height:300px;border-left:0;border-right:0;border-radius:20px 20px 0 0;z-index:24}.cl-inst-tabs{padding:7px 10px}.cl-inst-tabs button{min-height:42px!important}.cl-inst-tabs button:last-child{margin-left:auto;width:42px;padding:0;justify-content:center}
 .cl-hud{bottom:10px}.cl-hud span{font-size:9px}
}

@media(max-width:520px){
 .cl-workspace{padding-bottom:190px}.cl-canvas-wrap{bottom:190px}.cl-library{height:126px}.cl-library.open{height:min(310px,46dvh)}
 .cl-library{grid-template-columns:120px 1fr}.cl-library>input{width:106px}.cl-library-item{min-width:82px;width:82px;height:112px}.cl-symbol-chip{width:48px;height:44px}.cl-instrument-library>button{min-width:52px;width:52px}.cl-instrument-card-icon{width:34px;height:34px}
 .cl-tools{height:64px}.cl-instrument-dock{bottom:64px}
}

/* v126 targeted UX correction batch */
.circuit-lab-app{color-scheme:light}
.cl-symbol-text{fill:#172235;font-size:15px;font-weight:800;paint-order:stroke;stroke:#fff;stroke-width:3px}
.cl-terminal-dot{fill:#fff;stroke:#172235;stroke-width:2;vector-effect:non-scaling-stroke}
.cl-switch-state{font-size:8px;font-weight:850;letter-spacing:.8px;paint-order:stroke;stroke:#fff;stroke-width:3px}.cl-switch-state.open{fill:#b35454}.cl-switch-state.closed{fill:#25805d}
.cl-comp{cursor:grab}.cl-comp:active{cursor:grabbing}

/* Structured component library */
.cl-library-toolbar{padding:10px;border-bottom:1px solid #e7edf2;background:#fff;position:sticky;top:49px;z-index:3}
.cl-library-search{height:38px;display:flex;align-items:center;gap:8px;border:1px solid #dce4eb;background:#f8fafc;border-radius:11px;padding:0 10px;margin:0!important}
.cl-library-search>span{display:grid;place-items:center;color:#668098}.cl-library-search>span svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cl-library-search input{border:0!important;background:transparent!important;padding:0!important;margin:0!important;width:100%!important;height:100%;outline:0;color:#172235;font-size:12px}
.cl-library-folders{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px}
.cl-library-folders button{height:29px;min-width:0;border-radius:999px;padding:0 9px;background:#fff;border:1px solid #dbe4ec;color:#5d6d7f;font-size:9px;box-shadow:none}
.cl-library-folders button.active{background:#eaf4ff;border-color:#9bc4e8;color:#216da9}
.cl-cat{padding:8px 10px 12px}.cl-cat h4{margin:5px 3px 7px}.cl-cat-items{display:grid;gap:4px}
.cl-library-item{min-height:50px}.cl-library-item>span:last-child{font-weight:700;font-size:11px}
.cl-symbol-chip{flex:0 0 auto;width:46px;height:38px;border-radius:10px}.cl-symbol-chip svg{width:42px;height:29px;stroke-width:1.9}
.cl-instrument-library>button{cursor:pointer}

/* Professional DMM */
.cl-dmm-pro{display:grid;grid-template-columns:minmax(280px,.75fr) minmax(420px,1.25fr);gap:14px;padding:14px}
.cl-meter-readout{border:1px solid #cbd8e2;border-radius:18px;padding:18px;background:linear-gradient(145deg,#f7fbfd,#eef5f8);min-height:190px;display:flex;flex-direction:column;justify-content:center;box-shadow:inset 0 1px 0 #fff}
.cl-meter-readout-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.cl-meter-brand{font-size:9px;letter-spacing:1.5px;font-weight:850;color:#536a78}.cl-meter-live{font-size:9px;font-weight:800;color:#2b7c5b}.cl-meter-live i{display:inline-block;width:7px;height:7px;background:#45bd85;border-radius:50%;margin-right:5px}
.cl-meter-readout #clDmmLabel{font-size:10px;letter-spacing:1.2px;color:#6e8190}.cl-meter-readout #clDmmValue{font:750 34px ui-monospace,SFMono-Regular,Menlo,monospace;color:#102c3b;line-height:1.2;margin:5px 0 10px;word-break:break-word}.cl-meter-readout #clDmmNote{font-size:10px;line-height:1.45;color:#6e7e89}
.cl-meter-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px}.cl-control-card,.cl-probe-card{border:1px solid #d8e2ea;border-radius:14px;background:#fff;padding:12px}.cl-mode-card{grid-column:1/-1}.cl-current-target{grid-column:1/-1}.cl-current-target p{margin:7px 0 0;color:#7a8897;font-size:9px;line-height:1.4}.cl-control-kicker{display:block;color:#748493;font-size:8px;font-weight:850;letter-spacing:1.1px;text-transform:uppercase;margin-bottom:7px}
.cl-meter-controls label,.cl-scope-pro label{font-size:9px;color:#697989;font-weight:750}.cl-meter-controls select,.cl-scope-pro select,.cl-scope-pro input{appearance:auto;-webkit-appearance:auto;width:100%;min-height:38px;background:#f8fafc!important;color:#18283a!important;border:1px solid #d6e0e8!important;border-radius:10px!important;padding:7px 9px!important;font:600 11px Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;opacity:1!important}
.cl-probe-grid{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:10px}.cl-probe-title{display:grid;grid-template-columns:14px 1fr;align-items:center;gap:1px 7px;margin-bottom:9px}.cl-probe-title strong{font-size:11px;color:#1c2a39}.cl-probe-title small{grid-column:2;font-size:8px;color:#82909e}.cl-probe-dot-ui{width:11px;height:11px;border-radius:50%;background:#222}.cl-probe-card.red .cl-probe-dot-ui{background:#d64d55}.cl-probe-card.black .cl-probe-dot-ui{background:#26313c}
.cl-probe-card select{width:100%;min-height:38px;border:1px solid #d7e1e9;background:#f8fafc;color:#1c2a39;border-radius:9px;padding:7px 9px;font-size:11px}.cl-probe-card .cl-probe-pick{width:100%;min-height:38px;margin-top:7px;border:1px solid #cfdce6;background:#fff;color:#355b76;border-radius:10px;display:flex;align-items:center;justify-content:center;gap:7px;font-size:10px;font-weight:750}.cl-probe-card .cl-probe-pick svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.cl-probe-card.red .cl-probe-pick{color:#b94048;border-color:#efc5c8;background:#fff9f9}

/* Professional oscilloscope */
.cl-scope-pro{padding:14px;display:grid;grid-template-columns:minmax(440px,1.15fr) minmax(390px,.85fr);gap:14px;background:#fff}
.cl-scope-display-panel,.cl-scope-control-panel{min-width:0}.cl-scope-display-panel{border:1px solid #d7e2ea;border-radius:17px;padding:12px;background:#f8fbfd;align-self:start}.cl-scope-statusbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}.cl-scope-statusbar strong{font-size:10px;letter-spacing:1.3px;color:#243849}.cl-scope-statusbar>div:first-child span{margin-left:8px;font-size:8px;color:#348064;background:#e6f5ee;border-radius:999px;padding:4px 7px;font-weight:850}.cl-scope-scale{display:flex;gap:6px}.cl-scope-scale span{font-size:8px;color:#6d7e8e;background:#fff;border:1px solid #dbe4eb;border-radius:8px;padding:4px 6px}.cl-scope-scale b{color:#22384a}
.cl-scope-screen{background:#0d1923!important;border:1px solid #1d3444!important;border-radius:14px;overflow:hidden;min-height:230px;box-shadow:inset 0 0 30px rgba(0,0,0,.22)}.cl-scope-screen svg{display:block;width:100%;height:260px}.cl-scope-grid{stroke:#28404f!important}.cl-scope-zero{stroke:#42606f!important}.cl-scope-runbar{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}.cl-scope-runbar button{min-height:36px;border:1px solid #d5e0e8;background:#fff;color:#33485a;border-radius:10px;padding:0 12px;font-size:9px;font-weight:800}.cl-scope-runbar button.active{background:#2f78b7;color:#fff;border-color:#2f78b7}
.cl-scope-control-panel{display:grid;gap:10px}.cl-scope-section{border:1px solid #dbe4eb;border-radius:14px;background:#fff;padding:11px}.cl-scope-section-title{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;margin-bottom:9px}.cl-scope-section-title strong{font-size:11px;color:#203347}.cl-scope-section-title span{font-size:8px;color:#82909d;max-width:60%;text-align:right;line-height:1.35}
.cl-scope-channels{display:grid;gap:8px}.cl-scope-channel{display:grid!important;grid-template-columns:88px minmax(90px,1fr) 110px;gap:7px!important;align-items:end;background:#f8fafc!important;border:1px solid #dce5ec!important;border-left:4px solid var(--channel)!important;border-radius:12px!important;padding:9px!important}.cl-channel-head{grid-column:1;display:flex;align-items:center;justify-content:space-between;align-self:center}.cl-ch-enable{display:flex!important;align-items:center;gap:5px;color:#203347!important}.cl-ch-enable input{width:15px!important;height:15px!important;min-height:0!important;padding:0!important}.cl-channel-dot{width:8px;height:8px;border-radius:50%;background:var(--channel)}.cl-channel-color{width:28px!important;height:28px!important;min-height:28px!important;padding:2px!important;border-radius:50%!important;overflow:hidden;background:#fff!important}.cl-channel-color::-webkit-color-swatch-wrapper{padding:1px}.cl-channel-color::-webkit-color-swatch{border:0;border-radius:50%}
.cl-scope-field{position:relative;display:block!important}.cl-scope-field>span{display:block;font-size:8px;color:#718190;margin-bottom:4px}.cl-scope-field small{position:absolute;right:7px;bottom:10px;color:#80909f}.cl-channel-name{grid-column:2}.cl-scope-probe{grid-column:3;min-height:38px;border:1px solid #b9d2e7;background:#edf6ff;color:#276da8;border-radius:10px;display:flex;align-items:center;justify-content:center;gap:6px;font-size:9px;font-weight:800}.cl-scope-probe svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cl-scope-channel>.cl-scope-field:nth-of-type(2){grid-column:1}.cl-scope-channel>.cl-scope-field:nth-of-type(3){grid-column:2}.cl-scope-channel>.cl-scope-field:nth-of-type(4){grid-column:3}.cl-scope-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.cl-scope-controls label{display:block!important}.cl-scope-controls label>input,.cl-scope-controls label>select{margin-top:4px!important}.cl-scope-measures{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.cl-measure{background:#fff!important;border-color:#d9e4eb!important;color:#35495a!important;border-radius:9px!important}

/* Make form controls deterministic on Safari: no dark fallback boxes or question-mark placeholders. */
.cl-instrument-dock button,.cl-instrument-dock input,.cl-instrument-dock select{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#1b2a3b}
.cl-instrument-dock input:not([type="checkbox"]):not([type="color"]),.cl-instrument-dock select{background:#fff!important;color:#1b2a3b!important;-webkit-text-fill-color:#1b2a3b!important;opacity:1!important}

@media(max-width:1000px){
 .circuit-lab-app{height:calc(100dvh - 104px);min-height:520px;overflow:hidden}
 .cl-top{position:static!important;height:54px;padding:7px max(14px,env(safe-area-inset-right)) 7px max(14px,env(safe-area-inset-left));z-index:auto}.cl-title{position:relative;z-index:2}.cl-live{position:relative;z-index:2}
 .cl-workspace{height:calc(100% - 54px);padding-bottom:228px}
 .cl-canvas-wrap{inset:0 0 228px 0}
 .cl-tools{position:absolute!important;left:0;right:0;top:auto!important;bottom:0!important;height:68px;z-index:31;padding:8px max(10px,env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom,0px));background:rgba(255,255,255,.98);border-top:1px solid #dce5ec;box-shadow:0 -5px 22px rgba(30,50,70,.07)}
 .cl-tools button{width:48px;min-width:48px;height:48px!important;border-radius:15px}.cl-tools [data-action="library"]{width:52px;min-width:52px;height:52px!important}
 .cl-library{left:0;right:0;top:auto!important;bottom:68px;width:100%;height:160px;display:flex;flex-direction:column;padding:0!important;border:0;border-top:1px solid #dce5ec;box-shadow:0 -8px 26px rgba(31,51,69,.08);transform:none!important;z-index:22;overflow:hidden;background:rgba(255,255,255,.985)}
 .cl-library.open{height:min(315px,48dvh)}.cl-library .cl-panel-head{display:none}
 .cl-library-toolbar{position:static;padding:7px 9px 6px;display:grid;grid-template-columns:130px 1fr;gap:7px;align-items:center;border-bottom:1px solid #edf1f4;background:#fff;flex:0 0 auto}.cl-library-search{height:34px}.cl-library-folders{margin:0;flex-wrap:nowrap;overflow-x:auto;padding-bottom:1px;scrollbar-width:none;-webkit-overflow-scrolling:touch}.cl-library-folders button{height:31px;white-space:nowrap;font-size:9px;padding:0 10px}
 #clLibraryBody{display:flex;flex:1;min-height:0;overflow-x:auto;overflow-y:hidden;padding:5px 8px 7px;-webkit-overflow-scrolling:touch;scrollbar-width:none}.cl-cat{display:block;padding:0}.cl-cat h4{display:none}.cl-cat-items{display:flex;gap:5px;height:100%}.cl-library-item{min-width:86px;width:86px;height:100%;max-height:104px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:6px 4px;border:1px solid transparent;border-radius:12px;text-align:center}.cl-library-item:hover,.cl-library-item:active{background:#f2f7fb;border-color:#dce8f1}.cl-library-item>span:last-child{font-size:9px;line-height:1.15;min-height:21px;display:grid;place-items:center}.cl-symbol-chip{width:58px;height:47px;border:0;background:#fff}.cl-symbol-chip svg{width:54px;height:35px}
 .cl-instrument-library{display:none;flex:1;min-height:0;padding:7px 10px;gap:8px;overflow-x:auto}.cl-library[data-category="instruments"] .cl-instrument-library{display:flex}.cl-library[data-category="instruments"] #clLibraryBody{display:none}.cl-instrument-library>button{min-width:170px;width:170px;min-height:92px;display:grid;grid-template-columns:50px 1fr;gap:9px;text-align:left;border:1px solid #d5e3ed;background:#f8fbfe;padding:10px;border-radius:13px}.cl-instrument-card-icon{width:46px;height:46px}.cl-instrument-library>button span:last-child strong{font-size:11px}.cl-instrument-library>button span:last-child small{display:block;font-size:8px;line-height:1.3}
 .cl-instrument-dock{left:0;right:0;bottom:68px;max-height:min(74dvh,720px);min-height:330px;border-radius:18px 18px 0 0;z-index:29}.cl-inst-tabs{position:sticky;top:0;z-index:4;height:52px;padding:7px 10px;background:#fff}.cl-inst-tabs button{min-height:38px!important}.cl-inst-body{padding:10px}
 .cl-dmm-pro{grid-template-columns:1fr;gap:9px}.cl-meter-readout{min-height:145px;padding:14px}.cl-meter-readout #clDmmValue{font-size:30px}.cl-meter-controls{grid-template-columns:1fr}.cl-mode-card,.cl-probe-grid,.cl-current-target{grid-column:1}.cl-probe-grid{grid-template-columns:1fr 1fr}
 .cl-scope-pro{grid-template-columns:1fr;padding:10px;gap:9px}.cl-scope-display-panel{position:sticky;top:52px;z-index:3;padding:9px}.cl-scope-screen{min-height:184px}.cl-scope-screen svg{height:190px}.cl-scope-statusbar{margin-bottom:6px}.cl-scope-control-panel{gap:8px}.cl-scope-section{padding:9px}.cl-scope-section-title span{display:none}.cl-scope-channel{grid-template-columns:78px minmax(90px,1fr) 100px!important;gap:6px!important;padding:8px!important}.cl-scope-probe{min-height:36px}.cl-scope-controls{grid-template-columns:1fr 1fr}.cl-scope-measures{grid-template-columns:1fr 1fr}
 .cl-hud{bottom:8px}
}

@media(max-width:520px){
 .cl-workspace{padding-bottom:218px}.cl-canvas-wrap{bottom:218px}.cl-library{height:150px}.cl-library.open{height:min(300px,48dvh)}
 .cl-library-toolbar{grid-template-columns:105px 1fr;padding-inline:7px}.cl-library-search{padding:0 7px}.cl-library-search>span{display:none}.cl-library-item{min-width:80px;width:80px}.cl-symbol-chip{width:52px}.cl-symbol-chip svg{width:50px}
 .cl-probe-grid{grid-template-columns:1fr}.cl-meter-readout{min-height:132px}.cl-meter-controls{gap:8px}
 .cl-scope-channel{grid-template-columns:70px 1fr!important}.cl-channel-head{grid-column:1}.cl-channel-name{grid-column:2}.cl-scope-probe{grid-column:1/-1}.cl-scope-channel>.cl-scope-field:nth-of-type(2){grid-column:1}.cl-scope-channel>.cl-scope-field:nth-of-type(3){grid-column:2}.cl-scope-channel>.cl-scope-field:nth-of-type(4){grid-column:1/-1}.cl-scope-controls{grid-template-columns:1fr 1fr}.cl-scope-statusbar{align-items:flex-start}.cl-scope-scale{flex-direction:column;gap:3px}.cl-scope-runbar button{flex:1 1 calc(33% - 6px);padding:0 6px}
}
