/* Industrial panel layout: 1080p / Windows 11 / capacitive touch. */
.confirmation-overlay{position:fixed;inset:0;z-index:100;display:grid;place-items:center;padding:16px;background:#0d244e70;overscroll-behavior:contain}.confirmation-overlay[hidden]{display:none}.confirmation-panel{padding:0;background:white;border:1px solid #cedbeb;border-radius:10px;width:500px;max-width:100%;max-height:calc(100dvh - 32px);overflow:auto;box-shadow:0 25px 90px #0825482c;color:var(--ink)}
.demo-progress{flex-shrink:0;padding:10px 14px;margin-top:8px;border:1px solid #b9ceee;border-radius:5px;background:#edf3ff;color:#1e57b2;font-size:14px;line-height:1.5}.demo-progress[hidden]{display:none}
:root{--navy:#102a50;--blue:#1d5cce;--ink:#17375e;--muted:#647991;--line:#dce5f0;--bg:#f2f5fa;--green:#119773;--red:#c54054;--top:80px;--bottom:64px;--rail:104px}
*{box-sizing:border-box}html,body{margin:0;height:100%;background:var(--bg);color:var(--ink);font:16px "Microsoft YaHei","PingFang SC",-apple-system,BlinkMacSystemFont,sans-serif}body{display:grid;grid-template-rows:var(--top) minmax(0,1fr) var(--bottom);height:100vh;height:100dvh;overflow:hidden}button,input{font:inherit}button{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;user-select:none}button:disabled{cursor:not-allowed;opacity:.44}button:focus-visible,input:focus-visible{outline:3px solid #75aafa;outline-offset:2px}button:active:not(:disabled){filter:brightness(.94)}button,input{border-radius:5px}button{transition:background .12s}button:hover:not(:disabled){filter:brightness(.97)}svg{pointer-events:none}
.top{display:flex;align-items:center;padding:0 28px;gap:24px;background:white;border-bottom:1px solid var(--line);min-width:0}.brand{width:154px;flex-shrink:0;color:#1e549e;font-size:25px;font-weight:850;font-style:italic;letter-spacing:-1.5px;line-height:1}.brand b{color:#28a2da}.brand small{display:block;font-size:9px;letter-spacing:5px;text-align:right;margin:6px 7px 0 0;font-style:normal}.title{border-left:1px solid #d5dfec;padding-left:24px}.title h1{font-size:25px;letter-spacing:1px;color:#152c48;margin:0 0 5px}.title p{font-size:10px;letter-spacing:2px;color:#71849d;margin:0}.top-right{margin-left:auto;display:flex;gap:24px;align-items:center}.sim{font-size:14px;padding:9px 12px;border:1px solid #bcded2;border-radius:5px;background:#eff9f4;color:#237957;white-space:nowrap}.sim:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--green);margin-right:7px}.user{display:flex;gap:10px;align-items:center;font-size:12px;color:#56708e}.user svg{width:24px;height:24px}.user strong{color:#1f3d5d;display:block;font-size:15px;margin-top:3px}.equipment{border-left:1px solid var(--line);padding-left:24px;font-size:13px;color:#556d87;display:grid;gap:7px;min-width:150px}.equipment span{display:flex;align-items:center;gap:8px}.dot{display:inline-block;flex-shrink:0;width:10px;height:10px;border-radius:50%;background:#b7c3d2}.dot.active{background:var(--green);box-shadow:0 0 0 3px #def3e9}
.layout{display:flex;min-height:0;min-width:0}.sidebar{width:var(--rail);flex-shrink:0;background:var(--navy);padding:26px 10px 16px;color:white;display:flex;flex-direction:column;gap:26px;border-radius:0 14px 0 0;overflow:auto}.side-label{color:#99badb;letter-spacing:1px;font-size:12px;margin:0 0 10px 5px}.side-group{display:grid;gap:12px}.side-button{border:1px solid #385271;background:#193759;color:#e1eaf5;padding:10px 4px;display:flex;align-items:center;gap:7px;justify-content:center;font-size:14px;min-height:54px;width:100%}.side-button svg{width:18px;height:18px}.side-button.primary{background:#2164d9;border-color:#4385f2;color:white}.side-button.stop{color:#ffb7bd}.side-button.pause{color:#ffdb9f}.side-bottom{margin-top:auto;padding:14px 3px 0;border-top:1px solid #3a5271;display:flex;gap:7px;align-items:center;font-size:11px;color:#a5bed9}
main{flex:1;min-width:0;min-height:0;padding:20px 26px 12px;display:flex;flex-direction:column}.page-head{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;margin:0 0 18px;gap:16px;min-height:50px}.eyebrow{margin:0 0 5px;font-size:10px;color:#7286a1;letter-spacing:2px}.page-head h2{margin:0;font-size:26px;color:#15365e;letter-spacing:.5px}.head-tools{display:flex;align-items:center;gap:12px}.time{color:#617992;font-variant-numeric:tabular-nums;font-size:14px;white-space:nowrap}.small-button{border:1px solid #c9d6e8;background:white;min-height:48px;min-width:88px;padding:10px 14px;color:#425f80;font-size:14px}.columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,.74fr);gap:20px;align-items:stretch;flex:1;min-height:0}.panel{background:white;border:1px solid #d8e2ee;border-radius:7px;overflow:hidden;min-height:0;min-width:0;display:flex;flex-direction:column}.panel-head{background:var(--blue);color:white;min-height:54px;flex-shrink:0;padding:14px 20px;display:flex;align-items:center;justify-content:space-between;gap:10px}.panel-head h3{margin:0;font-size:18px;font-weight:600}.panel-head small{font-size:10px;color:#dce9ff;letter-spacing:.3px}.table{padding:0 20px;flex:1;min-height:0;display:flex;flex-direction:column}.table-head,.gas-row{display:grid;grid-template-columns:minmax(90px,1fr) 86px 156px;align-items:center;gap:10px}.table-head{height:48px;flex-shrink:0;color:#5a718b;font-size:14px;border-bottom:1px solid var(--line)}.table-head>span:not(:first-child){text-align:center}.gas-rows{overflow:auto;flex:1;min-height:0;display:flex;flex-direction:column;scrollbar-gutter:stable;scrollbar-width:thin;overscroll-behavior:contain}.gas-row{min-height:76px;flex:1;border-bottom:1px solid var(--line)}.gas-row:last-child{border-bottom:0}.gas-name{font-size:17px;font-weight:600;white-space:nowrap}.gas-name small{display:block;color:#607791;font-weight:400;font-size:13px;margin-top:7px}.state{display:flex;justify-content:center;align-items:center;gap:7px;color:#65778e;font-size:14px;white-space:nowrap}.state .dot{height:11px;width:11px}.state.on{color:#087856}.state.on .dot{background:var(--green);box-shadow:0 0 0 4px #e0f5eb}.actions{display:flex;gap:12px;justify-content:center}.action{width:72px;min-width:0;min-height:52px;padding:10px 0;font-size:16px;font-weight:600}.start{color:#087958;border:1px solid #9ccfbe;background:#eaf7f0}.stop-action{color:#b9344a;border:1px solid #dfb1ba;background:#fff0f2}.panel-foot{margin:0 20px;padding:14px 0;flex-shrink:0;border-top:1px dashed var(--line);font-size:13px;color:#607791;display:flex;gap:8px;align-items:center}.right-col{display:flex;flex-direction:column;gap:18px;min-height:0;overflow:auto;scrollbar-width:thin;overscroll-behavior:contain}.right-col>.panel,.notice{flex-shrink:0}.right-inner{padding:0 20px 16px}.two-col{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:center}.two-head{height:44px;border-bottom:1px solid var(--line);font-size:14px;color:#5a718b}.two-head>span:last-child{text-align:right}.mode-row{min-height:56px;border-bottom:1px solid var(--line);font-size:16px}.mode-row:last-of-type{border-bottom:0}.mode-state{display:flex;align-items:center;gap:8px;justify-content:flex-end;color:#65778e;font-size:14px;white-space:nowrap}.mode-state.on{color:#087856}.mode-toggle{background:#edf2f8;border-radius:6px;padding:4px;display:flex;gap:6px;margin-top:12px}.mode-toggle button{flex:1;background:transparent;border:0;color:#58718c;font-size:15px;min-height:48px;padding:8px 0}.mode-toggle button.selected{background:white;color:#1753b3;box-shadow:0 1px 4px #0c2e5a12;font-weight:600}.field-row{grid-template-columns:minmax(76px,.9fr) minmax(0,1.1fr);min-height:76px;border-bottom:1px solid var(--line);font-size:16px}.input-wrap{display:flex;gap:6px;min-width:0}.field-row input{min-width:0;width:100%;min-height:48px;border:1px solid #bdcee4;border-radius:5px;background:#f6f9fd;text-align:right;color:#244d82;padding:10px 8px;font-size:18px;font-variant-numeric:tabular-nums}.field-row input::-webkit-inner-spin-button{appearance:none}.keypad-button{min-width:48px;min-height:48px;border:1px solid #bdcee4;background:#edf3fc;color:#245aa4;font-size:22px}.param-note{font-size:13px;color:#607791;line-height:1.7;margin:12px 0}.save{width:100%;border:1px solid #b9ccec;background:#eaf1fe;color:#1e51a2;min-height:50px;padding:10px;font-size:16px}.notice{border:1px solid #d2dfef;border-radius:7px;padding:15px 18px;background:#eaf1fa;color:#526d8d;font-size:13px;line-height:1.8}.notice b{color:#35587e;font-size:14px;font-weight:600;display:block;margin-bottom:5px}.page-status{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;min-height:32px;padding-top:8px;font-size:13px;color:#5b738f;gap:12px}.page-status>span{display:flex;align-items:center;gap:7px}.page-status>span:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:55%;display:block}.page-status .dot{width:7px;height:7px}
.bottom{display:flex;background:white;box-shadow:inset 0 1px #d2dfed;padding-left:var(--rail);min-width:0;overflow:auto;scrollbar-width:thin}.nav-button{position:relative;flex:1;border:0;border-right:1px solid #dfe7f1;background:white;color:#526b89;font-size:16px;min-height:var(--bottom);white-space:nowrap;padding:10px 8px;border-radius:0;min-width:0}.nav-button.current{color:#154fb2;font-weight:600;background:#eaf1ff}.nav-button.current:before{position:absolute;content:"";height:4px;top:0;left:20%;right:20%;background:#2765d5}.nav-button:disabled{opacity:.55;cursor:not-allowed}.nav-button small{font-size:10px;display:block;margin-top:3px;font-weight:400}
dialog{padding:0;border:1px solid #cedbeb;border-radius:10px;width:500px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 24px);overflow:auto;box-shadow:0 25px 90px #0825482c;color:var(--ink)}dialog::backdrop{background:#0d244e70}.dialog-head{padding:18px 24px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;font-size:19px;font-weight:600;gap:12px}.close{border:0;background:transparent;font-size:28px;color:#526b86;min-height:48px;min-width:48px;padding:4px}.dialog-body{padding:24px;font-size:18px;line-height:1.8}.dialog-body p{margin:0 0 12px}.dialog-body small{color:#607791;font-size:14px}.dialog-actions{display:flex;justify-content:flex-end;gap:16px;padding:0 24px 24px}.dialog-actions button{min-width:112px;min-height:54px;padding:10px 24px;font-size:17px}.cancel{background:white;color:#4d6580;border:1px solid #bfcfe2}.confirm{border:1px solid var(--blue);background:var(--blue);color:white}.toast{position:fixed;bottom:calc(var(--bottom) + 18px);left:50%;transform:translateX(-50%);background:#17375ef5;color:white;padding:15px 24px;border-radius:7px;box-shadow:0 6px 25px #12345626;font-size:16px;z-index:25;pointer-events:none;opacity:0;transition:opacity .15s;max-width:90vw}.toast.show{opacity:1}.log-panel{position:fixed;top:var(--top);right:0;bottom:var(--bottom);width:min(520px,95vw);background:white;z-index:10;box-shadow:-10px 0 45px #183a5d24;border-left:1px solid var(--line);padding:22px;display:flex;flex-direction:column}.log-panel[hidden]{display:none}.log-top{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-shrink:0}.log-top h3{margin:0;font-size:20px}.log-tools{display:flex;gap:10px;align-items:center}.log-note{font-size:13px;color:#607791;line-height:1.7;margin:10px 0 16px}#logItems{overflow:auto;min-height:0;overscroll-behavior:contain}.log-item{padding:16px 0;border-bottom:1px solid var(--line);font-size:15px;line-height:1.8}.log-item time{display:block;color:#607791;font-size:13px}.empty-log{color:#607791;padding:28px 0;font-size:15px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.keypad-content{padding:18px 24px}.keypad-display{width:100%;height:60px;border:1px solid #b9cbe1;background:#f6f9fd;text-align:right;font-size:28px;padding:10px 14px;color:var(--ink)}.keypad-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:16px}.keypad-grid button{min-height:58px;background:#f0f5fc;color:#17375e;border:1px solid #c8d7eb;font-size:23px}.keypad-grid .key-clear{font-size:16px;background:#fff2f3;color:#b9344a}.keypad-help{font-size:13px;color:#607791;margin:12px 0 0;min-height:20px}.keypad-help.error{color:#b9344a}.mode-banner{margin:0 0 10px;background:#fff4dd;color:#825a0d;border:1px solid #ead7a8;border-radius:5px;padding:10px 14px;font-size:14px;flex-shrink:0}.mode-banner[hidden]{display:none}.busy-label{font-size:13px;color:#546e8e;margin-right:auto;align-self:center}.startup-error{margin:20px;padding:20px;background:#fff0f1;color:#9a233b;border:1px solid #e0b8c0}
@media(min-width:1650px){:root{--top:88px;--bottom:68px;--rail:116px}.top{padding:0 30px}.title h1{font-size:28px}.sidebar{padding:30px 12px;gap:30px}.side-button{min-height:58px;font-size:15px}main{padding:24px 30px 14px}.page-head{margin-bottom:22px;min-height:58px}.page-head h2{font-size:28px}.columns{gap:24px}.panel-head{min-height:58px;padding:16px 24px}.panel-head h3{font-size:20px}.table,.right-inner{padding-left:24px;padding-right:24px}.table-head{height:52px}.table-head,.gas-row{grid-template-columns:minmax(100px,1fr) 100px 180px;gap:12px}.actions{gap:16px}.action{width:82px;min-height:56px;font-size:18px}.gas-name{font-size:19px}.gas-name small{font-size:14px}.state{font-size:16px}.gas-row{min-height:86px}.right-col{gap:20px}.right-inner{padding-bottom:20px}.mode-row{min-height:62px;font-size:18px}.mode-state{font-size:16px}.mode-toggle button{min-height:52px;font-size:16px}.field-row{min-height:82px;font-size:18px}.field-row input{min-height:52px;font-size:21px}.keypad-button{min-width:52px;min-height:52px}.save{min-height:54px;font-size:18px}.notice{font-size:14px}.nav-button{font-size:18px}.page-status{font-size:14px;min-height:36px}}
@media(max-width:1400px){:root{--top:72px;--bottom:58px;--rail:88px}.top{padding:0 18px;gap:18px}.brand{width:127px;font-size:22px}.title{padding-left:18px}.title h1{font-size:22px}.title p{font-size:9px}.top-right{gap:18px}.equipment{display:none}.sim{font-size:12px}.user{font-size:11px}.user strong{font-size:14px}.sidebar{padding:22px 7px;gap:23px}.side-button{font-size:13px;gap:5px;min-height:52px}.side-label{font-size:11px}.side-bottom{font-size:10px}main{padding:14px 16px 8px}.page-head{min-height:46px;margin-bottom:12px}.page-head h2{font-size:23px}.time{font-size:12px}.head-tools{gap:8px}.small-button{font-size:13px;min-width:76px;padding:8px 10px}.columns{gap:14px;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,.78fr)}.panel-head{padding:12px 14px;min-height:48px}.panel-head h3{font-size:16px}.panel-head small{display:none}.table{padding:0 12px}.table-head,.gas-row{grid-template-columns:minmax(76px,1fr) 60px 124px;gap:6px}.table-head{font-size:12px;height:40px}.gas-row{min-height:64px}.gas-name{font-size:15px}.gas-name small{font-size:12px}.state{font-size:12px;gap:5px}.state .dot{width:9px;height:9px}.actions{gap:12px}.action{width:56px;min-height:48px;font-size:15px}.right-inner{padding:0 14px 12px}.two-head{height:36px;font-size:12px}.mode-row{font-size:14px;min-height:46px}.mode-state{font-size:12px;gap:6px}.mode-toggle{margin-top:6px}.mode-toggle button{font-size:14px;min-height:46px}.field-row{font-size:14px;min-height:66px;grid-template-columns:minmax(68px,.9fr) minmax(0,1.1fr);gap:6px}.input-wrap{gap:4px}.field-row input{font-size:17px;padding:8px 5px;min-height:46px}.keypad-button{min-width:44px;min-height:46px;font-size:20px}.param-note{font-size:12px;margin:8px 0}.save{min-height:46px;font-size:14px}.right-col{gap:14px}.panel-foot{font-size:12px;padding:12px 0;margin:0 12px}.notice{display:none}.nav-button{font-size:14px;padding:8px 4px}.nav-button small{font-size:9px}.page-status{font-size:12px;min-height:28px}.page-status>span:last-child{display:none}.eyebrow{font-size:9px}.side-button svg{width:16px;height:16px}}
@media(min-width:1000px) and (max-width:1140px){:root{--rail:76px}.top{gap:14px;padding:0 14px}.brand{width:110px;font-size:20px}.title h1{font-size:20px}.user{display:none}.sidebar{padding:20px 5px}.side-button{gap:4px;font-size:12px}.side-label{font-size:10px}main{padding-left:12px;padding-right:12px}.columns{gap:10px;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(214px,.76fr)}.table{padding:0 10px}.table-head,.gas-row{grid-template-columns:minmax(70px,1fr) 48px 112px;gap:4px}.gas-name{font-size:14px}.gas-name small{font-size:11px}.state{font-size:11px;gap:4px}.state .dot{width:7px;height:7px}.actions{gap:8px}.action{width:52px;font-size:14px}.panel-head{padding:12px 10px}.panel-head h3{font-size:14px}.table-head{font-size:11px}.right-inner{padding:0 10px 12px}.mode-row{font-size:13px}.mode-state{font-size:11px}.field-row{font-size:13px;grid-template-columns:69px minmax(0,1fr)}.keypad-button{min-width:44px}.mode-toggle button{font-size:13px}.time{display:none}.nav-button{font-size:12px}.side-bottom{font-size:9px}}
@media(min-width:1000px) and (max-height:800px){.eyebrow{display:none}.page-head{min-height:48px;margin-bottom:10px}.sidebar{gap:20px;padding-top:18px}.notice{display:none}.mode-row{min-height:44px}.param-note{margin:8px 0}.right-col{gap:12px}.panel-foot{font-size:12px;padding:10px 0}.page-status{font-size:12px}.gas-row{min-height:62px}}
@media(max-width:999px){:root{--top:72px;--bottom:58px;--rail:0px}body{display:block;height:auto;overflow:auto}.top{height:var(--top);position:sticky;top:0;z-index:5;gap:12px;padding:0 14px}.brand{width:105px;font-size:19px}.brand small{font-size:7px}.title{padding-left:12px}.title h1{font-size:17px;letter-spacing:0}.title p,.user,.equipment{display:none}.top-right{gap:0}.sim{font-size:11px;padding:8px}.sidebar{display:none}main{padding:20px 16px 12px}.layout{min-height:calc(100dvh - 130px)}.page-head{align-items:flex-start;min-height:48px}.page-head h2{font-size:21px}.eyebrow{display:none}.time{display:none}.head-tools{gap:6px}.head-tools .small-button{min-width:0;padding:8px;font-size:12px}.columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;flex:none}.right-col{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;overflow:visible}.panel-head h3{font-size:16px}.table{padding:0 14px}.gas-rows{overflow:visible}.table-head,.gas-row{grid-template-columns:minmax(82px,1fr) 58px 124px;gap:6px}.gas-row{min-height:78px}.action{width:56px;min-height:50px}.gas-name{font-size:15px}.state{font-size:12px}.bottom{position:sticky;bottom:0;z-index:5;padding-left:0;overflow:auto}.nav-button{min-width:130px;flex-shrink:0;font-size:14px}.page-status>span:nth-child(2){max-width:65%}.notice{display:none}.log-panel{top:var(--top);bottom:var(--bottom)}.toast{font-size:14px}}
@media(max-width:700px){.top{padding:0 12px;gap:10px}.title h1{font-size:14px}.brand{width:94px;font-size:18px}.sim{font-size:10px;padding:7px}.sim:before{width:5px;height:5px;margin-right:4px}.title{padding-left:10px}.columns{grid-template-columns:minmax(0,1fr)}.right-col{grid-column:auto;grid-template-columns:minmax(0,1fr)}.page-head{flex-wrap:wrap;gap:10px}.page-head h2{font-size:20px}.head-tools{margin-left:auto}.gas-name{font-size:16px}.table-head,.gas-row{grid-template-columns:minmax(84px,1fr) 66px 132px;gap:6px}.actions{gap:12px}.action{width:60px;min-height:50px;font-size:15px}.gas-row{min-height:76px}.state{font-size:13px}.page-status>span:nth-child(2){display:none}.field-row{grid-template-columns:1fr 1fr}.dialog-body{font-size:17px;padding:20px}.dialog-head{font-size:17px;padding:12px 18px}.dialog-actions{padding:0 20px 20px}.dialog-actions button{min-width:100px;padding:10px 18px}.keypad-content{padding:14px 20px}.keypad-grid{gap:8px}.keypad-grid button{min-height:52px}.keypad-display{height:54px}.keypad-help{margin-top:8px}}
@media(min-width:1000px){.notice{display:none}.side-button{white-space:nowrap}.side-bottom{white-space:nowrap;font-size:10px}.panel-foot{display:none}.columns{--row-min:76px}#reactions{display:grid;grid-template-rows:repeat(7,minmax(var(--row-min),1fr));align-content:start}}
@media(min-width:1650px){.columns{--row-min:86px}}
@media(min-width:1000px) and (max-height:900px){.gas-row{min-height:56px}.right-col>.panel:first-child .two-head{display:none}.mode-row{min-height:36px}.param-note{display:none}.save{margin-top:10px}.field-row{min-height:62px}}
.keypad-button{font-size:14px}#logButton svg{display:none}
@media(min-width:1000px) and (max-height:900px){.columns{--row-min:56px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* Command feedback and persistent operating states. */
.brand img{display:block;width:100%;height:auto;max-height:62px;object-fit:contain}
.gas-name{text-align:center;color:#16469a;font-weight:600}
.panel-head{border-radius:2px 2px 0 0}.gas-row{position:relative;transition:background .25s,border-color .25s}
.gas-row.is-enabled{background:linear-gradient(90deg,#eaf8f060,transparent 70%)}
.gas-row.is-starting{background:#eaf2ff}.gas-row.is-stopping{background:#fff3e5}
.gas-row.is-starting .state,.gas-row.is-stopping .state{color:#245db8}
.gas-row.is-stopping .state{color:#a56216}
.gas-row.is-starting .state .dot,.gas-row.is-stopping .state .dot{width:14px;height:14px;border:2px solid #9cbae9;border-top-color:#245db8;background:transparent;box-shadow:none;border-radius:50%;animation:commandSpin .8s linear infinite}
.gas-row.is-stopping .state .dot{border-color:#edd4b3;border-top-color:#a56216}
.gas-row.is-enabled:not(.is-stopping) .state.on .dot{box-shadow:0 0 0 4px #dcf5e8}
.gas-row.has-feedback{animation:feedbackFlash .9s ease-out}
.action.is-selected:disabled{opacity:1;background:#148961;border-color:#148961;color:white;box-shadow:inset 0 1px #ffffff20}
.action.is-pending:disabled{opacity:1;background:#edf4ff;border-color:#8fb3ec;color:#1b55ad;font-size:14px}
.stop-action.is-pending:disabled{background:#fff1df;border-color:#d9b57d;color:#965b14}
.side-button{position:relative;transition:background .2s,border-color .2s,box-shadow .2s}
.side-button.semi{color:#b9d9ff;background:#173e6d;border-color:#3b6697}
.side-button.is-active:disabled{opacity:1}.side-button[data-device="run"].is-active{background:#128965;border-color:#46bd92;color:white;box-shadow:0 0 0 2px #0d564c}
.side-button[data-device="semi"].is-active{background:#2164d9;border-color:#7facf5;color:white;box-shadow:0 0 0 2px #173e78}
.side-button[data-device="pause"].is-active{background:#805a22;border-color:#d4a451;color:#ffedc7}
.side-button[data-device="stop"].is-active{background:#7f3043;border-color:#cf7286;color:#ffe4e8}
.side-button.is-active::after{content:"";position:absolute;right:5px;top:5px;width:5px;height:5px;border-radius:50%;background:currentColor}
.side-button.is-pending:disabled{opacity:1;background:#254f80;border-color:#7aa8e1}
.side-button.is-pending .control-icon{width:13px;height:13px;overflow:hidden;font-size:0;border:2px solid #7299c7;border-top-color:white;border-radius:50%;animation:commandSpin .8s linear infinite}
.dot.paused{background:#e0a33a;box-shadow:0 0 0 3px #fff1d4}.equipment{font-size:12px;gap:5px}
.runtime-indicator{display:flex;align-items:center;gap:9px;border:1px solid #cdd9e8;background:#edf2f8;color:#526e90;border-radius:5px;min-height:32px;padding:5px 10px;white-space:nowrap;flex-shrink:0}
.runtime-icon{display:flex;width:14px;height:14px;align-items:center;justify-content:center;font-style:normal;font-size:12px}
.runtime-icon::before{content:"■"}.runtime-indicator time{font:600 14px ui-monospace,"SFMono-Regular",Consolas,monospace;letter-spacing:.4px;margin-left:3px}
.runtime-indicator[data-state="run"]{background:#e6f6ed;border-color:#9ed5bc;color:#087a54}
.runtime-indicator[data-state="semi"]{background:#eaf1ff;border-color:#a6bfee;color:#2259b3}
.runtime-indicator[data-state="run"] .runtime-icon::before,.runtime-indicator[data-state="semi"] .runtime-icon::before{content:"▶"}
.runtime-indicator[data-state="run"] .runtime-icon,.runtime-indicator[data-state="semi"] .runtime-icon{animation:runningGlow 2s ease-in-out infinite}
.runtime-indicator[data-state="pause"]{background:#fff2d8;border-color:#e2c790;color:#915d0c}
.runtime-indicator[data-state="pause"] .runtime-icon::before{content:"Ⅱ";font-weight:800}
.runtime-indicator[data-state="pending"]{background:#eaf1ff;border-color:#a6bfee;color:#2259b3}
.runtime-indicator[data-state="pending"] .runtime-icon{border:2px solid #a6bfee;border-top-color:#2259b3;border-radius:50%;animation:commandSpin .8s linear infinite}
.runtime-indicator[data-state="pending"] .runtime-icon::before{content:""}
.page-status{display:grid;grid-template-columns:auto auto minmax(0,1fr) auto;min-height:44px;column-gap:20px;align-items:center}
.page-status>.channel-summary{display:flex;max-width:none;white-space:nowrap}.page-status>#lastAction{display:block;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.page-status>span.channel-summary{display:flex;max-width:none;overflow:visible;text-overflow:clip;white-space:nowrap}
.page-status>.page-context{font-size:12px}
.demo-button{color:#1e57b2;background:#edf3ff;border-color:#b9ceee}.demo-button.is-active{background:#1e5bc5;color:white;border-color:#1e5bc5}
#confirmDialog .dialog-head{justify-content:flex-start;gap:14px;padding-top:15px;padding-bottom:15px}#confirmDialog .close{margin-left:auto}
.dialog-operation-icon{display:flex;justify-content:center;align-items:center;width:42px;height:42px;flex-shrink:0;border-radius:50%;background:#e6efff;color:#1d5cce;font-size:20px}
#confirmDialog[data-tone="stop"] .dialog-operation-icon{background:#ffe9ec;color:#bc354e}
#confirmDialog[data-tone="stop"] #confirmAction{background:#bc354e;border-color:#bc354e}
#confirmDialog[data-tone="pause"] .dialog-operation-icon{background:#fff0d5;color:#9a6819}
#confirmDialog[data-tone="pause"] #confirmAction{background:#9a6819;border-color:#9a6819}
#confirmDialog[data-phase="pending"] .dialog-operation-icon{font-size:0;border:3px solid #c8d9f5;border-top-color:#1d5cce;background:transparent;animation:commandSpin .8s linear infinite}
#confirmDialog[data-phase="success"] .dialog-operation-icon{color:#0e8a60;background:#dff5e9;border:0;animation:none;font-size:23px}
#confirmDialog[data-phase="success"] #confirmAction{opacity:1;color:white;background:#128961;border-color:#128961}
#confirmDialog[data-phase="success"] .busy-label{color:#128961}
#confirmDialog[data-phase="error"] .dialog-operation-icon{color:#bc354e;background:#ffe9ec}
#confirmDialog[data-phase="error"] .busy-label{color:#bc354e}
.toast{display:flex;align-items:center;gap:10px;border:1px solid #365678}.toast::before{content:"i";font-weight:700;display:flex;align-items:center;justify-content:center;width:20px;height:20px;border:1px solid currentColor;border-radius:50%;flex-shrink:0;font-size:12px}
.toast[data-tone="success"]{background:#116745f5;border-color:#54a785}.toast[data-tone="success"]::before{content:"✓"}
.toast[data-tone="warning"]{background:#825b18f5;border-color:#c49a4f}.toast[data-tone="warning"]::before,.toast[data-tone="error"]::before{content:"!"}
.toast[data-tone="error"]{background:#983346f5;border-color:#c97383}
@keyframes commandSpin{to{transform:rotate(360deg)}}
@keyframes feedbackFlash{0%{box-shadow:inset 4px 0 #2fbd8a;background-color:#d8f3e6}100%{box-shadow:inset 0 0 transparent;background-color:transparent}}
@keyframes runningGlow{0%,100%{opacity:1}50%{opacity:.5}}
@media(max-width:1400px){.page-status{column-gap:12px;min-height:40px;grid-template-columns:auto auto minmax(0,1fr)}.page-status>.page-context{display:none}.runtime-indicator{font-size:12px;min-height:30px;padding:4px 8px;gap:6px}.runtime-indicator time{font-size:12px}.action.is-pending:disabled{font-size:12px}.equipment{display:none}}
@media(max-width:1140px){.head-tools{gap:6px}.head-tools .small-button{min-width:70px;padding:8px}.page-status{column-gap:9px}.page-status>#lastAction{font-size:11px}.runtime-indicator{gap:5px;padding:4px 6px}.runtime-indicator time{margin-left:0}}
@media(max-width:999px){.page-status{grid-template-columns:auto minmax(0,1fr)}.page-status>#lastAction{display:none}.head-tools{flex-wrap:wrap}.gas-name{font-size:14px}.dialog-operation-icon{width:36px;height:36px}.page-status>.channel-summary{justify-content:flex-end}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
@media(min-width:1000px){.top .equipment{display:grid;min-width:160px;font-size:13px;gap:6px}.top-right{gap:22px}}
.field-row.is-applying{background:#edf4ff}.field-row.is-applying input{border-color:#5d91df;color:#2157a5}

/* Desktop operation at 1920×1080: consistent page space and fixed navigation. */
@media(min-width:1650px) and (min-height:950px){
 body:not([data-page="dashboard"]) main{padding:14px 26px 8px}
 body:not([data-page="dashboard"]) .page-head{min-height:44px;margin-bottom:12px}
 body:not([data-page="dashboard"]) .eyebrow{display:none}
 .bottom{min-height:var(--bottom)}
 .sidebar{padding-top:24px;gap:26px}
 dialog{max-height:calc(100dvh - 48px);overflow:auto}
}

/* 2026-11-12 reference chrome: manual/automatic are modes, not run commands. */
.reference-operations{display:block}
.legacy-operations{display:none}
body:is([data-page="dashboard"],[data-page="servo"]) .reference-operations{display:block}
body:is([data-page="dashboard"],[data-page="servo"]) .legacy-operations{display:none}
body:is([data-page="dashboard"],[data-page="servo"]) .sidebar{gap:38px;padding:32px 7px 12px}
body:is([data-page="dashboard"],[data-page="servo"]) .side-label{color:#28a3d2}
body:is([data-page="dashboard"],[data-page="servo"]) .side-button{background:linear-gradient(#fff,#e4e4e4);color:#193a95;border-color:#c6c6c6;border-radius:2px;min-height:48px}
body:is([data-page="dashboard"],[data-page="servo"]) .side-group{gap:18px}
body:is([data-page="dashboard"],[data-page="servo"]) .side-button.selected{background:#0878f0;color:#092f94;border-color:#0092ff}
body:is([data-page="dashboard"],[data-page="servo"]) [data-reference][data-device="run"]{background:#ffe0e0}
body:is([data-page="dashboard"],[data-page="servo"]) [data-reference][data-device="stop"]{background:#fff0d6}
body:is([data-page="dashboard"],[data-page="servo"]) .page-status{display:none}
body:is([data-page="dashboard"],[data-page="servo"]) .top{border:0;background:white}
body:is([data-page="dashboard"],[data-page="servo"]) .title p{display:none}
body:is([data-page="dashboard"],[data-page="servo"]) main{background:white;padding:0 14px}
body:is([data-page="dashboard"],[data-page="servo"]) .head-tools :is(#demo,#reset){display:none}
body:is([data-page="dashboard"],[data-page="servo"]) .nav-button{font-size:16px}
body:is([data-page="dashboard"],[data-page="servo"]) .sidebar section:first-child .side-group{gap:18px}
#account{margin-bottom:0}
@media(min-width:1401px){body:is([data-page="dashboard"],[data-page="servo"]) #clock{position:fixed;top:2px;left:6px;color:#222;font-size:14px;z-index:6}body:is([data-page="dashboard"],[data-page="servo"]) .brand{padding-top:12px}}
