.react-grid-layout{position:relative;transition:height .2s ease}.react-grid-item{transition:all .2s ease;transition-property:left,top,width,height}.react-grid-item img{pointer-events:none;-webkit-user-select:none;user-select:none}.react-grid-item.cssTransforms{transition-property:transform,width,height}.react-grid-item.resizing{transition:none;z-index:1;will-change:width,height}.react-grid-item.react-draggable-dragging{transition:none;z-index:3;will-change:transform}.react-grid-item.dropping{visibility:hidden}.react-grid-item.react-grid-placeholder{background:red;opacity:.2;transition-duration:.1s;z-index:2;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.react-grid-item.react-grid-placeholder.placeholder-resizing{transition:none}.react-grid-item>.react-resizable-handle{position:absolute;width:20px;height:20px}.react-grid-item>.react-resizable-handle:after{content:"";position:absolute;right:3px;bottom:3px;width:5px;height:5px;border-right:2px solid rgba(0,0,0,.4);border-bottom:2px solid rgba(0,0,0,.4)}.react-resizable-hide>.react-resizable-handle{display:none}.react-grid-item>.react-resizable-handle.react-resizable-handle-sw{bottom:0;left:0;cursor:sw-resize;transform:rotate(90deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-se{bottom:0;right:0;cursor:se-resize}.react-grid-item>.react-resizable-handle.react-resizable-handle-nw{top:0;left:0;cursor:nw-resize;transform:rotate(180deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-ne{top:0;right:0;cursor:ne-resize;transform:rotate(270deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-w,.react-grid-item>.react-resizable-handle.react-resizable-handle-e{top:50%;margin-top:-10px;cursor:ew-resize}.react-grid-item>.react-resizable-handle.react-resizable-handle-w{left:0;transform:rotate(135deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-e{right:0;transform:rotate(315deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-n,.react-grid-item>.react-resizable-handle.react-resizable-handle-s{left:50%;margin-left:-10px;cursor:ns-resize}.react-grid-item>.react-resizable-handle.react-resizable-handle-n{top:0;transform:rotate(225deg)}.react-grid-item>.react-resizable-handle.react-resizable-handle-s{bottom:0;transform:rotate(45deg)}.react-resizable{position:relative}.react-resizable-handle{position:absolute;width:20px;height:20px;background-repeat:no-repeat;background-origin:content-box;box-sizing:border-box;background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+);background-position:bottom right;padding:0 3px 3px 0}.react-resizable-handle-sw{bottom:0;left:0;cursor:sw-resize;transform:rotate(90deg)}.react-resizable-handle-se{bottom:0;right:0;cursor:se-resize}.react-resizable-handle-nw{top:0;left:0;cursor:nw-resize;transform:rotate(180deg)}.react-resizable-handle-ne{top:0;right:0;cursor:ne-resize;transform:rotate(270deg)}.react-resizable-handle-w,.react-resizable-handle-e{top:50%;margin-top:-10px;cursor:ew-resize}.react-resizable-handle-w{left:0;transform:rotate(135deg)}.react-resizable-handle-e{right:0;transform:rotate(315deg)}.react-resizable-handle-n,.react-resizable-handle-s{left:50%;margin-left:-10px;cursor:ns-resize}.react-resizable-handle-n{top:0;transform:rotate(225deg)}.react-resizable-handle-s{bottom:0;transform:rotate(45deg)}:root{--primary: #1e40af;--primary-2: #1d4ed8;--bg: #f8fafc;--card: #ffffff;--text: #0f172a;--muted: #64748b;--border: #e2e8f0;--ok: #15803d;--ok-bg: #dcfce7;--warn: #b45309;--warn-bg: #fef3c7;--bad: #b91c1c;--bad-bg: #fee2e2;font-family:Sarabun,Noto Sans Thai,system-ui,-apple-system,sans-serif;color:var(--text);background:var(--bg)}*{box-sizing:border-box}body{margin:0;background:var(--bg)}h1{font-size:1.4rem;margin:0 0 12px}h2{font-size:1.1rem;margin:16px 0 8px}button{font:inherit;border-radius:8px;padding:8px 14px;border:1px solid transparent;cursor:pointer;min-height:40px}button:disabled{opacity:.55;cursor:not-allowed}.primary{background:var(--primary);color:#fff}.primary:hover:not(:disabled){background:var(--primary-2)}.secondary{background:#fff;color:var(--primary);border-color:var(--primary)}.ghost{background:transparent;color:var(--text);border-color:var(--border)}.danger{background:#fff;color:var(--bad);border-color:var(--bad)}.link{background:none;color:var(--primary);padding:4px;text-decoration:underline;min-height:auto}input,select,textarea{font:inherit;padding:8px 10px;border:1px solid var(--border);border-radius:8px;background:#fff;width:100%;min-height:40px}input[aria-invalid=true]{border-color:var(--bad)}label{display:flex;flex-direction:column;gap:4px;font-size:.92rem}label.check{flex-direction:row;align-items:center;gap:8px}label.check input{width:auto;min-height:auto}fieldset{border:1px solid var(--border);border-radius:8px;display:flex;flex-direction:column;gap:8px}.card{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:16px}.muted{color:var(--muted)}.small{font-size:.82rem}.mono{font-family:ui-monospace,monospace;font-size:.85rem;word-break:break-all}.notice{padding:8px 12px;border-radius:8px;margin:8px 0}.notice.error,.notice.bad{background:var(--bad-bg);color:var(--bad)}.notice.ok{background:var(--ok-bg);color:var(--ok)}.notice.warn{background:var(--warn-bg);color:var(--warn)}.ok-text{color:var(--ok)}.bad-text{color:var(--bad)}.badge{display:inline-block;padding:2px 8px;border-radius:999px;font-size:.78rem;background:#e2e8f0;color:var(--text);margin:2px 4px 2px 0;white-space:nowrap}.badge.ok{background:var(--ok-bg);color:var(--ok)}.badge.warn{background:var(--warn-bg);color:var(--warn)}.badge.bad{background:var(--bad-bg);color:var(--bad)}.badge.run{background:#dbeafe;color:var(--primary)}.badges{display:flex;flex-wrap:wrap}.btn-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.row{display:flex;justify-content:space-between;align-items:baseline;gap:8px}.row-2{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}.form{display:flex;flex-direction:column;gap:12px;margin-bottom:16px;max-width:860px}.auth-page,.center-page{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:16px}.center-page.card{max-width:520px;margin:10vh auto;min-height:auto}.auth-card{width:100%;max-width:400px;display:flex;flex-direction:column;gap:12px}.pw{display:flex;gap:6px}.pw button{flex:none}.spinner{width:36px;height:36px;border:4px solid var(--border);border-top-color:var(--primary);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.app{display:grid;grid-template-columns:220px 1fr;grid-template-rows:auto 1fr;min-height:100vh}.topbar{grid-column:1 / -1;display:flex;align-items:center;gap:10px;padding:8px 16px;background:#fff;border-bottom:1px solid var(--border);flex-wrap:wrap}.topbar select{width:auto;max-width:220px}.brand{color:var(--primary)}.spacer{flex:1}.menu-btn{display:none}.sidebar{background:#fff;border-right:1px solid var(--border);padding:12px 8px;display:flex;flex-direction:column;gap:2px}.sidebar a{padding:10px 12px;border-radius:8px;color:var(--text);text-decoration:none}.sidebar a.active{background:#dbeafe;color:var(--primary);font-weight:600}.content{padding:20px;min-width:0}.page-head{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:12px}.page-head h1{margin:0;flex:1 1 auto}.table-wrap{overflow-x:auto;background:#fff;border:1px solid var(--border);border-radius:12px}table{width:100%;border-collapse:collapse}th,td{padding:10px;border-bottom:1px solid var(--border);text-align:left;vertical-align:top}th{font-size:.85rem;color:var(--muted)}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}.device-card{display:flex;flex-direction:column;gap:8px}.mini-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:8px}.stack{display:flex;flex-direction:column;gap:12px}.stack .gauge{max-height:200px}.widget{overflow:auto;position:relative;padding:10px}.widget .remove{position:absolute;top:4px;right:4px;min-height:28px;padding:2px 8px;z-index:2}.widget-body{display:flex;flex-direction:column;gap:4px;height:100%}.widget-body.error{color:var(--bad)}.widget-title{font-weight:600;font-size:.95rem}.widget-meta{font-size:.78rem;color:var(--muted)}.widget-meta.warn{color:var(--warn)}.widget-source{font-size:.72rem;color:var(--muted);margin-top:auto}.gauge{width:100%;max-height:180px}.big-value{font-size:2rem;font-weight:700;color:var(--primary)}.big-value small{font-size:1rem;color:var(--muted)}.add-widget{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.add-widget select{width:auto}.setpoint{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end}.setpoint label{flex:1 1 160px}.test-result{margin:4px 0;padding-left:18px;font-size:.85rem}@media(max-width:860px){.app{grid-template-columns:1fr}.menu-btn{display:inline-block}.sidebar{display:none;position:fixed;top:56px;left:0;bottom:0;width:240px;z-index:20;box-shadow:0 8px 24px #00000026}.nav-open .sidebar{display:flex}.content{padding:12px}.hide-sm{display:none}.topbar select{max-width:140px}}.wcard{background:#fff;border:1px solid var(--border);border-radius:14px;padding:14px 16px;height:100%;display:flex;flex-direction:column;gap:6px;min-width:0}.whead{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:4px}.whead-text{min-width:0}.wtitle{font-size:.82rem;font-weight:600;color:#1e293b}.wsub{font-size:.7rem;color:#94a3b8}.whead-actions{display:flex;gap:6px;align-items:center;flex-shrink:0}.icon-btn{width:30px;height:30px;min-height:30px;padding:0;border:1px solid var(--border);background:#f8fafc;border-radius:6px;color:#64748b;display:inline-flex;align-items:center;justify-content:center}.icon-btn.active{background:var(--primary);color:#fff;border-color:var(--primary)}.icon-btn.warn{background:#fef3c7;border-color:#fbbf24}.slide{width:44px;height:24px;min-height:24px;border-radius:12px;background:#cbd5e1;position:relative;padding:0;border:none;flex-shrink:0;transition:background .2s}.slide.on{background:#22c55e}.slide .knob{width:18px;height:18px;border-radius:9px;background:#fff;position:absolute;top:3px;left:3px;transition:left .2s;box-shadow:0 1px 3px #0003}.slide.on .knob{left:23px}.slide:disabled{opacity:.5}.led{width:10px;height:10px;border-radius:50%;display:inline-block;flex-shrink:0;background:#94a3b8}.led.on{background:#22c55e;box-shadow:0 0 6px #22c55e}.led.unknown{background:#fff;border:2px dashed #f59e0b}.pill{display:inline-block;font-size:.72rem;padding:2px 10px;border-radius:99px;background:#f1f5f9;color:#64748b;font-weight:500;white-space:nowrap}.pill.ok{background:var(--ok-bg);color:var(--ok)}.pill.warn{background:var(--warn-bg);color:var(--warn)}.pill.bad{background:var(--bad-bg);color:var(--bad)}.pill.info{background:#eff6ff;color:#1d4ed8}.crow{display:flex;align-items:center;gap:8px;font-size:.8rem;color:#64748b}.grow{flex:1;min-width:0}.wfoot{margin-top:auto;padding-top:8px;border-top:1px solid #f1f5f9;display:flex;justify-content:space-between;gap:8px;font-size:.68rem;color:#94a3b8;flex-wrap:wrap}.wfoot-state{display:flex;align-items:center;gap:4px}.wfoot-src{font-family:ui-monospace,monospace;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:60%}.dot{width:6px;height:6px;border-radius:50%;display:inline-block;background:#cbd5e1}.dot.ok{background:#22c55e}.dot.bad{background:#ef4444}.dot.warn{background:#f59e0b}.sub-panel{margin-top:8px;border-top:1px solid #f1f5f9;padding-top:8px;display:flex;flex-direction:column;gap:6px}.sub-title{font-size:.72rem;font-weight:600;color:#94a3b8;letter-spacing:.04em;margin:6px 0}.sub-label{font-size:.75rem;color:#64748b}.srow{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:8px;font-size:.8rem;color:#64748b}.srow>input,.srow>select{width:130px;min-height:32px;padding:4px 8px;font-size:.8rem}.srow.col{flex-direction:column;align-items:stretch}.srow.col>input,.srow.col>select{width:100%}.sm{min-height:32px;padding:4px 12px;font-size:.8rem}.mini-btn{min-height:26px;padding:2px 8px;font-size:.72rem;border:1px solid var(--border);background:#f8fafc;color:#64748b}.x-btn{border:none;background:none;color:#dc2626;font-size:1rem;min-height:24px;padding:0 4px}.tiny{font-size:.7rem}.mono{font-family:ui-monospace,monospace}.mono-ellipsis{font-family:ui-monospace,monospace;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1}.blue{color:#1e40af}.amber{color:#92400e}.right{text-align:right}.center{text-align:center;padding:20px}.lgauge{display:flex;flex-direction:column}.lgauge-svg{width:100%;max-width:260px;margin:0 auto;display:block;-webkit-user-select:none;user-select:none;touch-action:none}.hint-bar{font-size:.66rem;color:#b45309;background:#fef3c7;border-radius:6px;padding:4px 8px;display:flex;gap:8px;flex-wrap:wrap}.zone-row{display:flex;justify-content:space-between;align-items:center;gap:6px}.zone-legend{display:flex;gap:8px;flex-wrap:wrap;font-size:.7rem;color:#64748b}.zone-legend i{width:10px;height:10px;border-radius:50%;display:inline-block;margin-right:3px;border:1px solid var(--border);vertical-align:middle}.zone-edit{display:flex;align-items:center;gap:6px;font-size:.75rem;color:#94a3b8}.zone-edit input[type=color]{width:32px;min-height:26px;padding:1px}.zone-edit input[type=number]{width:70px;min-height:28px;padding:2px 6px}.status-body{position:relative;display:flex;flex-direction:column;align-items:center;padding:14px 0 6px}.status-body .halo{position:absolute;width:100px;height:100px;border-radius:50%;background:#94a3b814;top:0}.status-body.on .halo{background:#22c55e26}.status-body.on .status-icon{filter:drop-shadow(0 0 8px #22c55e)}.status-icon{position:relative}.status-word{margin-top:8px;font-size:1.25rem;font-weight:700;letter-spacing:2px}.icon-pick{display:flex;flex-wrap:wrap;gap:6px}.icon-pick button{width:36px;height:36px;min-height:36px;padding:4px;border:1px solid var(--border);background:#f8fafc;border-radius:8px}.icon-pick button.active{border-color:var(--primary);background:#eff6ff}.sensor-card{position:relative;background:#fff;border:1px solid var(--border);border-radius:10px;padding:12px 14px;display:flex;flex-direction:column;gap:6px;height:100%}.sensor-card.alarm{border-color:#fca5a5}.sensor-card .row.end{align-items:flex-end}.sc-value{font-size:1.4rem;font-weight:600}.card-actions{position:absolute;top:8px;right:8px;display:flex;gap:4px;opacity:0;transition:opacity .15s;z-index:2}.sensor-card:hover .card-actions,.sensor-card:focus-within .card-actions{opacity:1}.card-actions button{width:28px;height:28px;min-height:28px;padding:0;border-radius:6px;background:#eff6ff;color:var(--primary);border:1px solid #bfdbfe}@media(hover:none){.card-actions{opacity:1}}.relay-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:.78rem;color:#64748b}.relay-row .full{flex-basis:100%}.add-row{display:flex;gap:6px}.add-row input{flex:1;min-height:32px;font-size:.78rem;border-style:dashed}.add-row select{width:auto;min-height:32px;font-size:.78rem}.days{display:flex;gap:4px}.days span,.days button{font-size:.62rem;width:20px;height:20px;min-height:20px;padding:0;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#f1f5f9;color:#94a3b8;border:1px solid var(--border)}.days .on{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe}.days.edit button{width:30px;height:30px;min-height:30px;font-size:.75rem}.big-center{text-align:center}.big-num{font-size:2rem;font-weight:600}.big-num small{font-size:.8rem}.bar{background:#f1f5f9;border-radius:6px;height:8px;position:relative;margin:4px 0 6px}.bar-fill{height:100%;border-radius:6px;transition:width .5s,background .5s}.bar-mark{position:absolute;top:-3px;width:2px;height:14px;border-radius:1px}.io{display:flex;flex-direction:column;gap:4px}.topic-tag{display:flex;align-items:center;gap:6px;border-radius:6px;padding:4px 8px;font-size:.68rem;min-width:0}.topic-tag.in{background:#eff6ff;border:1px solid #bfdbfe;color:#1d4ed8}.topic-tag.out{background:#fffbeb;border:1px solid #fde68a;color:#b45309}.topic-tag b{font-size:.58rem;padding:1px 5px;border-radius:99px;background:#fff}.tag{font-size:.58rem;padding:2px 6px;border-radius:5px;font-weight:600;flex-shrink:0}.tag.in{background:#eff6ff;color:#1d4ed8}.tag.out{background:#fffbeb;color:#b45309}.topic-row{display:flex;align-items:center;gap:6px;padding:3px 0;flex-wrap:wrap}.seg{display:flex;background:#f1f5f9;border-radius:8px;padding:3px;gap:2px}.seg button{flex:1;border:none;border-radius:6px;padding:4px 10px;min-height:28px;font-size:.72rem;background:transparent;color:#64748b;white-space:nowrap}.seg button.active{background:#fff;color:var(--primary);box-shadow:0 1px 2px #0000001f}.coin-head{display:flex;align-items:center;gap:10px;min-width:0}.coin-icon{width:36px;height:36px;border-radius:10px;background:#eff6ff;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:#b45309;font-weight:700}.coin-icon.dryer{background:#fffbeb}.money{font-weight:600;color:#1e293b}.money.big,.money.lg{font-size:1.25rem}.money.xl{font-size:1.6rem}.coin-box{background:#f8fafc;border:1px solid var(--border);border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:8px}.btn-row.two>button{flex:1}.go{background:#16a34a;color:#fff}.stop{background:#dc2626;color:#fff}.go:disabled,.stop:disabled,.token-btn:disabled{background:#cbd5e1;opacity:1}.token-box{background:#fffbeb;border:1px solid #fde68a;border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:8px}.stepper{display:flex;align-items:center;gap:6px}.stepper button{width:36px;height:36px;min-height:36px;padding:0;border-radius:8px;border:1px solid #fde68a;background:#fff;color:#92400e;font-size:1rem}.stepper span{min-width:34px;text-align:center;font-size:1.4rem;font-weight:600}.pulses{display:flex;align-items:flex-end;height:16px;border-bottom:1px solid #f59e0b;overflow:hidden}.pulses i{width:6px;height:14px;margin-left:8px;border:2px solid #f59e0b;border-bottom:none;box-sizing:border-box;flex-shrink:0}.token-btn{width:100%;background:#b45309;color:#fff}.io-rows{margin-top:4px;display:flex;flex-direction:column;gap:6px}.coin-bar{display:flex;background:#f1f5f9;border-radius:99px;overflow:hidden}.coin-bar div{height:100%}.stat-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px}.stat{background:#f8fafc;border:1px solid var(--border);border-radius:10px;padding:10px 12px}.sq{width:8px;height:8px;border-radius:2px;display:inline-block;margin-right:5px;flex-shrink:0}.rev-cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,270px);gap:12px}.rev-box{border:1px solid var(--border);border-radius:10px;padding:12px;display:flex;flex-direction:column;gap:6px}.rev-group,.rev-machine{display:flex;flex-direction:column;gap:3px;margin-bottom:6px}.code{font-size:.62rem;font-weight:600;min-width:26px;text-align:center;padding:3px 4px;border-radius:6px;background:#eff6ff;color:#1e40af}.code.dryer{background:#fef3c7;color:#b45309}.notice.info{background:#eff6ff;color:#1d4ed8}.dash-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;flex-wrap:wrap}.shop-tabs{display:flex;gap:4px;flex:1;min-width:0;overflow-x:auto;background:#fff;border:1px solid var(--border);border-radius:10px;padding:4px}.shop-tabs button{border:none;background:none;color:#64748b;white-space:nowrap;min-height:34px}.shop-tabs button.active{background:#eff6ff;color:var(--primary);font-weight:600}.empty-dash{background:#fff;border-radius:12px;border:1px dashed #cbd5e1;padding:32px;text-align:center;color:#94a3b8;margin-bottom:16px}.grid.editing{background:repeating-linear-gradient(90deg,#f1f5f9,#f1f5f9 calc((100% - 132px) / 12),transparent calc((100% - 132px) / 12),transparent calc((100% - 132px) / 12 + 12px));border-radius:8px}.grid-cell{display:flex;flex-direction:column}.grid.editing .grid-cell{outline:2px dashed #94a3b8;border-radius:14px;background:#fff}.drag-bar{height:26px;background:var(--primary);color:#fff;border-radius:12px 12px 0 0;display:flex;align-items:center;justify-content:space-between;padding:0 6px 0 10px;font-size:.7rem;cursor:grab;flex-shrink:0}.drag-bar button{width:20px;height:20px;min-height:20px;padding:0;border-radius:50%;background:#fff;color:#dc2626}.cell-body{flex:1;min-height:0;overflow:auto;border-radius:14px}.cell-body.inert{pointer-events:none}.all-devices{margin-top:20px}.sensor-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.modal-bg{position:fixed;top:0;right:0;bottom:0;left:0;background:#0006;display:flex;align-items:center;justify-content:center;z-index:100;padding:16px}.modal{background:#fff;border-radius:14px;padding:20px;max-width:600px;width:100%;max-height:85vh;overflow-y:auto;outline:none}.picker-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:10px}.picker-item{border:1px solid var(--border);border-radius:10px;padding:12px;display:flex;flex-direction:column;gap:8px;font-size:.82rem}.picker-group{margin-bottom:14px}.flow{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-start}.flow-item{width:280px;max-width:100%}.flow-item.status-size{width:220px}.flow-item.ctrl-size{width:300px}.flow-item.wide{width:720px}.two-col{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:16px;margin-bottom:16px}.monitor{max-height:320px;overflow-y:auto;font-family:ui-monospace,monospace;font-size:.72rem;border:1px solid #f1f5f9;border-radius:8px;margin-top:8px}.mon-row{display:flex;gap:8px;align-items:center;padding:4px 8px;border-bottom:1px solid #f1f5f9;min-width:0}.alert-row{display:flex;align-items:center;gap:12px;margin-bottom:8px;padding:10px 14px}.alert-list{margin-bottom:8px}.stack-item{min-width:0}@media(max-width:860px){.rev-cols{grid-template-columns:1fr}.flow-item,.flow-item.wide,.flow-item.ctrl-size,.flow-item.status-size{width:100%}}.whead{flex-wrap:wrap}.whead-text{flex:1 1 100px}.wtitle{overflow-wrap:anywhere}.status-body svg,.status-body img{max-width:100%;height:auto}.dash-switch{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:12px}.dash-group{display:flex;flex-wrap:wrap;align-items:center;gap:4px;background:#fff;border:1px solid var(--border);border-radius:10px;padding:4px 6px}.dash-cat{font-size:.68rem;font-weight:700;color:#94a3b8;letter-spacing:.04em;text-transform:uppercase;padding:0 6px}.dash-group button{border:none;background:none;color:#475569;min-height:32px;padding:4px 10px;font-size:.85rem}.dash-group button.active{background:#eff6ff;color:var(--primary);font-weight:600}.dash-group .cnt{margin-left:6px;font-size:.65rem;background:#f1f5f9;color:#64748b;border-radius:99px;padding:1px 6px}.section-head{height:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:2px solid var(--primary);padding:0 4px;font-weight:700;color:var(--primary);font-size:.95rem}.section-head .icon-btn{width:26px;height:26px;min-height:26px}.manager-list{display:flex;flex-direction:column;gap:8px;margin:8px 0 12px}.manager-row{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap;border:1px solid var(--border);border-radius:10px;padding:8px}.manager-row.new{background:#f8fafc}.manager-row label{min-width:140px}.btn-col{display:flex;flex-direction:column;gap:2px}.pick-cat{display:flex;flex-direction:column;gap:4px;margin-bottom:6px}.order-list{padding-left:18px}.order-list li{display:flex;align-items:center;gap:6px;padding:2px 0}.view-grid{display:grid;gap:18px}.view-grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.view-block{background:#fff;border:1px solid var(--border);border-radius:14px;padding:12px;min-width:0}.view-head{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;border-bottom:1px solid #f1f5f9;padding-bottom:8px;margin-bottom:6px}@media(max-width:1100px){.view-grid.cols-2{grid-template-columns:1fr}}.grid-wrap{width:100%;min-width:0}.content{overflow-x:hidden}.flow-board{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px;min-height:40px}.flow-cell{min-width:0;overflow:auto}.flow-cell.full{grid-column:1 / -1;height:36px}.flow-cell.wide{grid-column:span 2}@media(max-width:1400px){.view-grid.cols-2 .flow-cell.wide{grid-column:1 / -1}}.wl-card{container-type:inline-size;gap:10px;height:auto;min-height:100%}.wl-card.is-stale .wl-big{color:#64748b}.wl-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.wl-logo{font-size:1.6rem;line-height:1}.wl-demo{background:#e0f2fe;color:#0369a1;font-weight:700;font-size:.72rem;padding:3px 10px;border-radius:999px;letter-spacing:.04em}.wl-conn{display:inline-flex;align-items:center;gap:6px;font-size:.8rem;font-weight:600}.wl-conn .dot{width:9px;height:9px}.wl-conn.ok{color:#15803d}.wl-conn.warn{color:#b45309}.wl-conn.bad{color:#64748b}.wl-main{display:grid;grid-template-columns:minmax(170px,38%) 1fr;gap:16px;align-items:start}.wl-left{display:flex;justify-content:center}.wl-tank{width:100%;max-width:280px;height:auto;overflow:visible}.wl-tank .wl-body{stroke:#94a3b8;stroke-width:1.5}.wl-tank .wl-outline{stroke:#64748b;stroke-width:2}.wl-tank .wl-metal{fill:#cbd5e1;stroke:#94a3b8}.wl-tank .wl-water{transition:transform .9s cubic-bezier(.4,0,.2,1),fill .4s}.wl-tank.is-stale .wl-water{opacity:.75}.wl-tank .wl-tick line,.wl-tank .wl-axis{stroke:#94a3b8}.wl-tank .wl-tick text{font-size:9px;fill:#475569}.wl-tank .wl-thr line{stroke:#ef4444;stroke-width:1.2;stroke-dasharray:4 3}.wl-tank .wl-thr rect{fill:#fee2e2;stroke:#fca5a5}.wl-tank .wl-thr text{font-size:8.5px;fill:#b91c1c;font-weight:600}.wl-pct{font-size:34px;font-weight:800;fill:#fff;paint-order:stroke;stroke:#0369a159;stroke-width:3px}.wl-pct.dark{fill:#0f172a;stroke:#fff}.wl-right{display:flex;flex-direction:column;gap:10px;min-width:0}.wl-nums{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.wl-big{font-size:1.7rem;font-weight:800;line-height:1.1}.wl-big.muted-num{color:#334155}.wl-cap{font-size:.78rem;color:var(--muted)}.wl-sep{width:1px;align-self:stretch;background:var(--border)}.wl-status{margin-left:auto;font-weight:800;font-size:.85rem;padding:6px 14px;border-radius:8px;color:#fff;letter-spacing:.03em}.wl-ok{background:#16a34a}.wl-warn{background:#d97706}.wl-info{background:#2563eb}.wl-bad{background:#dc2626}.wl-off{background:#64748b}.wl-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:10px}.wl-tile{display:flex;gap:10px;align-items:flex-start;border:1px solid var(--border);border-radius:12px;padding:10px 12px;background:#fff}.wl-tile-ic{width:34px;height:34px;flex:none;border-radius:9px;background:#e0f2fe;display:inline-flex;align-items:center;justify-content:center;font-size:1rem}.wl-tile.up .wl-tile-ic{background:#ffedd5}.wl-tile-t{font-size:.74rem;color:#334155;font-weight:600}.wl-tile-v{font-size:1.25rem;font-weight:800;color:#0284c7;line-height:1.25}.wl-tile.up .wl-tile-v{color:#c2410c}.wl-tile-s{font-size:.7rem;color:var(--muted)}.wl-hist{border:1px solid var(--border);border-radius:12px;padding:10px 12px}.wl-hist-head{flex-wrap:wrap;align-items:center;margin-bottom:6px}.wl-hist-head .seg{flex:0 1 auto}.wl-chart{position:relative;width:100%}.wl-chart svg{display:block;touch-action:pan-y}.wl-chart-empty{height:120px;display:flex;align-items:center;justify-content:center}.wl-grid line{stroke:#eef2f7}.wl-grid text,.wl-xt,.wl-unit{font-size:10px;fill:#64748b}.wl-chart .wl-thr line{stroke:#ef4444;stroke-dasharray:4 3}.wl-thr-t{font-size:9.5px;fill:#b91c1c}.wl-hover{stroke:#94a3b8;stroke-dasharray:3 3}.wl-tip{position:absolute;top:4px;width:150px;background:#0f172a;color:#fff;border-radius:8px;padding:6px 8px;font-size:.74rem;pointer-events:none}.wl-tip-2{color:#fdba74}.wl-foot{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}.wl-note{flex:1 1 320px;background:#fffbeb;border:1px solid #fcd34d;color:#92400e;border-radius:10px;padding:8px 10px;font-size:.76rem}.wl-empty{align-items:flex-start}.warn-text{color:var(--warn)}@container (max-width: 620px){.wl-main{grid-template-columns:1fr}.wl-tank{max-width:220px}.wl-status{margin-left:0}.wl-big{font-size:1.4rem}}.wl-settings{max-width:760px}.wl-settings h3{font-size:.98rem;margin:16px 0 8px;padding-top:10px;border-top:1px solid var(--border)}.wl-shapes{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}.wl-shape{display:flex;flex-direction:column;align-items:center;gap:4px;background:#fff;border:1.5px solid var(--border);border-radius:12px;padding:10px;color:var(--text);font-size:.82rem;min-height:78px}.wl-shape.on{border-color:#3b82f6;background:#eff6ff;box-shadow:0 0 0 2px #bfdbfe}.wl-shape-ic{font-size:1.6rem}.wl-inline{flex-direction:row;align-items:center;gap:8px}.wl-inline select{width:auto}.wl-n-in{display:flex;align-items:stretch}.wl-n-in input{border-top-right-radius:0;border-bottom-right-radius:0}.wl-n-in em{font-style:normal;display:inline-flex;align-items:center;padding:0 10px;border:1px solid var(--border);border-left:none;border-radius:0 8px 8px 0;background:#f8fafc;color:var(--muted);font-size:.8rem;white-space:nowrap}.wl-n-in input:only-child{border-radius:8px}.wl-approx{background:#eff6ff;color:#1d4ed8;padding:8px 12px;border-radius:8px;margin-top:8px}.wl-table table{width:100%;border-collapse:collapse;margin:6px 0}.wl-table td,.wl-table th{padding:3px 4px;font-size:.8rem;text-align:left}.wl-testrow{display:grid;grid-template-columns:minmax(160px,220px) 1fr;gap:12px;align-items:end;margin:8px 0}.wl-actions{position:sticky;bottom:-20px;background:#fff;padding:12px 0 4px;align-items:center;border-top:1px solid var(--border);margin-top:12px}@media(max-width:560px){.wl-testrow{grid-template-columns:1fr}}.io-modal{max-width:820px}.io-modal h3{font-size:.98rem;margin:16px 0 8px;padding-top:10px;border-top:1px solid var(--border)}.io-row{border:1px solid var(--border);border-radius:10px;padding:10px 12px;margin-bottom:8px;background:#fff}.io-row.off{background:#f8fafc}.io-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.io-head b{min-width:38px}.io-head select{width:auto;min-width:200px}.io-live{margin-left:auto;font-weight:700;color:#0369a1}.io-live.on{color:#fff;background:#16a34a;padding:2px 10px;border-radius:999px}.io-fields{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px 12px;margin-top:8px;align-items:end}.io-test{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-top:8px}@media(max-width:560px){.io-head select{min-width:0;flex:1}}.g-badge{margin:10px auto 2px;width:fit-content;color:#fff;font-weight:800;font-size:.82rem;padding:4px 12px;border-radius:999px;letter-spacing:.02em;animation:g-blink 1.1s ease-in-out infinite}@keyframes g-blink{0%,to{opacity:1}50%{opacity:.35}}@media(prefers-reduced-motion:reduce){.g-badge{animation:none}}.lgauge.g-alarm-low,.lgauge.g-alarm-high{border-radius:12px}.wcard:has(.g-alarm-high){box-shadow:0 0 0 2px #fecaca}.wcard:has(.g-alarm-low){box-shadow:0 0 0 2px #bfdbfe}.g-settings .g-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 10px}.g-alarm-row{display:grid;grid-template-columns:1fr 90px 40px;gap:8px;align-items:center;margin:6px 0;font-size:.85rem}.g-alarm-row input[type=color]{padding:2px;min-height:32px;height:32px}.g-alarm-row input[type=number]{min-height:32px;padding:4px 8px}
