:root{color-scheme:light;--bg:#edf6fc;--panel:#fbfdff;--ink:#20394d;--muted:#52718a;--border:#bcdcea;--blue:#2178b5;--teal:#0d9c9a;--green:#168d75;--amber:#b58125;--red:#d34c5e;--shadow:0 5px 18px #557d9510;font-family:'Microsoft YaHei','PingFang SC',system-ui,sans-serif;font-size:18px}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:radial-gradient(ellipse at 54% 0,#fff 0,transparent 50%),linear-gradient(#9bbdd912 1px,transparent 1px),linear-gradient(90deg,#9bbdd912 1px,transparent 1px),var(--bg);background-size:auto,40px 40px,40px 40px}body [hidden]{display:none!important}button,input,select{font:inherit}button{border:1px solid #c6dbe9;border-radius:6px;padding:8px 13px;color:var(--ink);background:#f2f8fc;cursor:pointer;transition:background .15s,border-color .15s}button:hover:not(:disabled){background:#e1f1fa;border-color:#79b7d5}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #31a8d1;outline-offset:2px}button:disabled{cursor:not-allowed;opacity:.6}input,select{color:var(--ink);border:1px solid #cadde9;border-radius:6px;background:#fff;padding:10px 12px;min-width:0}input[type=checkbox]{width:17px;height:17px;accent-color:var(--teal)}a{color:inherit;text-decoration:none}.primary{background:linear-gradient(135deg,#288abc,#17729e);color:white;border-color:#277da7;font-weight:600}.primary:hover:not(:disabled){background:#1c78a2}.secondary{background:#eaf4fa}.text-button{border:0;background:none;color:#2682ae;padding:5px 0;font-size:16px}.eyebrow{color:#5f93b0;font-size:16px;letter-spacing:2.1px;font-weight:600}.brand-mark{display:grid;place-items:center;width:42px;height:42px;color:white;background:linear-gradient(140deg,#39b5d0,#2375a8);font-size:33px;font-weight:800;border-radius:10px;line-height:1}#application{min-width:1360px}.topbar{height:87px;display:grid;grid-template-columns:310px 1fr 490px;align-items:center;padding:0 25px;background:#f8fcffdd;border-top:3px solid #34aac7;border-bottom:1px solid var(--border)}.brand{display:flex;gap:11px;align-items:center;font-size:25px;letter-spacing:2px;font-weight:700}.brand small{display:block;font-size:16px;font-weight:600;color:#7e9db0;letter-spacing:2.8px;margin-top:3px}.page-title{text-align:center}.page-title h1{margin:0 0 5px;font-size:27px;letter-spacing:3px;color:#21485f}.page-title>span{font-size:16px;letter-spacing:4px;color:#80a1b5}.header-tools{display:flex;gap:12px;justify-content:flex-end;align-items:center;font-size:16px;color:#6e8ca1}.header-tools button{padding:6px 10px;font-size:16px}.header-tools time{font-variant-numeric:tabular-nums}.navigation{display:flex;justify-content:space-between;align-items:center;height:48px;padding:0 26px;border-bottom:1px solid #d4e5ef;background:#f1f8fd}.navigation>div{display:flex;gap:22px}.navigation button{border:0;border-radius:0;background:none;font-size:16px;height:48px;padding:0 5px;color:#688aa1}.navigation button.active{color:#2179a7;border-bottom:3px solid #2da2c6;font-weight:700}.connection{display:flex;align-items:center;gap:7px!important;font-size:16px;color:#7b96a9}.connection i,.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#c9a25d;flex:none}.connection i.connected{background:#21a589}.summary{display:grid;grid-template-columns:repeat(5,1fr);gap:13px;padding:16px 24px 11px}.summary-card{background:linear-gradient(120deg,#ffffffdc,#f4faff);border:1px solid var(--border);border-radius:9px;padding:12px 20px;box-shadow:var(--shadow);position:relative;overflow:hidden;display:grid;grid-template-columns:1fr auto;align-items:center}.summary-card:after{content:'';position:absolute;width:80px;height:80px;border:1px solid #92bdd51c;border-radius:50%;right:-12px;top:-23px}.summary-card>span{font-size:16px;color:#7090a5}.summary-card strong{font-size:31px;font-weight:600;color:#307fb4;grid-row:span 2;line-height:1.1}.summary-card strong small{font-size:16px;font-weight:400;margin-left:6px;color:#8ba5b5}.summary-card p{margin:7px 0 0;font-size:16px;color:#8ba3b4}.summary-card.green strong{color:var(--green)}.summary-card.red strong{color:var(--red)}.summary-card.teal strong{color:var(--teal)}.summary-card.muted strong{color:#7890a1}.data-status{display:flex;align-items:center;gap:22px;margin:0 24px 14px;padding:8px 13px;font-size:16px;color:#7b8fa1;background:#f6fbff;border:1px solid #dae7ef;border-radius:5px}.data-status>span:first-child{flex:1}.status-dot{margin-right:6px}.status-dot.green{background:#21a589}.status-dot.amber{background:#cc9e4b}.workspace{display:grid;grid-template-columns:286px minmax(0,1fr);gap:19px;padding:0 24px 24px;align-items:start}.main-content{min-width:0}.station-panel{border:1px solid #cbdfe9;border-radius:9px;background:linear-gradient(150deg,#e6f2fa,#f5fbff 60%);box-shadow:var(--shadow);overflow:hidden;position:sticky;top:15px}.station-heading{display:flex;gap:10px;align-items:center;padding:17px 15px 11px}.station-heading h2{margin:0;font-size:20px;flex:1}.station-heading>span{font-size:16px;background:#d7eef3;color:#43829a;padding:3px 8px;border-radius:15px;white-space:nowrap}.station-heading>button{padding:0;width:28px;height:28px;font-size:24px;line-height:1;color:#4d93b2}.station-search{display:flex;align-items:center;margin:6px 14px 11px;padding:0 10px;border:1px solid #c7dce9;background:#f9fdff;border-radius:6px;color:#75a1b9}.station-search input{width:100%;padding:10px 7px;font-size:16px;background:none;border:0}.station-filters{display:flex;gap:4px;padding:0 14px}.station-filters button{font-size:16px;padding:5px 10px;border-color:transparent;background:none;color:#7e9aad}.station-filters button.active{background:#d7edf4;color:#237ea5}.list-caption{margin:18px 17px 9px;border-left:2px solid #45a9c4;padding-left:8px;font-size:16px;color:#82a4b8}#stations{padding:0 8px 9px;max-height:calc(100vh - 492px);min-height:280px;overflow:auto}.group-toggle{position:sticky;top:0;z-index:2;width:100%;display:flex;justify-content:space-between;gap:6px;text-align:left;font-size:16px;border:0;border-radius:0;background:#edf7fc;padding:10px 7px;color:#698da4}.group-toggle small{font-size:16px;white-space:nowrap}.station-group.folded .group-items{display:none}.station-row{width:100%;margin-bottom:7px;text-align:left;padding:12px 9px;background:transparent;border:1px solid transparent;min-height:83px}.station-row.selected{background:#e0f1f9;border-color:#94c4d9;box-shadow:inset 3px 0 #25a8c7}.station-name{display:flex;align-items:flex-start;gap:7px;line-height:1.6}.station-name strong{font-size:16px;white-space:normal;overflow-wrap:anywhere;flex:1;font-weight:600}.online-badge{flex:none;font-size:16px;padding:1px 4px;margin-top:2px;border-radius:3px}.online-badge.online{background:#d5efe9;color:#258e7c}.online-badge.offline{background:#e0e7ed;color:#8799a7}.device-no{display:block;padding-left:33px;color:#83a0b2;font:16px/1.8 Consolas,monospace;margin-top:4px;overflow-wrap:anywhere}.station-row-foot{display:flex;justify-content:space-between;gap:6px;padding-left:33px;color:#87a0b3;font-size:16px;margin-top:5px}.sidebar-foot{padding:13px;text-align:center;font-size:16px;border-top:1px solid #d7e8f0;color:#89a3b5}.sidebar-collapsed{grid-template-columns:115px minmax(0,1fr)}.sidebar-collapsed .station-heading{justify-content:center;padding:12px 0}.sidebar-collapsed .station-heading h2,.sidebar-collapsed .station-heading>span,.sidebar-collapsed .station-search,.sidebar-collapsed .station-filters,.sidebar-collapsed .list-caption,.sidebar-collapsed .group-toggle,.sidebar-collapsed .device-no,.sidebar-collapsed .station-row-foot,.sidebar-collapsed .sidebar-foot{display:none}.sidebar-collapsed #stations{max-height:calc(100vh - 370px)}.sidebar-collapsed .station-name{display:block}.sidebar-collapsed .online-badge{display:none}.sidebar-collapsed .station-name strong{font-size:16px;font-weight:500}.sidebar-collapsed .station-row{min-height:62px;padding:8px 7px}.sidebar-collapsed .station-group.folded .group-items{display:block}.detail-heading{min-height:70px;display:flex;justify-content:space-between;align-items:flex-start;padding:0 1px 12px;gap:16px}.detail-heading h2{margin:5px 0;font-size:23px;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.detail-heading p{font-size:16px;color:#85a0b2;margin:5px 0}.detail-heading p>span{color:#bfd2df;margin:0 8px}.station-heading-right{text-align:right;padding-top:8px}.tag{display:inline-block;padding:3px 7px;font-size:16px;border-radius:4px;background:#edf4f8;color:#7f9aac;border:1px solid #d9e6ee;white-space:nowrap;font-weight:400}.tag.green{color:#208d79;border-color:#b6dfd3;background:#e6f7f0}.tag.amber{color:#ab8134;border-color:#ead9b6;background:#fcf6e9}.tag.red{color:#c95162;border-color:#edbdc4;background:#fdf0f2}.tag.muted{color:#8497a5;background:#eff3f6}.panel{border:1px solid var(--border);border-radius:9px;background:linear-gradient(135deg,#ffffffed,#f7fbffed);box-shadow:var(--shadow);overflow:hidden}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 17px;border-bottom:1px solid #e2edf4}.panel-heading h3{font-size:18px;font-weight:650;margin:0;display:flex;gap:8px;align-items:center}.panel-heading>span{font-size:16px;color:#8aa3b5}.section-index{font:16px/1 Consolas,monospace;display:inline-grid;place-items:center;width:21px;height:21px;border:1px solid #c9e3ef;color:#4e98b6;background:#eef8fc;border-radius:4px;font-style:normal}.monitor-layout{display:grid;grid-template-columns:minmax(0,1fr) 282px;gap:15px;align-items:start}.process-column{min-width:0}.process-panel{position:relative}.process-svg{width:100%;height:270px;display:block;padding:10px 14px 0}.process-pipe{fill:none;stroke:#328eb5;stroke-width:6;stroke-linejoin:round}.tank-top{fill:#e0f0f9;stroke:#88b5cc;stroke-width:1.5}.tank-front{fill:#f2f9fd;stroke:#89b4c9;stroke-width:1.5}.tank-side{fill:#cfe5f1;stroke:#87b0c7;stroke-width:1.5}.water-line{stroke:#4fa8c8;stroke-width:1.4;fill:none}.grid-bar{stroke:#80a1ad;stroke-width:3}.air-bubble{fill:#79b9d1}.stage-title{fill:#385a73;font-size:20px;font-weight:650}.stage-index{fill:#70a9c7;font:16px Consolas,monospace}.stage-sub{fill:#829fae;font-size:18px}.svg-label{fill:#718fa4;font-size:20px}.diagram-note{fill:#94aab9;font-size:16px}.operations-panel{margin-top:14px}.operation-svg{width:100%;height:195px;display:block;padding:0 12px 7px}.operation-unit>rect:first-child{fill:#f4f9fc;stroke:#cddfe9;stroke-width:1.4}.operation-name{fill:#42647e;font-size:20px;font-weight:600}.operation-value{fill:#839eaf;font-size:20px}.operation-dot{fill:#b1c4cf}.operation-link{fill:none;stroke:#a8c5d8;stroke-width:3}.operation-purpose{fill:#eef6fb;stroke:#d6e5ef}.purpose-label{fill:#7292a9;font-size:18px}.operation-unit.running>rect:first-child{stroke:#66bba8;fill:#edf9f5}.operation-unit.running .operation-dot{fill:#269d86}.operation-unit.running .operation-value{fill:#269d86}.operation-unit.fault>rect:first-child{fill:#fff0f2;stroke:#e6a4b0}.operation-unit.fault .operation-dot{fill:#d45e70}.operation-unit.fault .operation-value{fill:#d45e70}.operation-link.active{stroke:#28a896;stroke-dasharray:7 5;animation:flow 1.4s linear infinite}.equipment-heading{display:flex;justify-content:space-between;align-items:center;margin:17px 1px 10px}.equipment-heading h3{font-size:18px;margin:0}.equipment-heading>span{font-size:16px;color:#8ba5b6}.equipment-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.equipment-card{background:#faffff;border:1px solid #d2e3ed;border-radius:8px;padding:12px 13px;box-shadow:var(--shadow);min-width:0}.equipment-card.fault{background:linear-gradient(160deg,#fff0f3,#fff9fa);border-color:#e6a5b1}.equipment-card-heading{display:flex;align-items:center;justify-content:space-between;gap:5px}.equipment-card-heading h4{font-size:18px;margin:0;white-space:nowrap}.equipment-card-heading .tag{font-size:16px;padding:2px 4px}.equipment-visual{display:flex;justify-content:center;align-items:center;height:70px}.glyph{width:75px;height:64px;fill:none;stroke:#92b4c9;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.glyph.active{stroke:#28a28f}.rotor{transform-origin:45px 32px}.glyph.active .rotor{animation:rotate 2s linear infinite}.fault .glyph{stroke:#d97b8c}.state-row{display:flex;justify-content:space-between;gap:7px;font-size:16px;line-height:1.95;color:#91a8b8}.state-row strong{color:#5b788e;font-weight:500;text-align:right;white-space:nowrap}.state-row .red-text,.red-text{color:#d15a6c!important}.equipment-output{display:flex;align-items:center;justify-content:space-between;gap:5px;border-top:1px solid #e0edf3;margin-top:9px;padding-top:9px;font-size:16px;color:#879eae}.output-toggle{display:flex;gap:8px;align-items:center;padding:3px 7px;font-size:16px;opacity:1!important;background:#edf2f5;color:#8a9fad;border:1px solid #d2e0e9}.output-toggle i{display:inline-block;width:23px;height:12px;background:#b8c8d2;border-radius:20px;position:relative}.output-toggle i:before{content:'';position:absolute;left:2px;top:2px;width:8px;height:8px;border-radius:50%;background:white}.output-toggle.on{color:#379887;background:#edf8f3}.output-toggle.on i{background:#5cbaa4}.output-toggle.on i:before{left:13px}.equipment-time{font-size:16px;color:#9aafbd;line-height:1.5;margin-top:8px;overflow-wrap:anywhere}.equipment-card>.text-button{font-size:16px;margin-top:5px}.station-data{display:grid;gap:13px}.station-data .panel-heading{padding:12px 14px}.water-state{padding:12px 14px;border-bottom:1px solid #e2edf4;display:grid;grid-template-columns:1fr auto;gap:5px}.water-state>span{font-size:16px;color:#7f9bad}.water-state strong{font-size:18px;color:#4e8d9c}.water-state p{grid-column:span 2;margin:4px 0 0;font-size:16px;color:#94acbb}.water-state small{color:#8babbc;margin-left:8px}.water-state.triggered{background:#fff4ed}.water-state.triggered strong{color:#cc8255}.panel-note{font-size:16px;color:#8ba4b5;line-height:1.8;margin:10px 14px 13px}.control-panel>.state-row{padding:0 14px}.control-panel>.state-row:first-of-type{padding-top:8px}.mode-buttons{display:flex;gap:8px;padding:8px 14px}.mode-buttons button{flex:1;padding:7px;font-size:16px}.location-panel h4{margin:0 15px 10px;font-size:16px;line-height:1.8;font-weight:500;color:#66879d}.location-symbol{width:47px;height:47px;border-radius:50%;border:1px solid #a9d0e4;display:grid;place-items:center;margin:13px auto 10px;color:#48a1c0;font-size:32px;background:radial-gradient(#fff,#e8f5fc)}.coordinate{display:grid;grid-template-columns:32px 1fr;gap:6px 10px;margin:10px 16px;padding:11px;border:1px solid #dbe9f1;border-radius:6px;background:#f4f9fc;font-size:16px}.coordinate>span{color:#91aaba}.coordinate strong{font:16px Consolas,monospace;color:#5a87a0}.alarm-item{font-size:16px;padding:10px 14px;color:#c3606f;background:#fff4f5;border-bottom:1px solid #f1dce0}.quiet-state{font-size:16px;color:#7a9b9a;padding:15px}.trend-overview{margin-top:15px}.mini-trends{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;padding:12px 6px 0}.mini-trends article{border-right:1px solid #deebf2;padding:0 8px;min-width:0}.mini-trends article:last-child{border:0}.mini-trends h4{font-size:16px;color:#69899f;font-weight:500;margin:0 0 5px}.history-svg{display:block;width:100%;height:310px}.history-svg.small{height:110px}.chart-empty{display:grid;place-items:center;min-height:100px;color:#99b0be;font-size:16px;background:repeating-linear-gradient(0deg,transparent,transparent 28px,#c0d6e5 28px,#c0d6e5 29px)}.chart-grid{fill:none;stroke:#d7e5ee;stroke-width:1}.chart-axis{font-size:16px;fill:#8ca4b5}.chart-step{fill:none;stroke:#2c9ab8;stroke-width:2}.chart-point{fill:#238fb2}.single-record{font-size:16px;text-align:center;color:#8da8b8;padding-bottom:8px}.section-heading{display:flex;justify-content:space-between;align-items:center;margin:10px 0 17px}.section-heading h2{margin:5px 0;font-size:23px}.section-heading>span{font-size:16px;color:#8aa4b7}.history-controls{display:flex;align-items:flex-end;gap:12px;padding:18px;margin-bottom:16px;flex-wrap:wrap}.history-controls label{display:grid;gap:7px;font-size:16px;color:#7d9bad}.history-controls select{min-width:230px}.history-controls input{width:205px}.history-controls button{padding:10px 14px}.history-chart-panel,.history-table-panel{margin-bottom:16px}.history-chart-panel>.history-svg{padding:12px 20px}.history-foot{display:flex;justify-content:space-between;padding:11px 18px;border-top:1px solid #e0edf4;font-size:16px;color:#8ba6b7}.table-scroll{max-height:500px;overflow:auto}table{border-collapse:collapse;width:100%;font-size:16px;text-align:left}th{position:sticky;top:0;background:#edf6fb;color:#6b8da3;font-size:16px;padding:13px 16px;font-weight:500}td{padding:12px 16px;border-bottom:1px solid #e3edf3;color:#6e8a9e}td strong{font-size:16px;font-weight:500;color:#4b718a}td small{display:block;font:16px/1.8 Consolas,monospace;color:#94acbb}.event-panel{margin-top:18px}.event-row{display:grid;grid-template-columns:160px 1fr 160px;padding:15px 17px;gap:12px;border-bottom:1px solid #e2edf3;font-size:16px}.event-row time,.event-row small{color:#8ca6b8}.alarm-list{padding:10px}.alarm-list+.secondary{margin:4px 14px}.user-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:16px;align-items:start}.customer-row{display:grid;gap:6px;width:calc(100% - 18px);margin:7px 9px;text-align:left;background:#f5faff;border-color:#d8e7f0}.customer-row strong{font-size:16px}.customer-row span,.customer-row small{font-size:16px;color:#88a2b5}.customer-form{padding:20px}.customer-form>h3{font-size:20px;margin:0 0 20px}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.form-grid label{display:grid;gap:7px;font-size:16px;color:#7c9bae}.form-grid small{font-size:16px;color:#9bb0bd}.permission-heading{margin-top:25px}.permission-heading h3{font-size:18px}.permission-heading span{font-size:16px;color:#91a9b9}.permission-tools{display:flex;gap:8px;margin:12px 0}.permission-tools button{font-size:16px}.customer-form>.primary{margin-top:20px}.customer-form .table-scroll{max-height:500px;border:1px solid #dce9f1;border-radius:6px}#customer-error,#auth-error{font-size:16px;color:#c85b6c;line-height:1.8}.empty{padding:28px;text-align:center;font-size:16px;color:#8ca5b5}.large-empty{padding:100px 30px}.panel+.panel{scroll-margin-top:15px}footer{min-width:1360px;display:flex;justify-content:space-between;gap:15px;padding:14px 25px;font-size:16px;color:#94acbb;border-top:1px solid #d6e6ef;background:#f4faff}.auth-screen{min-height:100vh;display:grid;grid-template-columns:1.2fr 1fr;align-items:center;padding:7vw;gap:10vw;background:radial-gradient(ellipse at 20% 20%,#e1f5fc,transparent 60%),#eff6fb}.auth-intro{position:relative;min-height:450px}.auth-intro>.brand-mark{width:58px;height:58px;font-size:45px;margin-bottom:35px}.auth-intro h1{font-size:40px;line-height:1.6;letter-spacing:3px;margin:18px 0;color:#285a76}.auth-intro>p{font-size:16px;color:#83a4b9;letter-spacing:1px}.auth-lines{position:relative;display:flex;gap:15px;margin-top:55px;padding-left:7px}.auth-lines i{display:block;border:1px solid #abd4e7;border-radius:8px;background:linear-gradient(transparent 40%,#d1ebf6 40%);width:94px;height:62px;transform:skewY(-6deg)}.auth-lines i:after{content:'';display:block;width:18px;height:2px;background:#80bdd5;position:relative;left:95px;top:24px}.auth-lines i:last-child:after{display:none}.auth-card{max-width:440px;width:100%;background:#ffffffdc;border:1px solid #d3e6f0;border-radius:16px;padding:35px;box-shadow:0 20px 80px #497d9812}.auth-card h2{font-size:25px;color:#325e78;margin:12px 0}.auth-card>p{color:#89a4b5;font-size:16px;line-height:1.9;margin-bottom:24px}.auth-card form{display:grid;gap:18px}.auth-card label{display:grid;gap:9px;font-size:16px;color:#7091a7}.auth-card input{width:100%;padding:12px 13px;background:#f9fcff}.auth-card label small{font-size:16px;line-height:1.8;color:#91aabb}.auth-card .primary{padding:12px}.auth-card form>p{margin:0}.auth-footer{text-align:center;color:#9ab0be;font-size:16px;margin-top:24px}#toast{position:fixed;bottom:28px;left:50%;transform:translate(-50%,90px);opacity:0;z-index:100;padding:13px 23px;border-radius:8px;background:#2b647f;color:white;font-size:16px;box-shadow:0 10px 30px #285b7a33;max-width:600px;pointer-events:none;transition:.2s}#toast.show{transform:translate(-50%,0);opacity:1}::-webkit-scrollbar{width:5px;height:5px}::-webkit-scrollbar-thumb{background:#a9c9db;border-radius:8px}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes flow{to{stroke-dashoffset:-24}}@media(min-width:2200px){.topbar{height:100px}.page-title h1{font-size:32px}.workspace{grid-template-columns:310px minmax(0,1fr);gap:24px}.monitor-layout{grid-template-columns:minmax(0,1fr) 330px;gap:20px}.process-svg{height:340px}.operation-svg{height:240px}.equipment-card{padding:17px}.equipment-visual{height:90px}.glyph{height:78px;width:94px}.state-row{font-size:16px}.equipment-time{font-size:16px}.station-name strong{font-size:18px}.equipment-heading h3,.panel-heading h3{font-size:20px}.water-state strong{font-size:20px}.water-state{padding:17px}.location-panel h4{font-size:18px}.history-svg.small{height:135px}.summary-card strong{font-size:38px}.summary-card{padding:17px 22px}.sidebar-collapsed{grid-template-columns:125px minmax(0,1fr)}}@media(max-width:1500px){.topbar{grid-template-columns:260px 1fr 420px}.page-title h1{font-size:23px;letter-spacing:2px}.workspace{grid-template-columns:250px minmax(0,1fr);gap:13px}.monitor-layout{grid-template-columns:minmax(0,1fr) 250px;gap:12px}.equipment-card{padding:10px 8px}.equipment-card-heading{display:block}.equipment-card-heading .tag{margin-top:5px}.equipment-visual{height:57px}.glyph{height:53px}.equipment-heading>span{font-size:16px}.state-row{font-size:16px}.history-controls{gap:8px}.history-controls input{width:180px}.sidebar-collapsed{grid-template-columns:110px minmax(0,1fr)}}@media(max-width:900px){.auth-screen{display:block;padding:35px 20px}.auth-intro{min-height:0;max-width:440px;margin:auto}.auth-intro>.brand-mark{margin-bottom:20px}.auth-intro h1{font-size:27px;line-height:1.4}.auth-intro>p{font-size:16px;margin-bottom:25px}.auth-lines{display:none}.auth-card{margin:auto;padding:28px}.auth-intro>.eyebrow{font-size:16px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.equipment-grid.three-loads,.mini-trends.three-loads{grid-template-columns:repeat(3,minmax(0,1fr))}
.state-row,.equipment-output,.panel-note,.station-row-foot,.device-no,.coordinate,.history-foot{font-size:16px}.equipment-time{font-size:16px}.state-row>span,.panel-note,.equipment-time,.diagram-note,.stage-sub,.sidebar-foot,.list-caption,.summary-card p{color:#667f91;fill:#667f91}.state-row strong,.station-row-foot,.device-no{color:#4e6f84}.equipment-card h4{font-size:18px}.station-data .panel-note{font-size:16px}.mini-trends h4{font-size:16px}.equipment-card>.text-button{font-size:16px}.equipment-heading>span{font-size:16px}.chart-axis{fill:#607d92}.station-row-foot{font-size:16px}
.field-time{display:block;font-size:16px;line-height:1.4;color:#718b9d;font-weight:400}.state-row:has(.field-time){min-height:40px}
/* Desktop display: sizes remain readable without browser zoom. */
:root{font-size:16px;--shadow:0 5px 22px #2b89b51a}
body{background-image:radial-gradient(ellipse at 54% 0,#fff 0,transparent 60%),linear-gradient(#6ab6df12 1px,transparent 1px),linear-gradient(90deg,#6ab6df12 1px,transparent 1px);background-color:#edf6fc}
.topbar{height:100px;grid-template-columns:320px 1fr 530px;background:linear-gradient(100deg,#fff,#e9f8ff 55%,#fff);box-shadow:0 2px 20px #4097ba14}
.brand small,.page-title>span{font-size:16px;letter-spacing:2px;color:#567a93}.page-title h1{font-size:30px}
.header-tools{font-size:16px;gap:10px;flex-wrap:wrap}.header-tools button{font-size:16px}
.navigation{height:56px;background:#f8fdff}.navigation button{height:56px;font-size:18px}.connection{font-size:16px;color:#4f7289}
.summary-card>span{font-size:18px;color:#476d86}.summary-card strong{font-size:38px}.summary-card p{font-size:16px;color:#5f7b8f}.summary-card strong small{font-size:16px}
.data-status{font-size:16px;color:#506f85;flex-wrap:wrap;gap:10px 22px;line-height:1.7}
.workspace{grid-template-columns:320px minmax(0,1fr);gap:20px}.sidebar-collapsed{grid-template-columns:150px minmax(0,1fr)}
.station-heading h2{font-size:22px}.station-heading>span{font-size:16px}.station-search input{font-size:16px}.station-filters button{font-size:16px;padding:6px 10px}
.station-name strong{font-size:18px;line-height:1.6}.online-badge{font-size:16px}.device-no{font:16px/1.8 Consolas,monospace;padding-left:0;color:#476b83}.station-row-foot{font-size:16px;padding-left:0;color:#52738b;flex-wrap:wrap}.station-row{min-height:108px;padding:13px 10px}
.group-toggle{font-size:17px;line-height:1.5;flex-wrap:wrap}.group-toggle small{font-size:16px}.sidebar-foot,.list-caption{font-size:16px;color:#55788f}
#stations{max-height:calc(100vh - 540px);min-height:350px}.sidebar-collapsed .station-name strong{font-size:16px}
.detail-heading{min-height:90px}.detail-heading h2{font-size:28px}.detail-heading p{font-size:17px;color:#4c6e85;line-height:1.8}.tag,.equipment-card-heading .tag{font-size:16px;padding:4px 8px}
.panel{border-color:#bcddea;box-shadow:0 4px 20px #3b8da813}.panel-heading{background:linear-gradient(110deg,#e5f6ff,#fbfeff);border-bottom-color:#c9e5f1;padding:15px 17px}.panel-heading h3,.equipment-heading h3{font-size:20px}.panel-heading>span,.equipment-heading>span{font-size:16px;color:#50758d;line-height:1.6}.panel-heading>span{text-align:right}.section-index{font:16px/1 Consolas,monospace;width:26px;height:26px}
.monitor-layout{grid-template-columns:minmax(0,1fr) 320px;gap:18px}.process-svg{height:350px}.operation-svg{height:250px}
.stage-title{font-size:26px}.stage-index{font:20px/1 Consolas,monospace}.stage-sub{font-size:22px;fill:#4d7189}.svg-label{font-size:23px;fill:#4b7189}.diagram-note{font-size:20px;fill:#53788f}
.operation-name{font-size:25px}.operation-value{font-size:23px}.purpose-label{font-size:22px;fill:#4e738c}
.equipment-heading{flex-wrap:wrap;gap:8px}.equipment-grid{gap:12px}.equipment-card{padding:15px 12px}.equipment-card-heading{flex-wrap:wrap;gap:8px}.equipment-card-heading h4{font-size:20px}.equipment-visual{height:80px}
.state-row{font-size:16px;line-height:2.1;color:#56758c;flex-wrap:wrap;gap:0 7px}.state-row strong{color:#345d79}.field-time{font-size:16px;color:#53768e;white-space:normal}.state-row:has(.field-time){min-height:58px}
.equipment-output{font-size:16px;flex-wrap:wrap;gap:8px;color:#52748b}.output-toggle{font-size:16px;padding:5px 9px}.equipment-time{font-size:16px;color:#53758d;line-height:1.7}.equipment-card>.text-button{font-size:16px}
.water-state>span,.water-state p,.water-state small{font-size:16px;color:#52758a}.water-state strong{font-size:20px}.water-state{padding:16px}.panel-note,.station-data .panel-note{font-size:16px;line-height:1.9;color:#526f85}.mode-buttons{flex-wrap:wrap}.mode-buttons button{font-size:16px;padding:9px}.location-panel h4{font-size:17px;color:#476d86}.coordinate{font-size:16px;grid-template-columns:40px 1fr}.coordinate strong{font:16px/1.6 Consolas,monospace}
.alarm-item,.quiet-state{font-size:16px;line-height:1.8}.mini-trends h4{font-size:17px;color:#486e87}.history-svg.small{height:145px}.chart-axis{font-size:17px;fill:#4d7189}.history-svg.small .chart-axis{font-size:23px}.chart-empty,.single-record{font-size:16px;color:#53768f}
.history-controls label,.form-grid label{font-size:16px;color:#4b7088}.history-controls input{width:255px}.history-controls select{min-width:270px}.history-controls{gap:16px}.history-foot{font-size:16px;color:#4d718a;flex-wrap:wrap;gap:10px}
table{font-size:16px}th,td strong{font-size:16px}td small{font:16px/1.8 Consolas,monospace}.table-scroll{max-height:620px}.event-row{font-size:16px;grid-template-columns:200px 1fr 200px}.event-row time,.event-row small{color:#53758d}
.customer-row strong{font-size:18px}.customer-row span,.customer-row small,.form-grid small,.permission-heading span{font-size:16px;color:#55788e}.customer-form>h3{font-size:23px}.permission-heading h3{font-size:20px}.permission-tools button{font-size:16px}
.auth-card>p,.auth-card label,.auth-card label small,.auth-footer{font-size:16px;color:#4d7189}.auth-intro>p{font-size:18px}.auth-card{max-width:490px}.auth-screen{gap:7vw}.eyebrow{font-size:16px;color:#507d99}footer{font-size:16px;color:#52758d;flex-wrap:wrap}#toast{font-size:16px}
@media(min-width:2200px){.workspace{grid-template-columns:360px minmax(0,1fr)}.sidebar-collapsed{grid-template-columns:170px minmax(0,1fr)}.monitor-layout{grid-template-columns:minmax(0,1fr) 370px}.process-svg{height:410px}.operation-svg{height:290px}.state-row{font-size:18px}.station-name strong{font-size:20px}.equipment-time{font-size:16px}.panel-heading h3{font-size:23px}}
@media(max-width:1750px){.topbar{grid-template-columns:265px 1fr 450px}.page-title h1{font-size:26px;letter-spacing:1px}.workspace{grid-template-columns:290px minmax(0,1fr);gap:16px}.sidebar-collapsed{grid-template-columns:150px minmax(0,1fr)}.monitor-layout{grid-template-columns:minmax(0,1fr) 290px;gap:14px}.equipment-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.mini-trends{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:20px}.equipment-heading>span{font-size:16px}.state-row{font-size:16px}.equipment-card-heading{display:flex}.summary-card{padding:14px}.summary-card p{line-height:1.7}.summary-card strong{font-size:34px}.process-svg{height:300px}.operation-svg{height:220px}}

button:disabled{opacity:1;color:#55758b;background-color:#edf4f8}.output-toggle.on:disabled{color:#217c69;background:#e7f7ef}
.stage-index{font:22px/1 Consolas,monospace}.diagram-note{font-size:22px}.chart-axis{font-size:22px}
@media(max-width:1750px){.monitor-layout{grid-template-columns:minmax(0,1fr)}.station-data{grid-template-columns:repeat(2,minmax(0,1fr))}.process-svg{height:340px}.operation-svg{height:250px}}

/* History overview: labels keep their real size outside the scaled plot. */
.mini-trends{gap:14px;padding:18px 16px 4px;grid-template-columns:repeat(auto-fit,minmax(215px,1fr))}
.mini-trends.three-loads{grid-template-columns:repeat(3,minmax(0,1fr))}
.mini-trends article{border:1px solid #c7e1ed;border-radius:10px;padding:14px 14px 10px;background:linear-gradient(145deg,#fff,#f0faff);box-shadow:0 3px 12px #3889af0b}
.mini-trends h4{font-size:18px;font-weight:600;line-height:1.6;color:#305e7a;margin:0 0 12px;overflow-wrap:anywhere}
.mini-history-summary{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px;font-size:16px;color:#56768b;min-height:32px}
.history-record-state{border-radius:5px;padding:4px 7px;line-height:1.5;background:#e9f0f5;color:#42667f}
.history-record-state.record-on{background:#e0f5ee;color:#16775f}.history-record-state.record-unknown{background:#fff3de;color:#8e621d}
.mini-history-plot{display:grid;grid-template-columns:36px minmax(0,1fr);gap:8px;align-items:stretch;margin:12px 0 0}
.mini-history-axis{display:flex;flex-direction:column;justify-content:space-between;padding:3px 0;font-size:16px;line-height:22px;color:#52758c}
.mini-history-plot .history-svg.small{height:114px;min-width:0;overflow:visible}
.mini-history-plot .chart-grid{stroke:#c9e2ee;stroke-width:1;vector-effect:non-scaling-stroke}
.mini-history-plot .chart-step{stroke:#159bb7;stroke-width:2;vector-effect:non-scaling-stroke}
.mini-history-plot .chart-point{fill:#178aaa;stroke:#fff;stroke-width:1;vector-effect:non-scaling-stroke}
.mini-history-range{display:grid;grid-template-columns:1fr 16px 1fr;align-items:center;gap:6px;border-top:1px solid #d9eaf2;padding-top:10px;margin-top:10px;font-size:16px;color:#608093;font-variant-numeric:tabular-nums}
.mini-history-range time{display:flex;flex-direction:column;gap:2px;line-height:1.5}.mini-history-range time:last-child{text-align:right}.mini-history-range strong{font-size:18px;font-weight:600;color:#38627e}
.mini-trends .single-record{text-align:left;line-height:1.6;padding:10px 0 0;color:#56768b}.mini-trends .chart-empty{min-height:158px;border-radius:6px;line-height:1.7;text-align:center;padding:12px}
@media(min-width:2200px){.mini-trends h4{font-size:20px}.mini-history-plot .history-svg.small{height:140px}.mini-trends .chart-empty{min-height:184px}}
.parameter-read-panel{margin:12px 14px;padding:12px;border:1px solid #bfdde9;border-radius:8px;background:#eef9ff}
.parameter-read-panel h4{font-size:18px;margin:0 0 8px}.parameter-read-panel p{font-size:16px;line-height:1.8;color:#496e85;margin:8px 0;overflow-wrap:anywhere}.parameter-read-panel .mode-buttons{padding:0}.parameter-read-panel button{flex-basis:100%;text-align:left}
.equipment-card.control-warning{border-color:#e3a5ad;background:linear-gradient(150deg,#fff7f8,#fff)}
.control-warning-message{margin:9px 0;padding:8px;border-left:3px solid #ce4258;background:#fff0f3;color:#b92e45;font-size:16px;font-weight:600;line-height:1.7;overflow-wrap:anywhere}

.command-feedback-panel{margin:12px 14px;padding:12px;border:1px solid #bddbe7;border-radius:8px;background:#f7fcff;font-size:16px;line-height:1.7}.command-feedback-panel h4{font-size:18px;margin:0 0 8px}.command-result{display:flex;flex-direction:column;gap:4px;padding:10px 0;border-top:1px solid #dbeaf1;overflow-wrap:anywhere}.command-result p{margin:3px 0}.command-result small{font-size:16px;color:#52758a}.command-error{color:#aa3047}.command-error p{background:#fff0f2;padding:6px;border-radius:4px}

/* Suosi desktop: blue industrial surfaces, cyan structure, readable states. */
:root{color-scheme:dark;--bg:#103b60;--panel:#14486f;--ink:#f1faff;--muted:#b4d2e5;--border:#2e94b8;--blue:#5bcaff;--teal:#29ddf3;--green:#3ee88d;--amber:#ffda67;--red:#ff7383;--shadow:0 8px 28px #031d3938}
body{background:radial-gradient(ellipse at 55% 0,#17618c77,transparent 66%),linear-gradient(#44bde009 1px,transparent 1px),linear-gradient(90deg,#44bde009 1px,transparent 1px),var(--bg);background-size:auto,48px 48px,48px 48px}
button{color:var(--ink);border-color:#3799bd;background:linear-gradient(180deg,#1c5d89,#123f65);box-shadow:inset 0 1px #a3e7ff12}
button:hover:not(:disabled){background:#246d98;border-color:#42d6f3;box-shadow:0 0 0 2px #30ceef18}
button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #ffda67;outline-offset:3px}
button:disabled{opacity:1;color:#b5cadc;background:#1b405f;border-color:#527b98;box-shadow:none}
input,select,.auth-card input{background:#0d304e;border-color:#3b86a9;color:var(--ink)}
input::placeholder{color:#9cbdd3}input[type=checkbox]{accent-color:#22d3ee}
.primary{background:linear-gradient(145deg,#208fd4,#176ab2);border-color:#73d6ff;color:white}.primary:hover:not(:disabled){background:#258bc2}.secondary{background:#194e74}
.topbar{background:linear-gradient(110deg,#103357,#15527b,#103357);border-top-color:#24d9fb;border-bottom-color:#3294b8}
.brand,.page-title h1{color:#f4fbff}.brand-mark{background:linear-gradient(135deg,#2dcfff,#237bcb);box-shadow:0 0 22px #22beff30}
.brand small,.page-title>span,.header-tools,.eyebrow{color:#b9deef}.eyebrow{color:#50dbff}
.navigation{background:#0e3356;border-color:#2e6f97}.navigation button{color:#c2dce9}.navigation button.active{color:#31d9ff;border-bottom-color:#31d9ff}
.connection{color:#b8d7e7}.connection i.connected,.status-dot.green{background:#3ee88d;box-shadow:0 0 9px #3ee88d55}.status-dot.amber{background:#ffda67}
.summary-card{background:linear-gradient(125deg,#175780,#113b62);border-color:#358fb3}.summary-card>span,.summary-card p,.summary-card strong small{color:#bcd9e8}.summary-card strong{color:#60d6ff}.summary-card.muted strong{color:#d0dce9}.summary-card:after{border-color:#4be3ff26}
.data-status{background:#103757;border-color:#347c9e;color:#bfdae9}
.station-panel{background:linear-gradient(150deg,#124369,#0c2d4d);border-color:#2f90b3}.station-heading h2{color:#f0fbff}.station-heading>span{background:#155a74;color:#73ebf2}.station-heading>button{color:#8fe7ff}
.station-search{background:#0c304e;border-color:#367b9d;color:#a3d9e9}.station-search input{background:transparent;border:0}
.station-filters button{color:#bed5e5;background:transparent}.station-filters button.active{background:#155b7b;color:#61e5ff;border-color:#277fa3}
.list-caption,.sidebar-foot{color:#abcddd}.sidebar-foot{border-color:#316780}.group-toggle{background:#103654;color:#c5e4ef}
.station-row{background:transparent;border-color:transparent}.station-row:hover:not(:disabled){background:#194d70}.station-row.selected{background:linear-gradient(100deg,#1b6084,#164463);border-color:#39b6d7;box-shadow:inset 4px 0 #32ddfa}
.station-name strong{color:#edf9ff}.device-no,.station-row-foot{color:#afd0e2}.online-badge.online{background:#176451;color:#78ffc2}.online-badge.offline{background:#2e4b64;color:#d0d9e4}
.detail-heading h2{color:#fff;font-size:29px}.detail-heading p{color:#bdd8e8}.detail-heading p>span{color:#7098b1}
.tag{background:#164363;border-color:#3a85a7;color:#d4e9f5}.tag.green{background:#105a4c;color:#6bffb0;border-color:#299676}.tag.amber{background:#5a4d29;color:#ffda67;border-color:#97864e}.tag.red{background:#5a2947;color:#ff8b98;border-color:#d06480}.tag.muted{background:#294c68;color:#c0d4e3}.tag.stopped{background:#4b334e;color:#ff9aa5;border-color:#8b5973}
.panel{background:linear-gradient(135deg,#15517b,#113b61);border-color:#2cadd0;box-shadow:0 5px 22px #031b3324,inset 0 1px #5bdcff10}
.panel-heading{background:linear-gradient(90deg,#17608b44,transparent);border-bottom-color:#2d6d91}.panel-heading h3,.equipment-heading h3{color:#3bdcff;font-size:21px}.panel-heading>span,.equipment-heading>span{color:#bad7e7}.section-index{border-color:#2f89af;background:#164c70;color:#55dfff}
.text-button{color:#62dfff;background:none;border:0;box-shadow:none}.text-button:hover:not(:disabled){background:#24607c44;color:#abf4ff}
.equipment-card{background:linear-gradient(155deg,#17537b,#103859);border-color:#3a9bc1;padding:15px 14px}.equipment-card-heading h4{color:#fff;font-size:22px}.equipment-visual{height:88px}.glyph{height:78px;width:92px;stroke:#6ddcff}.glyph.active{stroke:#4cf1b1;filter:drop-shadow(0 0 6px #37e7b440)}
.equipment-card.fault{background:linear-gradient(150deg,#592b47,#252e51);border:2px solid #ff7287;box-shadow:0 0 22px #ff5f7b20}.fault .glyph{stroke:#ff8b9b}
.equipment-card.control-warning{background:linear-gradient(155deg,#344266,#163e60);border-color:#e27d92}
.state-row{color:#bad6e7;line-height:2.1}.state-row strong{color:#edf8ff;font-weight:650}.state-row strong.state-ok{color:#48ed99}.state-row strong.state-info{color:#3edbff}.state-row strong.state-warning{color:#ffda67}.state-row strong.state-stopped{color:#ff929e}.state-row strong.state-unknown{color:#bed1df}
.state-row .red-text,.red-text{color:#ff7c8f!important}.field-time{color:#adc9dc;font-weight:400}.equipment-time,.equipment-output{color:#b4cfdf}.equipment-output{border-color:#326a8e;padding-top:12px;margin-top:12px}
.output-toggle{min-height:40px;min-width:89px;justify-content:center;color:#f5c5cb;background:linear-gradient(#315c79,#23415b);border-color:#6487a2;font-size:20px;font-weight:700;padding:6px 9px}.output-toggle i{width:32px;height:18px;background:#6a879f}.output-toggle i:before{height:14px;width:14px;top:2px;left:2px;background:#e5eff5}.output-toggle.on{color:#5dffb4;background:linear-gradient(#1b7066,#15524d);border-color:#4bb798}.output-toggle.on i{background:#25cfa2}.output-toggle.on i:before{left:16px}
.output-toggle:disabled{color:#bed0df;background:#294861;border-color:#577791}.output-toggle.on:disabled{color:#6bf2b5;background:#1e514f;border-color:#568b7e}.control-disabled-reason{color:#ffdc78!important}
.water-state{border-color:#2d6e92}.water-state>span,.water-state p,.water-state small{color:#bdd8e7}.water-state strong{color:#4beb9a}.water-state.triggered{background:#5d3f3e}.water-state.triggered strong{color:#ffbc7a}
.panel-note,.coordinate,.coordinate span,.location-panel h4,.history-foot,.permission-heading span,.quiet-state,.event-row small,.empty{color:#bad4e4}.coordinate strong{color:#e7f7ff}.location-symbol{color:#56daf4}
.control-panel>.state-row{font-size:18px}.control-panel>.state-row:first-of-type{margin-top:10px}
.mode-buttons button{min-height:45px;font-size:18px;font-weight:650}.mode-buttons button[aria-pressed=true]{color:#3fe3ff;background:#124b6d;border:2px solid #30cce9}.mode-buttons button[data-control-mode=local][aria-pressed=true]{color:#ffdc6a;border-color:#c5a959;background:#464b42}
.parameter-read-panel,.command-feedback-panel{background:linear-gradient(125deg,#164e74,#103758);border-color:#3c95b8}.parameter-read-panel h4,.command-feedback-panel h4{color:#68e4ff}.parameter-read-panel p,.command-result small{color:#bfdaea}.command-feedback-panel{max-height:430px;overflow:auto}.command-result{border-color:#347597}.command-result>strong{color:#effaff}.command-result>span{color:#ffdf83;font-weight:650}.command-result[data-status=confirmed]>span,.command-result[data-status=unchanged]>span{color:#55f3a4}.command-error{color:#ff9aab}.command-error p,.control-warning-message{background:#5b2e4d;color:#ffb1bc;border-color:#f57691}.command-result.command-error>span{color:#ff92a4}
.tank-top{fill:#1c668e;stroke:#75d3ef}.tank-front{fill:#0d3556;stroke:#78d5ee}.tank-side{fill:#18557d;stroke:#68bedb}.water-line{stroke:#38dcf5}.grid-bar{stroke:#9bd8ec}.air-bubble{fill:#83f0ff}.stage-title{fill:#f1faff}.stage-index{fill:#51d9f7}.stage-sub,.svg-label{fill:#c7e5f4}.diagram-note{fill:#b2d0e3}.process-pipe{stroke:#28d8f5}
.operation-unit>rect:first-child{fill:#12496e;stroke:#438bad}.operation-name{fill:#edfaff}.operation-value{fill:#b9d6e5}.operation-dot{fill:#a7bbcc}.operation-purpose{fill:#123959;stroke:#3b7b9f}.purpose-label{fill:#c3e2ef}.operation-link{stroke:#5896b5}.operation-unit.running>rect:first-child{fill:#135958;stroke:#39c69c}.operation-unit.running .operation-dot{fill:#46eea3}.operation-unit.running .operation-value{fill:#62f3b4}.operation-unit.fault>rect:first-child{fill:#5e2f4e;stroke:#fa7d92}.operation-unit.fault .operation-dot{fill:#ff7d90}.operation-unit.fault .operation-value{fill:#ff9ba8}.operation-link.active{stroke:#3ee8bf}
.mini-trends article{background:linear-gradient(145deg,#174c72,#103657);border-color:#3984a7}.mini-trends h4{color:#e5f6ff}.mini-history-summary,.mini-history-axis,.mini-history-range,.mini-trends .single-record{color:#bcd8e9}.mini-history-range{border-color:#3b6d8e}.mini-history-range strong{color:#e1f6ff}.history-record-state{background:#274f6f;color:#dceaf5}.history-record-state.record-on{background:#155c51;color:#62ffb2}.history-record-state.record-unknown{background:#64512c;color:#ffe090}
.chart-empty{color:#bed6e5;background:repeating-linear-gradient(0deg,transparent,transparent 28px,#5595b426 28px,#5595b426 29px)}.chart-grid,.mini-history-plot .chart-grid{stroke:#387a9c}.chart-axis{fill:#c2dfef}.chart-step,.mini-history-plot .chart-step{stroke:#3ae4f9}.chart-point,.mini-history-plot .chart-point{fill:#6ef3ff;stroke:#154567}.history-foot{border-color:#316c8d}
table{color:#d7eaf5}th{background:#164566;color:#8ce6fa;border-color:#3a7699}td{border-color:#316b8a}td small,.customer-row span,.customer-row small,.form-grid small{color:#b6d3e5}.customer-row{background:#15486d;border-color:#347d9f}.customer-row strong,.customer-form>h3{color:#f2fbff}.form-grid label,.history-controls label{color:#c0dfed}.permission-tools,.permission-heading,.event-row{border-color:#367393}.alarm-item{color:#ffb3c1;background:#522e49;border-color:#b75f78}.quiet-state{color:#57eca7}
.auth-screen{background:radial-gradient(ellipse at 20% 20%,#1b6890,transparent 70%),#10375a}.auth-card{background:linear-gradient(140deg,#17527a,#103b61);border-color:#35bad8;box-shadow:0 20px 70px #02182d55}.auth-card h2,.auth-intro h1{color:#f1fbff}.auth-card>p,.auth-card label,.auth-card label small,.auth-footer,.auth-intro>p{color:#bad9e9}.auth-lines i{background:#31d9ed}
footer{background:#103352;border-color:#2c779b;color:#bad7e7}#toast{background:#155c80;border:1px solid #5accea;color:#f4fbff;max-width:760px;font-size:18px;line-height:1.7;box-shadow:0 12px 35px #001b344f}
@media(min-width:1800px){.state-row{font-size:18px}.process-svg{height:360px}.operation-svg{height:250px}}
@media(min-width:2200px){.process-svg{height:430px}.operation-svg{height:290px}}
@media(prefers-reduced-motion:reduce){.glyph.active .rotor,.operation-link.active{animation:none}button{transition:none}}
.coordinate{background:#103958}.location-symbol{background:radial-gradient(#1f6c91,#123d61)}td,td strong{color:#d7ebf7}.event-row time{color:#b6d4e6}#customer-error,#auth-error{color:#ff99ad}::-webkit-scrollbar-thumb{background:#3c82a5;border-radius:8px}
.state-row>span,.panel-note,.equipment-time,.sidebar-foot,.list-caption,.station-row-foot,.device-no,.summary-card p{color:#bedaea}
.station-data .panel-note{color:#bedaea}

/* Daily desktop workflow: no long sidebar pushing content below blank space. */
.monitor-compact{grid-template-columns:minmax(0,1fr) 300px;grid-template-areas:"toolbar toolbar" "feedback feedback" "process context" "operations context" "equipment equipment" "variables variables";gap:15px;align-items:start}
.station-toolbar{grid-area:toolbar;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:15px 20px}.mode-switch-block{display:flex;align-items:center;gap:16px}.mode-switch-block>span{color:#c1ddec;font-size:18px}
.mode-rocker{display:flex;align-items:center;gap:15px;padding:7px 12px;min-width:255px;border-color:#49b7d7;background:#103858}.mode-track{display:block;width:100px;height:43px;border-radius:24px;border:1px solid #73a5c3;background:#254b64;position:relative;box-shadow:inset 0 3px 9px #001a3655}.mode-thumb{position:absolute;display:grid;place-items:center;left:3px;top:3px;width:54px;height:35px;border-radius:20px;background:linear-gradient(#f4d46e,#ba8c34);color:#172f41;font-size:18px;font-weight:800;box-shadow:0 2px 6px #00152866}.mode-rocker.online .mode-track{background:#115b68}.mode-rocker.online .mode-thumb{left:40px;background:linear-gradient(#66f4ed,#25b8c5)}.mode-switch-copy{display:flex;flex-direction:column;align-items:start;gap:5px;font-weight:700;color:#ffdb77}.mode-switch-copy small{font-size:16px;font-weight:400;color:#bed9e8;max-width:210px;white-space:normal;text-align:left}.mode-rocker.online .mode-switch-copy{color:#63edff}.mode-rocker:disabled{background:#173d59;border-color:#527f9b}
.toolbar-water{display:flex;gap:30px;flex:1;justify-content:center}.toolbar-level{display:grid;grid-template-columns:auto auto;gap:7px 15px;align-items:center}.toolbar-level>span{color:#c2dce9}.toolbar-level strong{color:#54efa1}.toolbar-level small{grid-column:span 2;color:#b6d2e4;font-size:16px}.toolbar-level.triggered strong{color:#ff929e}.toolbar-refresh{display:flex;flex-direction:column;gap:6px;max-width:255px}.toolbar-refresh small{font-size:16px;color:#bad8e7;line-height:1.6}
.monitor-compact>.latest-operation{grid-area:feedback}.latest-operation .panel-heading{padding:10px 17px}.latest-operation .panel-heading h3{font-size:18px}.operation-record{padding:10px 17px}.operation-record>div{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.operation-record strong{font-size:18px}.operation-record time{font-size:16px;color:#bfd6e6}.operation-record b{font-size:18px;color:#ffdb7a}.operation-record.success b{color:#55eda8}.operation-record p{margin:7px 0 0;font-size:16px;color:#c7dce9;line-height:1.7}.operation-history{border-top:1px solid #367695;padding:9px 17px}.operation-history summary{cursor:pointer;color:#8ce9ff;font-size:16px}.operation-history .operation-record{padding:12px 0;border-bottom:1px solid #2d6586}.operation-history .operation-record b{font-size:16px}.operation-history[open]{max-height:350px;overflow:auto}
.monitor-compact>.process-panel{grid-area:process}.monitor-compact>.operations-panel{grid-area:operations;margin:0}.site-context{grid-area:context;display:grid;gap:15px}.site-context .panel-note{color:#bedaea}.site-context .location-symbol{display:none}.site-context .location-panel h4{margin-top:15px}.site-context .coordinate{margin-top:12px}.site-context .panel-heading{padding:12px 14px}.equipment-section{grid-area:equipment;min-width:0}.equipment-section .equipment-heading{margin:5px 0 12px}.equipment-section .equipment-grid{gap:13px}.equipment-section .equipment-card{padding:14px 16px}
.variable-workspace{grid-area:variables}.variable-workspace .panel-heading{padding:16px 19px;align-items:center}.variable-workspace .panel-heading p{margin:7px 0 0;color:#bedaea;font-size:16px;line-height:1.6}.variable-workspace label{display:flex;align-items:center;gap:12px;color:#c1ddea;font-size:16px}.variable-workspace input{width:280px}.variable-table-scroll{max-height:510px;overflow:auto}.variable-workspace table{width:100%;border-collapse:collapse;table-layout:fixed}.variable-workspace th{position:sticky;top:0;z-index:2;background:#184c70}.variable-workspace th:first-child{width:28%}.variable-workspace th:nth-child(2){width:14%}.variable-workspace th:nth-child(3){width:27%}.variable-workspace th:last-child{width:31%}.variable-workspace td,.variable-workspace th{padding:13px 18px;vertical-align:middle;font-size:17px;text-align:left}.variable-workspace td small{display:block;margin-top:7px;font-size:16px;color:#b9d3e4;line-height:1.6}.variable-value{font-weight:650;color:#e6f7ff}.variable-value.unknown{color:#b3c9d9}.variable-actions{display:flex;gap:10px;flex-wrap:wrap}.variable-actions button{font-size:16px;padding:7px 12px}.collection-result.success{color:#60f0ae!important}.history-quick-ranges{display:flex;gap:10px;align-items:center;padding:14px 0;color:#bedaea}.history-quick-ranges button{font-size:16px}#history-context{color:#bddbeb;font-size:18px;margin:8px 0 0}
@media(max-width:1750px){.monitor-compact{grid-template-columns:minmax(0,1fr) 270px}.station-toolbar{flex-wrap:wrap;gap:18px}.toolbar-water{justify-content:flex-start}.toolbar-refresh{max-width:100%;flex-direction:row;align-items:center}.variable-workspace td,.variable-workspace th{padding:12px}.variable-workspace .panel-heading{gap:15px;flex-wrap:wrap}}
@media(min-width:2200px){.monitor-compact{grid-template-columns:minmax(0,1fr) 350px}.variable-table-scroll{max-height:610px}}
.mode-switch-block>span,.toolbar-level>span,.toolbar-level>strong{white-space:nowrap}.mode-switch-block{flex:0 0 auto}.toolbar-water{flex:1 1 370px;min-width:350px}.toolbar-level{flex:0 0 auto;grid-template-columns:minmax(90px,auto) minmax(70px,auto)}
@media(max-width:1750px){.station-toolbar .toolbar-refresh{flex:1 0 100%;max-width:none}.station-toolbar .toolbar-water{flex:1 1 350px;min-width:350px;justify-content:flex-start}.toolbar-refresh small{max-width:520px}}

/* Presentation controls and readable equipment status. */
.header-tools{flex-wrap:wrap;gap:8px}.header-tools time{white-space:nowrap}#account-badge{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.operation-value{font-size:21px}.equipment-card-heading{flex-wrap:wrap;gap:10px}.equipment-card-heading h4{margin:0}.equipment-card-heading .tag{max-width:100%}
.glyph.active .rotor{transform-origin:45px 32px;animation:equipment-spin 1.3s linear infinite}.glyph.active .pump-rotor{transform-origin:45px 38px;animation:equipment-spin 1.5s linear infinite}.glyph.active .pump-flow{stroke-dasharray:5 4;animation:pump-flow .7s linear infinite}.operation-unit.running .operation-dot{animation:run-glow 1.5s ease-in-out infinite}
@keyframes equipment-spin{to{transform:rotate(360deg)}}@keyframes pump-flow{to{stroke-dashoffset:-18}}@keyframes run-glow{50%{opacity:.45}}
.info-dialog,.map-dialog{color:#e4f4ff;background:#123f61;border:1px solid #4ec4e5;border-radius:12px;max-height:90vh;padding:24px;box-shadow:0 16px 90px #00182dbb}.info-dialog{width:520px}.map-dialog{width:min(1100px,92vw)}dialog::backdrop{background:#031827bb}.dialog-heading{display:flex;gap:20px;justify-content:space-between;align-items:center}.dialog-heading h2{margin:0;font-size:24px}.account-details{display:grid;grid-template-columns:100px 1fr;gap:20px;font-size:18px}.account-details dd{margin:0;overflow-wrap:anywhere}.account-details dt{color:#9cd7ef}.map-open{margin:0 15px 16px;width:calc(100% - 30px);color:#79edff}.map-dialog iframe{display:block;width:100%;height:55vh;min-height:300px;border:1px solid #4389a7;border-radius:8px;background:#e9eff2}.map-footer{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:16px;font-size:16px}.map-footer a{color:#69e2ff;text-decoration:underline}
body.presentation-fullscreen #application{position:fixed;inset:0;z-index:50;overflow:auto;background:#123f61}body.presentation-fullscreen{overflow:hidden}:fullscreen{overflow:auto}#application{width:100%}
@media(prefers-reduced-motion:reduce){.glyph.active .rotor,.glyph.active .pump-rotor,.glyph.active .pump-flow,.operation-unit.running .operation-dot{animation:none}}

.map-open{display:block;text-align:center;border:1px solid #49b7d7;border-radius:6px;padding:10px 8px;font-size:17px;line-height:1.5}.map-open:hover{background:#1a6285}.map-open:focus-visible{outline:2px solid #72edff;outline-offset:2px}

.gateway-details{margin:0;padding:6px 18px 12px}.gateway-details>div{padding:12px 0;border-bottom:1px solid #4494af55}.gateway-details>div:last-child{border-bottom:0}.gateway-details dt{font-size:16px;color:#bddbeb;margin-bottom:7px}.gateway-details dd{margin:0;font-size:18px;line-height:1.5;color:#fff;font-weight:600;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;user-select:text}.gateway-details .metadata-missing{color:#c2d4de;font-weight:400}.gateway-panel>.panel-note{padding:0 18px 14px;margin:0}

.control-confirm-dialog{width:min(560px,calc(100vw - 40px))}.control-confirm-dialog h2{margin:0 0 20px;font-size:26px}.confirm-station{font-size:22px;font-weight:700;color:#edfaff;overflow-wrap:anywhere}.confirm-action{font-size:24px;font-weight:700;color:#64e8ff}.confirm-detail{font-size:18px;line-height:1.7;color:#b9dff3}.confirm-actions{display:flex;justify-content:flex-end;gap:16px;margin-top:24px}.confirm-actions button{font-size:20px;min-width:104px;min-height:48px}
