:root{--ink:#182629;--muted:#708084;--line:#dce3e3;--paper:#fff;--soft:#f4f7f7;--accent:#087f79;--red:#cf4440;--amber:#ce931c;--green:#23986b;--font:"Microsoft YaHei UI","Microsoft YaHei",Arial,sans-serif}
*{box-sizing:border-box}html,body{height:100%;margin:0;overflow:hidden}body{font-family:var(--font);color:var(--ink);font-size:12px;background:#eef2f2;letter-spacing:0}button,input,select,textarea{font:inherit;letter-spacing:0}button{cursor:pointer;color:inherit;border:0;background:none}button:disabled{cursor:default;opacity:.45}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #079a91;outline-offset:2px}button:hover{background:#e9efef}button svg{width:16px;height:16px;flex-shrink:0;stroke-width:1.8}h1,h2,h3,p{margin:0}h2{font-size:13px;font-weight:600}h3{font-size:12px;font-weight:600}small{font-size:10px}input,select,textarea{width:100%;min-width:0;border:1px solid #cdd8d8;border-radius:4px;padding:9px 10px;color:var(--ink);background:#fff}input[type=range]{padding:0;accent-color:var(--accent);border:0}input[type=checkbox]{width:auto;accent-color:var(--accent)}textarea{resize:vertical;min-height:74px}label{display:block;color:#506166;font-size:11px;margin-bottom:6px}a{color:var(--accent)}[hidden]{display:none!important}
.app-header{height:62px;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--line);padding:0 22px;gap:24px}.brand{display:flex;align-items:center;gap:11px;min-width:205px}.brand-symbol{width:35px;height:35px;border-radius:7px;background:var(--accent);color:#fff;display:grid;place-items:center}.brand-symbol svg{width:23px;height:23px}.brand h1{font-size:19px;font-weight:700;line-height:24px}.brand span:not(.brand-symbol){font-size:10px;color:var(--muted)}.main-nav{height:100%;display:flex;gap:5px;align-items:stretch}.nav-tab{display:flex;align-items:center;gap:7px;padding:0 16px;font-size:12px;border-bottom:3px solid transparent;white-space:nowrap}.nav-tab.active{color:var(--accent);border-bottom-color:var(--accent);background:#f0f8f7}.nav-tab svg{width:16px;height:16px}.header-right{display:flex;align-items:center;gap:18px;color:var(--muted);white-space:nowrap}.mock-label{font-size:10px;color:var(--accent);display:flex;align-items:center;gap:6px}.status-dot{width:6px;height:6px;border-radius:50%;background:var(--green)}#clock{font-variant-numeric:tabular-nums;font-size:12px;color:#394f54}.icon-button{width:30px;height:30px;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;border-radius:4px}.icon-button[aria-pressed=true]{background:#d9eeeb;color:var(--accent)}
.kpi-strip{height:94px;background:#fff;border-bottom:1px solid var(--line);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:16px 24px;gap:24px}.kpi{padding-left:20px;border-left:1px solid var(--line);position:relative;min-width:0}.kpi:first-child{border-left:0;padding-left:0}.kpi-label{font-size:11px;color:#718186;display:flex;gap:6px;align-items:center;margin-bottom:6px}.kpi-label svg{width:13px;height:13px}.kpi strong{font-family:Arial,var(--font);font-size:29px;font-weight:500;font-variant-numeric:tabular-nums;line-height:32px}.kpi-unit{font-size:11px;color:#718186;margin-left:5px}.kpi small{position:absolute;bottom:4px;right:10px;color:#8b9699;font-size:10px}.kpi.alerting strong{color:var(--red)}
.workspace{height:calc(100% - 186px);display:grid;grid-template-columns:216px minmax(280px,1fr) 318px;overflow:hidden}.asset-panel{background:#fbfcfc;border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0}.panel-heading{height:47px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;flex-shrink:0}.subtle{color:#8b999d;font-size:10px}.asset-panel #asset-list{overflow:auto;flex:1;padding-top:5px}.line-group{margin-bottom:14px}.line-button{display:flex;width:100%;gap:8px;align-items:center;padding:9px 15px;font-weight:600;text-align:left}.line-button .line-code{font-size:10px;color:var(--accent);background:#e4f2ef;padding:3px 5px;border-radius:3px;font-family:Arial}.line-button .line-summary{margin-left:auto;font-size:10px;color:var(--muted);font-weight:400}.device-button{display:flex;align-items:center;gap:8px;width:100%;height:38px;padding:0 14px 0 27px;text-align:left;font-size:11px;border-left:3px solid transparent}.device-button .device-code{color:#95a1a3;font-family:Arial;font-size:10px;width:23px}.device-button .device-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.device-button.selected{background:#e5f1ef;border-left-color:var(--accent);color:var(--accent)}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;flex-shrink:0}.dot.running{background:var(--green)}.dot.idle{background:var(--amber)}.dot.fault{background:var(--red);box-shadow:0 0 0 3px #cf444017}.asset-bottom{margin-top:auto;border-top:1px solid var(--line);padding:0 15px 16px}.small-heading{padding:0;height:42px}.status-legend{display:flex;justify-content:space-between;font-size:10px;color:#78888c;margin:2px 0 18px}.status-legend span{display:flex;gap:6px;align-items:center}.mini-definition{display:grid;grid-template-columns:1fr auto;gap:8px;font-size:10px;color:#849296}.mini-definition b{font-weight:400;color:#4c6267;font-family:Arial,var(--font)}
.scene-column{min-height:0;min-width:0;display:flex;flex-direction:column;position:relative;overflow:hidden;background:#e7eded}.scene-toolbar{height:46px;display:flex;align-items:center;justify-content:space-between;background:#f8fafa;padding:0 14px;border-bottom:1px solid #dde5e5;flex-shrink:0;gap:6px}.scene-title{display:flex;align-items:center;gap:8px;white-space:nowrap;font-size:11px}.scene-title strong{font-weight:500}.scene-title>span:last-child{font-size:10px;color:#95a1a3;margin-left:3px}.live-indicator{width:5px;height:5px;border-radius:50%;background:#159d81}.scene-actions{display:flex;align-items:center;gap:7px}.segmented{display:flex;background:#e8eeee;border-radius:4px;padding:2px;gap:1px}.segmented button{width:29px;height:25px;display:grid;place-items:center;border-radius:3px;color:#71878b}.segmented button.selected{background:#fff;color:var(--accent);box-shadow:0 1px 3px #23383c13}.scene-host{position:relative;flex:1;min-height:170px;overflow:hidden}.scene-host canvas{display:block;width:100%;height:100%}.loading-state{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:10px;z-index:2;background:#e7eded;color:#71858a}.spinner{border:2px solid #b4c9c8;border-top-color:var(--accent);width:16px;height:16px;border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.scene-footer{height:28px;background:#f4f8f8;border-top:1px solid #dfe8e7;display:flex;gap:20px;align-items:center;padding:0 14px;font-size:9px;color:#8a999c;flex-shrink:0}.scene-footer>span:first-child{display:flex;align-items:center;gap:6px}.scene-footer .scale-mark{margin-left:auto;border-bottom:1px solid #849b9d;width:40px;text-align:center;line-height:12px;color:#687d81}.trend-section{height:202px;flex-shrink:0;background:#fff;border-top:1px solid var(--line);padding:0 17px 9px;display:flex;flex-direction:column}.trend-heading{height:41px;display:flex;justify-content:space-between;align-items:center;gap:8px;flex-shrink:0}.trend-heading h2{font-size:11px}.trend-heading>div{display:flex;align-items:center;gap:8px}.history-label{font-size:9px;color:#99a5a8}.chart-area{position:relative;flex:1;min-height:60px}.chart-area canvas{width:100%;height:100%;display:block}.chart-legend{display:flex;gap:18px;justify-content:center;align-items:center;height:22px;color:#7c8f93;font-size:9px}.chart-legend span{display:flex;gap:5px;align-items:center}.chart-legend b{width:12px;height:2px;display:inline-block}
.detail-panel{background:#fff;border-left:1px solid var(--line);display:flex;flex-direction:column;min-width:0;min-height:0}.detail-title{border-bottom:1px solid var(--line)}.detail-content{padding:18px 18px 12px;overflow:auto;flex:1;scrollbar-width:thin}.eyebrow{font-size:10px;color:var(--muted);margin-bottom:5px;display:flex;gap:7px;align-items:center}.detail-device-name{font-size:18px;line-height:1.5;font-weight:600;margin-bottom:16px}.detail-section{padding:17px 0;border-top:1px solid #e8eded}.detail-section:first-child{padding-top:0;border-top:0}.detail-section h3{margin-bottom:12px}.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.section-head h3{margin:0}.text-button{font-size:10px;color:var(--accent);padding:4px 0;display:inline-flex;align-items:center;gap:4px}.text-button svg{width:12px;height:12px}.property-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px 16px}.property{min-width:0}.property>span{display:block;color:#849297;font-size:10px;margin-bottom:5px}.property b{font-family:Arial,var(--font);font-size:20px;font-weight:400;line-height:1.2}.property small{font-size:10px;color:#92a0a3;margin-left:4px}.property .danger-value{color:var(--red)}.definition{display:grid;grid-template-columns:minmax(70px,1fr) auto;gap:10px 9px;font-size:11px}.definition>span:nth-child(odd){color:#859497}.definition>span:nth-child(even){color:#3a5359;text-align:right;word-break:break-word}.line-overview{padding:12px 0;border-bottom:1px solid #e9eeee}.line-overview:first-child{padding-top:0}.line-overview:last-child{border-bottom:0}.line-overview>div:first-child{display:flex;align-items:center;gap:7px;font-size:11px;margin-bottom:9px}.line-overview .line-name{flex:1}.status-tag{font-size:9px;padding:3px 6px;border-radius:3px;background:#eaf4ef;color:#219368;font-weight:400}.status-tag.idle{color:#b68218;background:#faf3df}.status-tag.fault{color:var(--red);background:#fbecea}.progress-row{display:flex;justify-content:space-between;font-size:10px;color:#8a999d;margin:8px 0 5px}.progress-track{height:4px;background:#edf1f1;border-radius:2px;overflow:hidden}.progress-track>span{display:block;height:100%;background:#1a9d8c;transition:width .5s}.large-progress{height:7px;margin:12px 0}.accent-number{color:var(--accent)}.muted-copy{font-size:11px;color:#86969a;line-height:1.9}.muted-copy strong{color:#496168;font-weight:500}.data-source{display:flex;align-items:center;gap:7px;font-size:10px;color:#819296;margin-top:13px}.data-source .dot{width:5px;height:5px}.action-row{display:flex;gap:8px;flex-wrap:wrap}.action{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:33px;border:1px solid #d7e1e0;border-radius:4px;padding:7px 10px;font-size:11px;white-space:normal;text-align:center}.action svg{width:14px;height:14px}.action.primary{color:#fff;background:var(--accent);border-color:var(--accent)}.action.primary:hover{background:#076c67}.action.danger{color:var(--red);border-color:#edcfcb}.action.wide{width:100%}.fault-buttons{display:grid;grid-template-columns:1fr 1fr;gap:7px}.field{margin-bottom:13px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.form-stack{margin-top:8px}.inline-select{font-size:10px;padding:5px 7px;max-width:106px}.sensor-history{padding-top:12px}.history-readout{font-size:10px;color:#85999c;margin:7px 0 11px;display:flex;justify-content:space-between}.history-values{display:grid;grid-template-columns:1fr 1fr;gap:9px;font-size:10px;color:#7a8e92}.history-values b{color:#4f6a6f;font-weight:500}.record-item{padding:10px 0;border-top:1px solid #e7eeee;font-size:10px}.record-item:first-child{border-top:0}.record-item>div{display:flex;justify-content:space-between;gap:6px;margin-bottom:5px}.record-item p{color:#7e9195;line-height:1.7;word-break:break-word}.record-item time{color:#9ba7aa;font-size:9px}.energy-row{margin-bottom:14px}.energy-row>div:first-child{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:7px;font-size:10px;color:#70878c}.energy-row b{font-family:Arial;font-size:15px;color:#38585e;font-weight:400}.energy-row b small{font-family:var(--font);font-size:9px;color:#8b9c9e}.energy-track{height:5px;background:#edf1f1}.energy-track span{height:100%;display:block}.energy-device{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:10px 0;border-bottom:1px solid #edf1f1;font-size:10px}.energy-device button{text-align:left;display:flex;gap:7px;padding:0;align-items:center}.energy-device b{font-family:Arial;color:#557177;font-weight:400}.energy-device.anomaly b{color:var(--red)}.simulation-result{margin-top:18px;border-top:1px solid #e0e8e7;padding-top:15px}.result-numbers{display:grid;grid-template-columns:1fr 1fr;gap:17px 12px;margin:13px 0}.result-numbers span{display:block;font-size:10px;color:#809398;margin-bottom:4px}.result-numbers b{font:24px Arial;color:#274e56}.result-numbers small{font-size:9px;color:#8b9c9f;margin-left:4px}.result-numbers .loss b{color:#c85648}.assumptions{font-size:10px;color:#8c9b9f;line-height:1.9;padding-top:11px}.assumptions p{margin-bottom:5px}.warning-copy{font-size:10px;color:#b77d19;line-height:1.8;margin-top:10px}.order-chip{font-size:10px;display:inline-flex;align-items:center;gap:6px;color:#537b80;background:#f2f7f7;padding:6px 8px;border-radius:3px;margin-bottom:10px}.line-chart-select{display:flex;align-items:center;justify-content:space-between;gap:10px}
.status-bar{height:30px;background:#f8fafa;border-top:1px solid var(--line);padding:0 15px;display:flex;align-items:center;gap:24px;color:#95a2a6;font-size:9px}.status-bar>span:first-child{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.status-bar>button{display:flex;align-items:center;gap:6px;height:29px;font-size:10px;padding:0 10px;border-left:1px solid var(--line)}.status-bar svg{width:13px;height:13px}.status-bar b{background:#e7eeed;border-radius:3px;font-size:9px;font-weight:400;min-width:16px;padding:1px 4px;text-align:center}.alert-drawer{position:fixed;right:0;bottom:30px;top:156px;width:370px;background:#fff;z-index:12;box-shadow:-8px 0 30px #172b321c;border-left:1px solid #cddbd9;display:flex;flex-direction:column}.alert-drawer>.panel-heading{border-bottom:1px solid var(--line)}#alerts-list{overflow:auto;padding:0 17px 17px}.alert-item{border-bottom:1px solid #e5eceb;padding:15px 0}.alert-top{display:flex;align-items:center;gap:7px;margin-bottom:7px;font-size:11px}.alert-top strong{font-weight:500;flex:1}.alert-top time{color:#9babad;font-size:9px}.alert-message{color:#5d757b;font-size:11px;margin:7px 0;line-height:1.8}.alert-suggestion{font-size:10px;color:#8b9b9f;line-height:1.8;margin-bottom:10px}.alert-actions{display:flex;gap:7px}.alert-actions button{padding:5px 9px;font-size:10px;min-height:28px}.alert-state{color:#8a9e9f;font-size:9px}.empty-state{padding:25px 3px;color:#a0adaf;font-size:11px;line-height:1.8}.toast-region{position:fixed;right:23px;top:78px;z-index:40;width:320px;display:flex;flex-direction:column;gap:10px;pointer-events:none}.toast{background:#fff;border:1px solid #d5e4e0;border-radius:5px;padding:13px 15px;box-shadow:0 5px 25px #0a282b1c;display:flex;gap:10px;font-size:11px;line-height:1.7;pointer-events:auto;animation:toast-in .2s ease-out}.toast svg{width:18px;height:18px;flex-shrink:0;color:var(--accent);margin-top:2px}.toast.danger{border-color:#e9c4bf}.toast.danger svg{color:var(--red)}.toast strong{display:block;font-weight:600;margin-bottom:3px}.toast p{color:#7e9296;font-size:10px}.toast button{margin-left:auto;align-self:flex-start;padding:0;color:#8a9b9f;font-size:18px}@keyframes toast-in{from{transform:translateY(-8px);opacity:0}to{transform:none;opacity:1}}
dialog{width:430px;max-width:calc(100vw - 30px);border:1px solid #d7e2e0;border-radius:6px;padding:0;box-shadow:0 15px 60px #122b3230;color:var(--ink);max-height:calc(100vh - 60px)}dialog::backdrop{background:#12313645}.modal-top{display:flex;align-items:center;justify-content:space-between;padding:14px 19px;border-bottom:1px solid #e2eae9;margin:0}.modal-top h2{font-size:14px}.modal-top button{padding:0}#modal-body{padding:20px}.form-error{color:var(--red);font-size:11px;line-height:1.8;margin-bottom:10px}.split-values{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#7c9195;margin-bottom:9px}.split-values b{color:#38585f;font-family:Arial;font-weight:400}.order-device-list{display:flex;gap:5px;align-items:center;flex-wrap:wrap;margin-top:8px}.order-device-list span{color:#4c777c;padding:5px 8px;background:#eaf3f2;font-size:10px;border-radius:3px}.chart-empty{position:absolute;inset:0;display:grid;place-items:center;color:#8da1a4;font-size:11px}
@media(min-width:1700px){.workspace{grid-template-columns:236px minmax(280px,1fr) 348px}.detail-content{padding:22px}.trend-section{height:220px}}
@media(max-width:1240px){.app-header{gap:10px;padding:0 14px}.brand{min-width:166px}.brand h1{font-size:17px}.nav-tab{padding:0 10px;gap:5px;font-size:11px}.header-right{gap:10px}.workspace{grid-template-columns:181px minmax(250px,1fr) 288px}.kpi-strip{gap:14px;padding:16px}.kpi small{display:none}.kpi strong{font-size:27px}.detail-content{padding:16px}.asset-panel .panel-heading{padding:0 12px}.device-button{padding-left:18px;font-size:10px;gap:6px}.line-button{padding-left:12px;gap:6px;font-size:11px}.line-summary{display:none}.scene-title>span:last-child{display:none}.history-label{font-size:8px}.scene-actions{gap:3px}.trend-section{height:185px}}
@media(max-width:950px){.app-header{height:58px;padding:0 12px;gap:10px}.brand{min-width:142px;gap:8px}.brand-symbol{width:29px;height:29px}.brand-symbol svg{width:20px;height:20px}.brand h1{font-size:16px}.brand span:not(.brand-symbol){font-size:8px}.nav-tab{padding:0 8px;font-size:10px;gap:4px}.nav-tab svg{width:13px;height:13px}.header-right #clock{display:none}.header-right{gap:7px}.mock-label{font-size:8px}.kpi-strip{height:86px;padding:14px;gap:10px}.kpi{padding-left:12px}.kpi-label{font-size:9px}.kpi strong{font-size:25px}.workspace{height:calc(100% - 174px);grid-template-columns:160px minmax(200px,1fr) 260px}.device-button .device-code{display:none}.detail-content{padding:14px}.detail-device-name{font-size:16px}.property-grid{gap:14px 10px}.property b{font-size:18px}.scene-toolbar{padding:0 8px}.scene-title{font-size:10px;gap:5px}.scene-actions{gap:2px}.scene-actions .icon-button{width:25px}.segmented button{width:25px}.trend-heading h2{font-size:10px}.history-label{display:none}.trend-section{height:170px;padding:0 12px 8px}.scene-footer{gap:10px;padding:0 9px}.status-bar{font-size:8px}}
@media(max-width:720px){html,body{overflow:auto;height:auto;min-height:100%}.app-header{height:auto;min-height:60px;flex-wrap:wrap;padding:10px 12px 0;gap:6px}.brand{flex:1}.header-right{order:2}.main-nav{width:100%;order:3;height:42px;justify-content:space-between;gap:0}.nav-tab{flex:1;justify-content:center;padding:0 3px;gap:4px;font-size:10px}.nav-tab svg{width:13px;height:13px}.kpi-strip{height:87px;padding:13px 11px;gap:7px}.kpi{padding-left:7px}.kpi-label{font-size:8px;gap:3px}.kpi-label svg{display:none}.kpi strong{font-size:23px}.kpi-unit{font-size:8px;margin-left:2px}.workspace{height:auto;display:grid;grid-template-columns:1fr;overflow:visible}.asset-panel{display:none}.scene-column{height:570px;min-height:570px}.scene-toolbar{height:42px}.scene-host{min-height:280px}.scene-footer{height:25px}.trend-section{height:174px}.scene-title>span:last-child{display:inline}.detail-panel{border-left:0;border-top:1px solid var(--line);min-height:360px}.detail-content{padding:18px;overflow:visible}.property-grid{grid-template-columns:repeat(4,1fr);gap:12px}.detail-title{height:43px}.detail-section{padding:15px 0}.status-bar{position:static;height:30px;padding:0 10px;gap:10px}.status-bar #db-status{display:none}.status-bar>span:first-child{font-size:8px}.alert-drawer{top:0;bottom:0;width:min(370px,100vw)}.toast-region{right:12px;top:65px;width:min(320px,calc(100vw - 24px))}.line-overview{padding:12px 0}.fault-buttons{grid-template-columns:repeat(4,1fr)}.fault-buttons .action{font-size:10px;padding:6px}.fault-buttons .action svg{display:none}}
@media(max-width:380px){.nav-tab{font-size:9px;gap:3px}.nav-tab svg{display:none}.kpi strong{font-size:21px}.kpi-label{font-size:8px}.property-grid{grid-template-columns:1fr 1fr}.scene-title>span:last-child{display:none}.scene-column{height:540px}.fault-buttons{grid-template-columns:1fr 1fr}}
.scene-toolbar{height:auto;min-height:46px;padding-top:7px;padding-bottom:7px;flex-wrap:wrap;row-gap:6px}.scene-actions{margin-left:auto;flex-wrap:wrap;justify-content:flex-end}.scene-quality{width:86px;max-width:86px;height:30px;padding:4px 5px;font-size:10px;background:#fff}.scene-expanded .workspace{grid-template-columns:minmax(280px,1fr) 318px}.scene-expanded .asset-panel,.scene-expanded .trend-section{display:none}.scene-expanded .scene-column{height:100%;min-height:0}.scene-expanded .scene-host{min-height:200px}
@media(min-width:1700px){.scene-expanded .workspace{grid-template-columns:minmax(280px,1fr) 348px}}
@media(max-width:1240px){.scene-expanded .workspace{grid-template-columns:minmax(250px,1fr) 288px}.scene-quality{width:78px;max-width:78px}.scene-actions{gap:4px}}
@media(max-width:950px){.scene-expanded .workspace{grid-template-columns:minmax(200px,1fr) 260px}.scene-toolbar{padding-left:8px;padding-right:8px}.scene-actions{gap:3px}.scene-quality{width:74px;max-width:74px;font-size:9px}}
@media(max-width:720px){.scene-expanded .workspace{grid-template-columns:1fr}.scene-expanded .scene-column{height:500px;min-height:500px}.scene-toolbar{min-height:76px}.scene-actions{width:100%;justify-content:space-between;margin:0}.scene-expanded .scene-host{min-height:280px}.scene-quality{width:78px;max-width:78px}.scene-title>span:last-child{display:inline}}
.inspection-hud{position:absolute;left:18px;bottom:18px;width:278px;max-width:calc(100% - 148px);background:rgba(255,255,255,.95);border:1px solid #cbd6d5;border-top:3px solid #158b83;border-radius:4px;box-shadow:0 4px 18px #172b3220;color:#213539;padding:12px;pointer-events:auto}.inspection-heading{display:flex;gap:8px;align-items:center;justify-content:space-between;font-size:11px;line-height:1.5}.inspection-heading>span:first-child{display:flex;align-items:center;gap:7px;font-weight:600}.inspection-heading .status-tag{white-space:nowrap}.inspection-readings{display:grid;grid-template-columns:1fr 1fr;gap:10px 16px;margin-top:12px}.inspection-readings>span{font-size:9px;color:#798b8e}.inspection-readings b{display:block;font:18px Arial,var(--font);color:#253e43;margin-top:3px}.inspection-readings small{font:9px var(--font);color:#7a8c8f}.inspection-open{width:100%;display:flex;align-items:center;gap:7px;justify-content:center;margin-top:12px;padding:8px 3px;border-top:1px solid #dce6e4;font-size:10px;color:#087f79}.inspection-open svg{width:14px;height:14px}.inspection-open svg:last-child{margin-left:auto}.inspection-location{display:flex;gap:7px;align-items:center;font-size:11px}.inspection-location svg{width:15px;height:15px;color:#158b83}.inspection-coordinates{margin-top:9px;display:flex;gap:20px;font:11px Arial;color:#71858a}.walk-controls{position:absolute;bottom:18px;right:18px;display:grid;grid-template-columns:repeat(3,34px);grid-template-rows:repeat(2,34px);gap:3px;touch-action:none;user-select:none}.walk-controls button{width:34px;height:34px;display:grid;place-items:center;background:rgba(255,255,255,.94);color:#28484d;border:1px solid #bacbcb;border-radius:4px;box-shadow:0 2px 5px #172b3212;touch-action:none}.walk-controls button.pressed{background:#168b83;color:#fff}.walk-controls svg{width:19px;height:19px}.walk-up{grid-column:2;grid-row:1}.walk-left{grid-column:1;grid-row:2}.walk-down{grid-column:2;grid-row:2}.walk-right{grid-column:3;grid-row:2}
@media(max-width:720px){.inspection-hud{left:10px;bottom:10px;padding:9px;max-width:calc(100% - 130px)}.inspection-heading{display:block;font-size:10px}.inspection-heading .status-tag{display:none}.inspection-readings{gap:7px;margin-top:9px}.inspection-readings b{font-size:16px}.walk-controls{right:10px;bottom:10px}.scene-toolbar .scene-actions{gap:2px}.scene-toolbar .scene-actions>.icon-button{width:25px}.scene-quality{width:74px;max-width:74px}.inspection-coordinates{gap:10px;font-size:10px}}
.detail-scroll{overflow:auto;flex:1;min-height:0;scrollbar-width:thin}.detail-scroll>.detail-content{overflow:visible;flex:none}.material-flow{padding:15px 18px 12px;border-bottom:1px solid var(--line);background:#f8fbfa}.material-flow .section-head{gap:7px;margin-bottom:8px}.material-flow .section-head h3{font-size:11px;white-space:nowrap}.material-flow .subtle{font-size:9px;text-align:right}.flow-table{border-collapse:collapse;width:100%;table-layout:fixed;font-size:10px;line-height:1.5}.flow-table th,.flow-table td{padding:4px 3px;text-align:right;white-space:nowrap;font-weight:400}.flow-table th:first-child{text-align:left;width:30px}.flow-table th:last-child{width:47px}.flow-table thead{color:#809296}.flow-table tbody th{color:#49726e;font-weight:600}.flow-table tbody td{font-variant-numeric:tabular-nums;color:#415d60}.flow-table .flow-blocked,.flow-waiting{color:#b17e20}.reading-provenance{border-top:1px solid #e8eeee;padding-top:11px;margin-top:12px;font-size:10px;line-height:1.7}.reading-provenance>div{display:grid;grid-template-columns:53px minmax(0,1fr);gap:7px;margin:4px 0}.reading-provenance span{color:#8a989b}.reading-provenance b,.reading-provenance time{text-align:right;font-weight:400;overflow-wrap:anywhere;color:#506b70}.reading-quality.good{color:#188760}.reading-quality.stale,.reading-quality.fallback,.reading-quality.pending{color:#aa791d}.reading-quality.disconnected{color:var(--red)}.machine-process{border-top:1px solid #e8eeee;padding-top:12px;margin-top:12px;font-size:10px}.machine-process .section-head{gap:8px;align-items:baseline}.machine-process h3{font-size:11px;white-space:nowrap}.machine-process .section-head>span{text-align:right;line-height:1.6}.machine-process .definition{font-size:10px}.source-warning{color:#aa791d}.source-warning .status-dot{background:var(--amber)}.header-right .mock-label{max-width:150px}.header-right #source-label{overflow:hidden;text-overflow:ellipsis}
dialog.protocol-modal{width:690px;max-width:calc(100vw - 24px);overflow:auto}.protocol-modal .modal-top{position:sticky;top:0;background:#fff;z-index:2}.protocol-modal #modal-body{padding:18px 20px}.protocol-status{padding-bottom:15px;border-bottom:1px solid var(--line);margin-bottom:17px;font-size:11px;line-height:1.7}.protocol-connection{display:flex;align-items:baseline;justify-content:space-between;gap:12px;color:#188760}.protocol-connection b{font-size:13px}.protocol-connection>span{color:#6b8184;font-size:10px}.protocol-connection.disconnected,.protocol-connection.error{color:var(--red)}.protocol-connection.pending,.protocol-connection.stale,.protocol-connection.degraded{color:#b17e20}.protocol-target{font-family:Arial,var(--font);margin-top:5px;overflow-wrap:anywhere;color:#3e5e63}.protocol-last-success{color:#89999c;font-size:10px}.protocol-connection-error{margin-top:7px;color:var(--red);font-size:10px;overflow-wrap:anywhere}.protocol-endpoints{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:12px}.protocol-endpoints>div{display:flex;flex-direction:column;min-width:0;font-size:10px;color:#698187}.protocol-endpoints code{margin-top:3px;color:#33595d;overflow-wrap:anywhere}.protocol-endpoints small{color:var(--red);overflow-wrap:anywhere;margin-top:4px}.protocol-modal .field label{line-height:1.6}.protocol-modal input:disabled,.protocol-modal select:disabled{background:#f3f6f6;color:#849496}.protocol-details{border-top:1px solid var(--line);padding:12px 0;font-size:11px}.protocol-details summary{cursor:pointer;line-height:1.8;color:#4e6a6e;font-weight:500}.protocol-details[open] summary{margin-bottom:13px}.protocol-actions{display:flex;align-items:center;gap:9px;margin:6px 0 16px}.protocol-actions>span{flex:1;color:#738b8e;font-size:10px}.protocol-actions .action{margin-left:auto;min-width:116px}.protocol-spec-row{display:flex;flex-direction:column;gap:5px;font-size:10px;line-height:1.7;margin:12px 0;color:#7b9094}.protocol-spec-row b{font-weight:500;color:#47696d}.protocol-spec-row code{color:#41686d;overflow-wrap:anywhere}.protocol-register-scroll{overflow:auto;margin:12px 0}.protocol-registers{border-collapse:collapse;width:100%;font-size:10px;line-height:1.7}.protocol-registers th,.protocol-registers td{text-align:left;padding:5px 7px;border-bottom:1px solid #e5eceb;white-space:nowrap}.protocol-registers th{color:#647d81;background:#f2f7f6;font-weight:500}.protocol-registers td{font-family:Arial,var(--font);color:#617f83}.protocol-spec-note{font-size:10px;line-height:1.8;color:#8b9a9d}.history-label{max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-readout{gap:10px;align-items:flex-start}.history-readout #history-source{text-align:right;max-width:58%;line-height:1.6}
@media(max-width:950px){.material-flow{padding:12px 14px 10px}.material-flow .subtle{font-size:8px}.header-right .mock-label{max-width:110px}}
@media(max-width:720px){.detail-scroll{overflow:visible;flex:none}.material-flow{padding:15px 18px}.material-flow .subtle{font-size:9px}.flow-table{max-width:360px}.protocol-modal #modal-body{padding:16px}.protocol-modal .field-row{grid-template-columns:1fr}.protocol-endpoints{grid-template-columns:1fr;gap:8px}.protocol-registers th,.protocol-registers td{padding:5px 4px}.protocol-registers{font-size:9px}.protocol-registers td:last-child{white-space:normal;min-width:90px}.protocol-connection{flex-wrap:wrap;gap:3px 12px}.protocol-modal .modal-top{padding:11px 15px}.protocol-modal{max-height:calc(100dvh - 24px)}.header-right .mock-label{max-width:115px}.reading-provenance>div{grid-template-columns:65px minmax(0,1fr)}}
.material-flow .section-head .subtle{margin-left:auto}.material-flow .batch-replay{width:25px;height:25px}.material-flow .batch-replay svg{width:13px;height:13px}

/* The workshop remains the main surface; data is arranged in two compact rails. */
:root{--ink:#e0e8e7;--muted:#9aabad;--line:#b8cdca26;--paper:#1d272a;--soft:#263135;--accent:#e7c65b;--red:#f47b74;--amber:#e7c65b;--green:#45c4a6;--left-rail:304px;--right-rail:326px}
html,body{height:100%;height:100dvh;overflow:hidden}
body.monitor-dashboard{background:#131c1e;color:var(--ink)}
button:hover{background:#ffffff0d}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline-color:#e7c65b}
input,select,textarea{background:#243034;color:#e3eae9;border-color:#a0b5b53b}
label{color:#b3c0c0}
.app-header{position:relative;z-index:12;height:76px;gap:20px;padding:0 22px;background:#151e20f5;border-bottom:1px solid #dfc3636b;box-shadow:0 3px 18px #0b111334}
.app-header::after{content:"";position:absolute;left:calc(50% - 100px);bottom:-2px;width:200px;height:3px;background:#e7c65b;pointer-events:none}
.brand{min-width:250px;gap:12px}
.brand-symbol{color:#e7c65b;background:#e7c65b14;border:1px solid #e7c65b69;border-radius:3px;width:39px;height:39px}
.brand h1{font-size:24px;line-height:30px;font-weight:600;color:#f2e8ba}
.brand span:not(.brand-symbol){font:9px Arial,var(--font);color:#9daead}
.main-nav{gap:3px;align-items:stretch}
.nav-tab{padding:0 12px;font-size:12px;border-bottom-width:2px;color:#aab9b8}
.nav-tab.active{color:#eed884;background:#e7c65b0b;border-bottom-color:#e7c65b}
.nav-tab:hover{color:#f1e4b4}
.header-right{gap:12px;min-width:0;color:#99acac}
.acquisition-summary{display:flex;align-items:flex-end;flex-direction:column;gap:5px;min-width:0}
.header-right .mock-label{max-width:192px;font-size:10px;color:#55d5b4}
.header-right #monitor-frames{font-size:9px;color:#92a6a5;font-variant-numeric:tabular-nums}
.header-right #clock{font:18px Arial,var(--font);color:#e9e7d3}
.status-dot,.live-indicator{background:#4bcca9;box-shadow:0 0 8px #4bcca93d}
.source-warning .status-dot{background:#e7c65b}
.source-warning #source-label{color:#e7c65b}
.icon-button{border-radius:3px;color:#b7c5c3}
.icon-button:hover{color:#f0d87c;background:#e7c65b13}
.icon-button[aria-pressed=true]{color:#f1d678;background:#e7c65b1b}
.kpi-strip{position:relative;z-index:10;height:86px;padding:12px 24px;gap:22px;background:#1c2629ed;border-bottom:1px solid #d3e0da26;backdrop-filter:blur(10px)}
.kpi{padding-left:22px;border-left-color:#d5e1dc26}
.kpi-label{font-size:10px;color:#b1bfbd;gap:6px;margin-bottom:5px}
.kpi-label svg{color:#b8c8c2}
.kpi strong{font-size:31px;line-height:34px;font-weight:400;color:#edcf6f}
.kpi:nth-child(2) strong{color:#62d4b8}
.kpi:nth-child(3) strong{color:#8dc2d0}
.kpi:nth-child(4) strong{color:#e8ddac}
.kpi.alerting strong{color:#f47b74}
.kpi-unit{color:#afbfbc;font-size:10px}
.kpi small{right:4px;bottom:5px;color:#93a7a4;font-size:9px}
.workspace,.scene-expanded .workspace{position:absolute;inset:162px 0 28px;height:auto;display:block;overflow:hidden;background:#cdd7d1}
.scene-column,.scene-expanded .scene-column{position:absolute;inset:0;width:100%;height:100%;min-height:0;display:block;background:#d5ddd6;overflow:hidden}
.scene-host,.scene-expanded .scene-host{position:absolute;inset:0;min-height:0}
.scene-host canvas{width:100%;height:100%;outline:0}
.loading-state{background:#d8e0d9;color:#4b6665}
.scene-toolbar{position:absolute;z-index:5;left:calc(var(--left-rail) + 8px);right:calc(var(--right-rail) + 8px);top:10px;min-height:38px;padding:4px 7px;border:1px solid #d3e0da40;background:#1a2529df;backdrop-filter:blur(10px);border-radius:3px;box-shadow:0 3px 14px #0d1b1d1a;gap:3px}
.scene-title{gap:7px;color:#d3dfdc;font-size:11px}
.scene-title strong{font-weight:500}
.scene-title>span:last-child{display:none}
.scene-title .dashboard-panel-toggle{width:25px;height:27px}
.scene-actions{gap:3px;margin-left:auto;flex-wrap:wrap;justify-content:flex-end}
.scene-actions>.icon-button{width:27px;height:27px}
.segmented{background:#ffffff0b;border:1px solid #c4d3cf1c;padding:1px;border-radius:3px}
.segmented button{width:26px;height:25px;color:#adbfba}
.segmented button.selected{color:#efd27b;background:#e7c65b22;box-shadow:none}
.scene-quality{height:27px;width:78px;max-width:78px;background:#233136;border:1px solid #b6ccc333;font-size:9px;color:#c1d1ca}
.scene-footer{position:absolute;left:calc(var(--left-rail) + 14px);right:calc(var(--right-rail) + 14px);bottom:12px;z-index:4;height:26px;padding:0 10px;gap:16px;background:#162126cb;border:1px solid #aabeb329;color:#b8c9c1;border-radius:2px;backdrop-filter:blur(8px)}
.scene-footer .scale-mark{color:#c3d1c9;border-color:#b6c9be}
.asset-panel,.detail-panel{position:absolute;z-index:6;top:10px;bottom:10px;min-height:0;background:#182226ed;border:1px solid #a2b7b538;border-radius:3px;box-shadow:0 4px 18px #0714171f;backdrop-filter:blur(12px);scrollbar-color:#7d96935c transparent;scrollbar-width:thin}
.asset-panel{left:12px;width:calc(var(--left-rail) - 24px);overflow-y:auto;display:flex;flex-direction:column}
.detail-panel{right:12px;width:calc(var(--right-rail) - 24px);overflow:hidden}
.panel-heading,.trend-heading{height:39px;padding:0 13px;min-width:0}
.panel-heading h2,.trend-heading h2{font-size:12px;line-height:1.5;font-weight:500;color:#dce6e2;display:flex;align-items:center;gap:7px}
.panel-heading h2::before,.trend-heading h2::before{content:"";width:3px;height:12px;background:#e7c65b;flex-shrink:0}
.panel-heading h2 svg{width:14px;height:14px;color:#abbfba;stroke-width:1.6}
.subtle{color:#8da5a0;font-size:9px}
.monitor-section{flex-shrink:0;border-bottom:1px solid #b8cdca20;padding-bottom:8px}
.trend-section,.scene-expanded .trend-section{display:flex;height:198px;margin:0;padding:0 12px 8px;background:transparent;border-top:0}
.trend-heading{padding:0;height:39px}
.trend-heading h2{font-size:11px}
.chart-area{min-height:90px}
.chart-legend{gap:11px;height:22px;font-size:8px;color:#aabbb5;flex-shrink:0;flex-wrap:wrap}
.chart-legend b{width:10px}
.history-label{display:block;font-size:8px;line-height:13px;max-width:100%;color:#829b95;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}
.monitor-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:0 13px 6px;gap:8px}
.monitor-counts>div{border-right:1px solid #c8d9cb1c}
.monitor-counts>div:last-child{border-right:0}
.monitor-counts span{display:block;font-size:9px;color:#91a8a1;margin-bottom:4px}
.monitor-counts b{font:24px Arial,var(--font);font-weight:400;color:#e7c65b}
.monitor-counts>div:nth-child(2) b{color:#85c8d1}
.monitor-counts>div:nth-child(3) b{color:#65c3a7}
.monitor-alert-list{padding:0 12px}
.monitor-alert-row{display:flex;align-items:flex-start;width:100%;gap:7px;padding:8px 0;text-align:left;border-top:1px solid #c5d5ce17;min-width:0}
.monitor-alert-row>.dot{margin-top:4px}
.monitor-alert-row>span{min-width:0;flex:1}
.monitor-alert-row strong{display:block;font-size:9px;font-weight:500;color:#dfbbb1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.monitor-alert-row small{display:block;font-size:9px;color:#a0b3ab;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:4px}
.monitor-alert-row time{font:8px Arial;color:#8ba29a;padding-top:2px;white-space:nowrap}
.monitor-clear{height:30px;display:flex;align-items:center;gap:7px;color:#84b6a1;font-size:9px}
#monitor-orders{padding:0 13px}
.monitor-order{width:100%;display:block;padding:7px 0;text-align:left;border-bottom:1px solid #c5d5ce17}
.monitor-order:last-child{border-bottom:0}
.monitor-order-top,.monitor-order-bottom{display:flex;align-items:center;justify-content:space-between;gap:7px}
.monitor-order-top strong{font-size:9px;color:#b7c8be;font-weight:400;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.monitor-order-top>b{font:15px Arial;color:#e4cb74;flex-shrink:0}
.monitor-order-top>b small{font:8px Arial;color:#b0b9a2;margin-left:2px}
.monitor-order .progress-track{display:block;margin:6px 0 5px;height:3px}
.progress-track,.energy-track{background:#d1e1d518}
.progress-track>span{background:#5abb9f}
.monitor-order-bottom{font-size:8px;color:#89a298;font-variant-numeric:tabular-nums}
.monitor-order-bottom>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.asset-panel #asset-list{padding:0 7px 2px;overflow:visible;flex:none}
.line-group{margin-bottom:3px}
.line-button{padding:5px 6px;gap:6px;font-size:10px;font-weight:400}
.line-button .line-code{font-size:9px;color:#e0ce91;background:#e7c65b12;border-radius:2px;padding:2px 5px}
.line-button .line-summary{font-size:8px;color:#8ca69d}
.device-button{height:26px;padding:0 8px 0 15px;gap:7px;font-size:9px;color:#a4bcb0;border-left-width:2px}
.device-button .device-code{display:inline;font:9px Arial;color:#79988b;width:24px}
.device-button .device-name{line-height:1.6}
.device-button.selected{color:#e4d28f;background:#e7c65b15;border-left-color:#e7c65b}
.dot.running{background:#47c4a0}
.dot.idle{background:#e6c15b}
.dot.fault{background:#f47970;box-shadow:0 0 0 3px #f4797014}
.asset-bottom{padding:0 13px 12px;border-top:0;flex-shrink:0;margin-top:0}
.small-heading{height:34px;padding:0}
.small-heading h3{font-size:10px;font-weight:400;color:#b0c7b9}
.status-legend{margin:0 0 10px;font-size:9px;color:#8da99b}
.mini-definition{gap:6px;font-size:8px;color:#819e90}
.mini-definition b{font-size:9px;color:#acc4b4}
.detail-title{height:40px;border-bottom-color:#bbd0c426}
.detail-content{padding:16px 16px 10px;color:#c6d5cc}
.detail-scroll{scrollbar-color:#7d96935c transparent}
.eyebrow{color:#87a89a;font-size:9px}
.detail-device-name{font-size:17px;color:#e5e5cf;margin-bottom:15px}
.detail-section{border-top-color:#bfd0c526;padding:15px 0}
.detail-section h3{font-size:11px;font-weight:500;color:#c8d7cb}
.property>span,.definition>span:nth-child(odd){color:#8da99b;font-size:10px}
.property b{color:#dec77d;font-size:21px}
.property small{color:#8fae9d}
.property .danger-value{color:#f47b74}
.definition{gap:9px;font-size:10px;grid-template-columns:minmax(68px,1fr) minmax(0,1.25fr)}
.definition>span:nth-child(even){color:#c6d6c7}
.text-button{color:#e7c65b}
.line-overview{border-bottom-color:#c0d4c226}
.line-overview .line-name{color:#b5cdbd}
.progress-row{color:#8ea99b}
.status-tag{background:#46bb8c18;color:#78d2ad;border-radius:2px}
.status-tag.idle{color:#e7c65b;background:#e7c65b16}
.status-tag.fault{color:#f47b74;background:#f47b7414}
.muted-copy,.data-source{color:#8da99b}
.muted-copy strong{color:#bfd3c2}
.action{border-color:#a3bdad40;background:#b6cdb106;color:#c3d3bf;border-radius:3px}
.action.primary{color:#1b281f;background:#dfc561;border-color:#dfc561}
.action.primary:hover{background:#edd47a}
.action.danger{color:#ef9280;border-color:#d78a7040}
.inline-select{background:#26362f;color:#bfceb9}
.split-values{color:#93b09d}
.split-values b,.energy-row b,.energy-device b{color:#d6c58b}
.energy-row>div:first-child,.energy-device button{color:#afc5b0}
.energy-device{border-bottom-color:#c2d4bb20}
.energy-device.anomaly b{color:#f47b74}
.energy-track span{opacity:.9}
.record-item{border-top-color:#c2d4bb26}
.record-item p,.record-item time{color:#98b09b}
.history-values,.history-readout{color:#8da99b}
.history-values b{color:#c2d1b7}
.order-chip,.order-device-list span{background:#bbce9a10;color:#c8c994;border-radius:2px}
.simulation-result{border-top-color:#c3d1b02b}
.result-numbers span,.assumptions{color:#96ac91}
.result-numbers b{color:#d5cf86}
.result-numbers .loss b{color:#f4937c}
.warning-copy{color:#ddbe69}
.material-flow{background:#6e8b6d0c;border-bottom-color:#c3d6c326;padding:12px 16px 10px}
.material-flow .section-head h3{color:#cbd9c6}
.material-flow .subtle{color:#90a88e}
.flow-table thead{color:#90a88e}
.flow-table tbody th{color:#d8ca86}
.flow-table tbody td{color:#c2d2b8}
.flow-table .flow-blocked,.flow-waiting{color:#e2c66e}
.reading-provenance,.machine-process{border-top-color:#c3d6c326}
.reading-provenance span{color:#8ba28b}
.reading-provenance b,.reading-provenance time{color:#b8c8ad}
.reading-quality.good{color:#78c69a}
.reading-quality.stale,.reading-quality.fallback,.reading-quality.pending{color:#e7c65b}
.reading-quality.disconnected{color:#f47b74}
.reading-provenance>div{grid-template-columns:54px minmax(0,1fr)}
.status-bar{position:absolute;z-index:11;bottom:0;left:0;right:0;height:28px;background:#151f20;border-top:1px solid #a2b7b533;padding:0 16px;gap:20px;color:#899f98;font-size:9px}
.status-bar>button{height:27px;border-left-color:#b8cdca26;color:#b9c9bd}
.status-bar b{background:#e7c65b1a;color:#e7c65b;border-radius:2px}
.alert-drawer{top:162px;bottom:28px;background:#1b2828f7;backdrop-filter:blur(12px);border-left-color:#b8cdca33;width:370px;max-width:100vw;box-shadow:-8px 0 35px #0712123d}
.alert-item{border-bottom-color:#b8cdca26}
.alert-top strong{color:#d7dfcd}
.alert-message{color:#bfceb7}
.alert-suggestion,.alert-state{color:#94ab91}
.empty-state{color:#8eaa96}
.toast-region{top:90px}
.toast{background:#25332e;border-color:#abc49645;color:#dde4ce;border-radius:3px;box-shadow:0 5px 25px #07121245}
.toast p{color:#aec1a3}
.toast.danger{border-color:#e592714d}
.toast.danger svg{color:#ef9b7f}
dialog{background:#1d2929;color:#d6e1d0;border-color:#9fb5a34d;border-radius:4px;box-shadow:0 16px 65px #07121287}
dialog::backdrop{background:#0b16176b;backdrop-filter:blur(3px)}
.modal-top{border-bottom-color:#b8cdca26}
.protocol-modal .modal-top{background:#1d2929}
.protocol-modal input:disabled,.protocol-modal select:disabled{background:#162321;color:#7e9989}
.protocol-connection{color:#74c9a3}
.protocol-connection>span,.protocol-last-success{color:#8ea58e}
.protocol-target,.protocol-endpoints code,.protocol-spec-row code{color:#c2d3b4}
.protocol-endpoints>div,.protocol-spec-row,.protocol-details summary{color:#a2b79c}
.protocol-registers th{background:#c1cf9410;color:#c8d2af}
.protocol-registers td{color:#adc3a2}
.protocol-registers th,.protocol-registers td,.protocol-status,.protocol-details{border-color:#b8cdca26}
.protocol-spec-note,.protocol-actions>span{color:#91a88e}
.protocol-connection.disconnected,.protocol-connection.error,.protocol-connection-error{color:#f4937c}
.protocol-connection.pending,.protocol-connection.stale,.protocol-connection.degraded{color:#e7c65b}
.inspection-hud{background:#192827ed;color:#d2dfc8;border-color:#9fb5a34d;border-top-color:#e7c65b;backdrop-filter:blur(10px)}
.inspection-readings>span,.inspection-readings small,.inspection-coordinates{color:#a1b79b}
.inspection-readings b{color:#e1d18e}
.inspection-open{color:#e7c65b;border-top-color:#b8cdca26}
.walk-controls button{color:#cbd9bc;background:#1b2c28e8;border-color:#a8bf9b4d;box-shadow:0 2px 8px #0917132e}
.walk-controls button.pressed{background:#d7c363;color:#1d2b20}
.scene-expanded .asset-panel,.monitor-left-collapsed .asset-panel{display:none}
.monitor-right-collapsed .detail-panel{display:none}
.scene-expanded .scene-toolbar,.monitor-left-collapsed .scene-toolbar{left:12px}
.scene-expanded .scene-footer,.monitor-left-collapsed .scene-footer{left:16px}
.monitor-right-collapsed .scene-toolbar{right:12px}
.monitor-right-collapsed .scene-footer{right:16px}
@media(min-width:1800px){:root{--left-rail:338px;--right-rail:358px}.app-header{padding:0 28px}.brand{min-width:300px}.main-nav{gap:10px}.nav-tab{padding:0 18px}.trend-section{height:220px}.monitor-order{padding:9px 0}.device-button{height:28px;font-size:10px}.line-button{padding:7px 6px}.monitor-counts b{font-size:27px}.detail-content{padding:19px}.monitor-order-top strong,.monitor-order-bottom,.monitor-alert-row strong,.monitor-alert-row small{font-size:10px}}
@media(max-width:1400px){:root{--left-rail:280px;--right-rail:300px}.brand{min-width:218px}.brand h1{font-size:21px}.brand span:not(.brand-symbol){font-size:8px}.app-header{padding:0 15px;gap:12px}.nav-tab{padding:0 8px;font-size:11px;gap:5px}.header-right{gap:8px}.header-right #clock{font-size:15px}.header-right .mock-label{max-width:150px;font-size:9px}.kpi-strip{padding:12px 19px;gap:16px}.kpi{padding-left:17px}.kpi small{font-size:8px;max-width:115px;text-align:right;line-height:1.6}.kpi strong{font-size:29px}.trend-section{height:186px}.chart-legend{gap:7px;font-size:7px}.scene-toolbar{min-height:39px}.scene-actions{gap:2px}.scene-actions>.icon-button{width:25px}.segmented button{width:24px}.scene-title strong{font-size:10px}.scene-quality{width:72px;max-width:72px}.detail-content{padding:14px}.property b{font-size:20px}}
@media(max-width:1100px){.brand{min-width:180px;gap:8px}.brand h1{font-size:19px}.brand-symbol{width:32px;height:32px}.brand span:not(.brand-symbol){font-size:7px}.nav-tab{font-size:10px;padding:0 6px;gap:4px}.nav-tab svg{width:13px}.header-right #clock{display:none}.header-right .mock-label{max-width:140px}.kpi small{display:none}.scene-toolbar{flex-wrap:wrap}.scene-actions{justify-content:flex-end}}
@media(max-width:1050px){:root{--right-rail:292px}.asset-panel{display:none}.monitor-left-open:not(.scene-expanded) .asset-panel{display:flex;box-shadow:8px 0 26px #07121259}.scene-toolbar{left:12px}.scene-footer{left:16px}.monitor-left-open:not(.scene-expanded) .scene-toolbar{left:calc(var(--left-rail) + 8px)}.monitor-left-open:not(.scene-expanded) .scene-footer{left:calc(var(--left-rail) + 14px)}.kpi strong{font-size:28px}.kpi-label{font-size:9px}.property-grid{gap:15px 10px}.detail-device-name{font-size:16px}}
@media(max-width:720px){html,body{height:100%;height:100dvh;overflow:hidden;min-height:0}.app-header{height:102px;min-height:0;display:flex;flex-wrap:wrap;padding:9px 12px 0;gap:0 8px;align-content:space-between}.brand{min-width:0;flex:1}.brand h1{font-size:20px;line-height:26px}.brand-symbol{width:32px;height:32px}.brand span:not(.brand-symbol){font-size:7px}.header-right{order:2;gap:4px}.header-right .mock-label{max-width:128px;font-size:8px}.header-right #monitor-frames{font-size:7px}.header-right>.icon-button{width:26px;height:27px}.main-nav{width:100%;order:3;height:40px;gap:1px;justify-content:space-between}.nav-tab{padding:0 4px;flex:1;justify-content:center;font-size:9px;gap:4px}.nav-tab svg{width:13px;height:13px}.kpi-strip{height:74px;gap:8px;padding:11px 12px}.kpi{padding-left:9px}.kpi-label{font-size:8px;gap:3px;line-height:13px;margin-bottom:5px}.kpi-label svg{display:none}.kpi strong{font-size:24px;line-height:27px}.kpi-unit{font-size:8px;margin-left:3px}.workspace,.scene-expanded .workspace{inset:176px 0 28px;height:auto;display:block;overflow:hidden}.scene-column,.scene-expanded .scene-column{height:100%;min-height:0}.scene-toolbar{left:9px;right:9px;top:8px;min-height:39px;padding:4px 5px;row-gap:4px;flex-wrap:wrap}.scene-actions{width:auto;flex:1;gap:2px;justify-content:flex-end;margin-left:auto}.scene-actions>.icon-button{width:25px;height:26px}.scene-title{gap:5px}.scene-title strong{font-size:10px}.scene-title>span:last-child{display:none}.scene-quality{width:70px;max-width:70px;height:26px;font-size:8px}.segmented button{width:24px;height:24px}.scene-footer,.scene-expanded .scene-footer{left:12px;right:12px;bottom:10px;gap:12px;font-size:8px;height:24px}.asset-panel,.detail-panel{top:53px;bottom:43px;display:none;max-width:calc(100vw - 24px);width:285px;min-height:0}.asset-panel{left:12px;overflow-y:auto}.detail-panel{right:12px;border:1px solid #a2b7b538}.monitor-left-open:not(.scene-expanded) .asset-panel{display:flex}.monitor-right-open .detail-panel{display:flex;box-shadow:-8px 0 26px #07121259}.monitor-left-open:not(.scene-expanded) .scene-toolbar{left:9px}.monitor-left-open:not(.scene-expanded) .scene-footer{left:12px}.detail-scroll{overflow:auto;flex:1;min-height:0}.detail-content{padding:15px;overflow:visible}.property-grid{grid-template-columns:1fr 1fr;gap:14px}.fault-buttons{grid-template-columns:1fr 1fr}.fault-buttons .action{font-size:10px}.fault-buttons .action svg{display:inline;width:13px}.detail-title{height:39px}.status-bar{height:28px;gap:10px;padding:0 10px;font-size:8px}.status-bar>span:first-child{font-size:8px}.status-bar #db-status{display:none}.alert-drawer{top:176px;bottom:28px;width:340px}.toast-region{top:111px;right:12px;width:min(320px,calc(100vw - 24px))}.material-flow{padding:12px 15px}.scene-expanded .scene-host{min-height:0}.history-label{display:block}.inspection-hud{max-width:calc(100% - 136px);bottom:44px}.walk-controls{bottom:44px}.protocol-modal .field-row{grid-template-columns:1fr}.protocol-connection{gap:3px 10px}}
@media(max-width:400px){.brand h1{font-size:18px}.brand-symbol{width:28px;height:31px}.brand-symbol svg{width:20px}.brand{gap:7px}.header-right .mock-label{max-width:104px;font-size:7px}.header-right #monitor-frames{font-size:7px}.header-right>.icon-button{width:24px}.kpi-strip{gap:5px;padding:11px 9px}.kpi{padding-left:6px}.kpi strong{font-size:22px}.kpi-label{font-size:7px}.nav-tab{font-size:8px;gap:3px}.scene-title strong{display:none}.scene-actions .icon-button{width:23px}.scene-actions .segmented button{width:23px}.scene-quality{width:63px;max-width:63px;font-size:7px}.scene-toolbar{padding:4px}.scene-footer{gap:8px}.scene-footer .scale-mark{width:28px}}
.inspection-order{display:grid;gap:3px;margin-top:9px;padding:7px 8px;background:#eef5f2;border-left:2px solid #158b83;color:#31565a;font-size:9px}.inspection-order span{font:10px Arial;color:#087f79}.inspection-order b{font-size:11px;color:#213539}.inspection-order small{font-size:9px;color:#71858a;overflow-wrap:anywhere}
.inspection-hud{left:calc(var(--left-rail) + 14px);bottom:48px;z-index:5}
.walk-controls{right:calc(var(--right-rail) + 14px);bottom:48px;z-index:5}
.scene-expanded .inspection-hud,.monitor-left-collapsed .inspection-hud{left:18px}
.monitor-right-collapsed .walk-controls{right:18px}
@media(max-width:1050px){.inspection-hud{left:18px}.monitor-left-open:not(.scene-expanded) .inspection-hud{left:calc(var(--left-rail) + 14px)}}
@media(max-width:720px){.inspection-hud,.scene-expanded .inspection-hud,.monitor-left-open:not(.scene-expanded) .inspection-hud{left:10px;bottom:44px}.walk-controls,.monitor-right-collapsed .walk-controls{right:10px;bottom:44px}.monitor-right-open .walk-controls{right:calc(min(285px,100vw - 24px) + 20px)}}
.flow-table th>span,.flow-table th>small{display:block}
.flow-table th>small{font-size:8px;color:var(--muted);line-height:1.5;overflow-wrap:anywhere}
.panel-edge-toggle{position:absolute;z-index:7;top:50%;transform:translateY(-50%);width:24px;height:64px;padding:0;display:grid;place-items:center;background:#1b292bee;border:1px solid #a2b7b54d;color:#d9ca86;box-shadow:0 3px 12px #07141726;touch-action:manipulation}
.panel-edge-toggle:hover{background:#344340;color:#fff0b8}
.panel-edge-toggle svg{width:18px;height:18px;stroke-width:2}
.panel-edge-toggle-left{left:calc(var(--left-rail) - 12px);border-radius:0 4px 4px 0;border-left:0}
.panel-edge-toggle-right{right:calc(var(--right-rail) - 12px);border-radius:4px 0 0 4px;border-right:0}
.scene-expanded .panel-edge-toggle-left,.monitor-left-collapsed .panel-edge-toggle-left{left:0}
.monitor-right-collapsed .panel-edge-toggle-right{right:0}
@media(max-width:1050px){.panel-edge-toggle-left{left:0}.monitor-left-open:not(.scene-expanded) .panel-edge-toggle-left{left:calc(var(--left-rail) - 12px)}}
@media(max-width:720px){.panel-edge-toggle{width:28px;height:60px}.panel-edge-toggle-left,.scene-expanded .panel-edge-toggle-left{left:0}.panel-edge-toggle-right{right:0}.monitor-left-open:not(.scene-expanded) .panel-edge-toggle-left{left:calc(min(285px,100vw - 24px) + 12px)}.monitor-right-open .panel-edge-toggle-right{right:calc(min(285px,100vw - 24px) + 12px)}}
.line-control-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:3px 6px 5px 25px}
.line-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-top:10px}
.line-controls-compact{display:flex;gap:4px;margin:0}
.line-command{display:flex;align-items:center;justify-content:center;gap:5px;height:32px;min-width:0;padding:0 7px;border:1px solid #a3bdad40;border-radius:3px;background:#b6cdb106;color:#c3d3bf;font-size:10px;white-space:nowrap}
.line-command svg{width:13px;height:13px;flex-shrink:0}
.line-controls-compact .line-command{width:28px;height:26px;padding:0}
.line-command:hover:enabled,.line-command:focus-visible{background:#cedbb91f;border-color:#d4ca86;outline:1px solid #d4ca86;outline-offset:1px}
.line-command[aria-pressed=true]{background:#b6cdb11a;border-color:#a3bdad66}
.line-command:disabled{cursor:default;opacity:.42}
.line-command[aria-pressed=true]:disabled{opacity:.8}
.line-command-run{color:#86d4ac}
.line-command-pause{color:#dfc775}
.line-command-stop{color:#f29b8d}
.line-control-status{max-width:105px;white-space:normal;line-height:1.35}
.line-control-status.running{color:#86d4ac;background:#86d4ac12}
.line-control-status.paused,.line-control-status.global-paused,.line-control-status.idle{color:#dfc775;background:#dfc77512}
.line-control-status.stopped,.line-control-status.fault,.line-control-status.stale{color:#f29b8d;background:#f29b8d12}
.line-control-status.completed{color:#abd9db;background:#abd9db12}
