.instrument-library h3{font-size:14px;color:#c9e6f7;margin:0 0 16px}.instrument-library .field{margin-bottom:12px}.instrument-library input,.instrument-library select{width:100%;padding:7px}.library-items{display:flex;flex-direction:column;gap:6px;max-height:570px;overflow:auto}.studio-shell .library-item{text-align:left;justify-content:flex-start;white-space:normal;padding:9px 8px;min-height:48px;font-size:13px;gap:8px}.library-item b{color:#62cbff;min-width:35px;font:600 12px monospace}.studio-shell .workbench{grid-template-columns:210px minmax(0,1fr) 280px}.ce-workspace{display:flex;flex-direction:column;gap:16px;font-size:14px;min-width:0}.ce-toolbar{display:flex;flex-wrap:wrap;gap:9px;align-items:center;border:1px solid #2e4a5f;border-radius:9px;padding:14px;background:#102a3b}.ce-toolbar time{font:600 21px ui-monospace,monospace;margin-right:10px}.ce-toolbar select{max-width:90px}.ce-note{font-size:14px;color:#a8c6da;line-height:1.6}.ce-table-wrap{overflow:auto;max-height:66vh;border:1px solid #31516a;border-radius:9px;background:#0d2130}.ce-matrix{border-collapse:separate;border-spacing:0;width:100%;font-size:13px}.ce-matrix th,.ce-matrix td{border-right:1px solid #294659;border-bottom:1px solid #294659;padding:10px;min-width:105px;vertical-align:middle;text-align:center}.ce-matrix thead th{position:sticky;top:0;background:#17364c;color:#e6f4ff;z-index:3}.ce-matrix .ce-cause-col{position:sticky;left:0;min-width:300px;max-width:390px;width:340px;text-align:left;background:#132d3f;z-index:2}.ce-matrix thead .ce-cause-col{z-index:4}.ce-matrix .ce-cause-col>span,.ce-matrix .ce-cause-col>small{display:block;font-weight:400;color:#acc9dd;font-size:13px;margin-top:7px;line-height:1.5;overflow-wrap:anywhere}.ce-matrix small{display:block;font-size:12px;color:#8fb2ca;margin-top:6px}.studio-shell .ce-row-edit{border:0;background:none;box-shadow:none;padding:0;white-space:normal;text-align:left;color:#e8f5ff}.studio-shell .ce-cell{border:1px solid transparent;background:none;min-width:75px;white-space:normal;font-size:13px}.studio-shell .ce-cell:hover{border-color:#4ea7d9;background:#245271}.ce-active>.ce-cause-col{box-shadow:inset 4px 0 #40e992}.ce-latched>.ce-cause-col,.ce-unknown>.ce-cause-col{box-shadow:inset 4px 0 #ff7088}.ce-active{background:#13382f}.ce-latched,.ce-unknown{background:#382836}.ce-effect-current{background:#14524488}.ce-sequences{padding:16px;background:#112b3e;border:1px solid #30516a;border-radius:9px;margin-bottom:16px}.ce-sequences>header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.ce-sequences h2{font-size:18px;margin:0}.ce-sequence-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(255px,1fr));gap:14px}.ce-sequence{border:1px solid #33556d;border-radius:8px;padding:14px;background:#102332}.ce-sequence h3{font-size:16px;margin:0}.ce-sequence ol{padding-left:24px}.ce-sequence li{padding:6px;line-height:1.6}.ce-sequence li.current{color:#62f1b0;background:#164536;border-radius:5px}.ce-sequence.running{border-color:#24b880}.ce-blockers{font-size:13px;color:#ecc18b;line-height:1.6}.ce-reason{font-size:13px;color:#ffb5c4}.ce-rule-scope{border:1px solid #315b77;border-radius:8px;background:#0b2334;padding:14px;margin:20px 0}.ce-rule-scope legend{font-weight:600;padding:0 7px}.ce-rule-scope p{color:#a4c2d8;font-size:13px;line-height:1.6}.ce-step-edit{display:grid;grid-template-columns:25px 1fr 1fr 35px 35px;gap:10px;align-items:center;border-bottom:1px solid #32516a;padding:8px 0}.ce-panels{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}.ce-panels>section,.ce-test-history{border:1px solid #2c4c63;border-radius:9px;background:#102738;padding:16px;min-width:0}.ce-panels h2,.ce-test-history h2{font-size:18px;margin-top:0}.ce-panels .general-inputs{padding:0}.ce-panels .general-input-grid{max-height:350px;overflow:auto}.ce-diagram{height:350px;min-height:350px;overflow:hidden}.ce-diagram svg{height:100%;width:100%}.ce-test-history details{border-top:1px solid #304c60;padding:12px 0}.ce-test-history p,.ce-test-history li{color:#adc7d9;line-height:1.6}.brand-mark.brand-pipes{width:280px;grid-template-columns:minmax(0,1fr) 70px}.brand-pipes .brand-wordmark{max-height:40px}.brand-pipes .brand-product{font-size:12px;margin-top:0}.sidebar-brand .brand-pipes{width:100%;grid-template-columns:minmax(0,1fr) 37px}.sidebar-brand .brand-pipes .brand-product{font-size:11px}.sidebar-collapsed .sidebar-brand .brand-pipes{grid-template-columns:1fr}.mixer-rotor{transform-origin:0 0}.state-on .mixer-rotor{animation:studio-rotate 2s linear infinite}.studio-board.paused .mixer-rotor{animation-play-state:paused}.hx-coil{fill:none;stroke:#a8c2d5;stroke-width:2}.state-on .hx-coil{stroke:#42ef9c}.general-dialog fieldset[hidden]{display:none}.general-dialog fieldset:not(.ce-rule-scope){border:0;padding:0;margin:0;min-width:0}
@media(max-width:1100px){.ce-panels{grid-template-columns:1fr}.studio-shell .workbench{grid-template-columns:180px minmax(0,1fr) 250px}.brand-mark.brand-pipes{width:230px;grid-template-columns:minmax(0,1fr) 50px}}@media(max-width:800px){.studio-shell .workbench{grid-template-columns:1fr}.library-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:250px}.ce-matrix .ce-cause-col{min-width:230px}.ce-step-edit{grid-template-columns:20px 1fr 1fr 30px 30px;gap:5px}.ce-toolbar{padding:10px}.ce-sequence-grid{grid-template-columns:1fr}}

/* 1.6.1: state reasons and a compact, scrollable engineering matrix. */
.ce-sequence.held,.ce-sequence.waiting{border-color:#e5b45d;background:#342d20}
.ce-sequence.tripped{border-color:#ff6b86}
.ce-reason,.ce-blockers{font-size:14px;overflow-wrap:anywhere}
.ce-matrix{font-size:14px}.ce-matrix th,.ce-matrix td{padding:7px;min-width:96px}
.ce-matrix .ce-cause-col{min-width:265px;width:300px;max-width:340px}
.ce-matrix .ce-cause-col>span{max-height:3em;overflow:auto;margin-top:4px}
.ce-matrix .ce-cause-col>small{font-size:12px;line-height:1.3;margin-top:4px}
.ce-matrix .ce-cause-col>button{font-size:14px}.ce-matrix .ce-cell{font-size:14px}
.event-cause{display:block;color:#a9cfe5;font-size:12px;line-height:1.45;overflow-wrap:anywhere}
.general-run-controls .config-note p{display:flex;flex-wrap:wrap;align-items:center;gap:8px;overflow-wrap:anywhere}
