@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');
:root{font-family:'DM Sans',system-ui,Arial,sans-serif;color:#16243a;background:#f2f5f9;font-size:14px;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:not-allowed}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #93c5fd;outline-offset:2px}h1,h2,h3,p{margin-top:0}h1{font-size:29px;letter-spacing:-.75px;margin-bottom:5px}h2{font-size:18px;letter-spacing:-.3px;margin-bottom:5px}h3{font-size:14px;margin-bottom:8px}.mono{font-family:'JetBrains Mono',monospace}.subtle{color:#7c889a}.micro{font-size:11px;color:#8190a5}.eyebrow{font-size:10px;letter-spacing:1.55px;color:#4e85a9;font-weight:800;margin-bottom:7px}.strong{font-weight:800}.topbar{background:#0b1220;color:#f5f7fb;min-height:68px;display:flex;align-items:center;padding:0 clamp(17px,3vw,44px);gap:26px;position:sticky;top:0;z-index:50;box-shadow:0 4px 18px #09101d19}.brand{display:flex;align-items:center;gap:11px;font-size:16px;font-weight:800;white-space:nowrap;letter-spacing:-.4px}.brand-icon{width:35px;height:35px;border-radius:11px;background:linear-gradient(140deg,#34b7d6,#4273cf);display:grid;place-items:center;font-size:19px;box-shadow:0 6px 14px #19b8de30}.nav{display:flex;gap:5px;margin-left:12px}.nav a{padding:11px 15px;border-radius:10px;color:#9eacc0;font-weight:650;white-space:nowrap}.nav a.active,.nav a:hover{background:#20314a;color:white}.nav a.active{box-shadow:inset 0 -2px #42a6f5}.top-right{display:flex;align-items:center;gap:13px;margin-left:auto;font-size:12px;color:#b8c7d9;white-space:nowrap}.live-dot{width:8px;height:8px;border-radius:50%;background:#2bd38c;display:inline-block;margin-right:5px;box-shadow:0 0 9px #23cd8988}.mini-sep{opacity:.3}.link-btn{border:1px solid #41536d;background:transparent;color:#e7f0fa;padding:8px 12px;border-radius:8px}.app-wrap{max-width:1580px;margin:auto;padding:27px clamp(15px,3vw,42px) 60px}.page-title{display:flex;align-items:end;justify-content:space-between;gap:15px;margin-bottom:22px;flex-wrap:wrap}.page-title p{color:#8291a5;font-size:13px;margin:0}.title-badges{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.pill{border:1px solid #dce4eb;border-radius:100px;background:#fff;color:#5c6d80;padding:8px 11px;font-size:11px;font-weight:700}.pill.green{border-color:#bbead4;background:#e9faf1;color:#167c51}.pill.amber{border-color:#f6ddb2;background:#fff9ec;color:#a76b15}.pill.blue{border-color:#c9e3ff;background:#eef6ff;color:#246da8}.demo-bar{margin-bottom:20px;border:1px solid #ffdfaf;background:#fff9eb;border-radius:12px;padding:11px 15px;display:flex;gap:10px;align-items:center;color:#8a5e20;font-size:12px;line-height:1.55}.demo-bar i{font-size:17px;font-style:normal}.demo-bar b{color:#62400a}.demo-bar.online{border-color:#bfebdb;background:#edf9f3;color:#267858}.icon-button{border:1px solid #dae3ee;background:white;color:#49657c;border-radius:9px;padding:9px 11px}.btn{border:1px solid #d6dee9;border-radius:10px;background:white;padding:10px 15px;font-weight:750;color:#35516a;display:inline-flex;align-items:center;justify-content:center;gap:7px;transition:background .15s,border-color .15s}.btn:hover{background:#f1f6fc}.btn.primary{background:#276bcc;color:white;border-color:#276bcc;box-shadow:0 4px 10px #276bcc25}.btn.primary:hover{background:#1559b9}.btn.dark{background:#17283c;color:white;border-color:#17283c}.btn.green{background:#159567;color:white;border-color:#159567}.btn.danger{background:#fff0f0;color:#b73741;border-color:#ffb5b9}.btn.sm{padding:7px 10px;font-size:11px;border-radius:7px}.btn.block{width:100%}.card{background:#fff;border:1px solid #e0e7ef;border-radius:16px;box-shadow:0 4px 16px #213a5510;padding:21px;min-width:0}.section-head{display:flex;align-items:start;justify-content:space-between;gap:10px;margin-bottom:18px}.section-head p{color:#8998aa;font-size:12px;margin:0}.section-head h2{margin-bottom:5px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:18px}.stat{position:relative;overflow:hidden}.stat-icon{position:absolute;right:18px;top:18px;color:#83a5c8;font-size:22px}.stat-val{font-size:31px;font-weight:800;letter-spacing:-1.4px;margin-top:14px}.stat-foot{font-size:11px;color:#8b9aab;margin-top:8px}.stat-label{font-size:12px;color:#5f7488;font-weight:700}.stat-accent{height:4px;background:#48a8e9;border-radius:5px;width:38px;margin-top:15px}.stat-accent.green{background:#2ac889}.stat-accent.orange{background:#f6ad43}.stat-accent.purple{background:#9e87f5}.two-col{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(295px,1fr);gap:17px;margin-bottom:18px}.two-col.equal{grid-template-columns:1fr 1fr}.chart{width:100%;height:278px;display:block;overflow:visible}.chart-area{fill:#3f95ee18}.chart-grid{stroke:#e7edf4;stroke-width:1}.chart-text{font-size:10px;fill:#92a0b0;font-family:system-ui}.legend{display:flex;gap:22px;flex-wrap:wrap;color:#718399;font-size:11px;margin-top:5px}.legend i{display:inline-block;width:9px;height:9px;border-radius:3px;margin-right:6px;background:#2f8de1}.legend i.orange{background:#f3a34a}.weather-feature{padding:18px;background:linear-gradient(125deg,#124b95,#4395ca);border-radius:14px;color:white;display:flex;justify-content:space-between;align-items:center;gap:10px}.weather-feature .big{font-size:45px;font-weight:800;letter-spacing:-2px}.weather-feature .condition{font-size:12px;opacity:.82}.weather-icon{font-size:53px}.weather-mini{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin-top:15px}.weather-mini>div{background:#f5f8fc;border-radius:9px;padding:11px 5px;text-align:center}.weather-mini b,.weather-mini span{display:block;font-size:11px}.weather-mini span{color:#94a3b5;font-size:10px;margin-bottom:6px}.weather-footer{font-size:10px;color:#9ba8b9;margin:12px 0 0;line-height:1.5}.table-wrap{overflow:auto}.table{border-collapse:collapse;width:100%;text-align:left;min-width:540px}.table th{padding:12px;color:#8290a3;background:#f4f7fb;font-size:11px;font-weight:800;white-space:nowrap}.table td{border-bottom:1px solid #edf0f4;color:#485a70;padding:13px 12px;font-size:12px}.table tr:last-child td{border-bottom:none}.table strong{color:#23354b}.progress-track{width:100%;height:7px;border-radius:10px;background:#eaf0f5;overflow:hidden}.progress-track span{height:100%;display:block;background:linear-gradient(90deg,#5a9ee7,#2bd3bd);border-radius:10px}.status{border-radius:6px;padding:5px 8px;font-size:10px;font-weight:800;display:inline-flex;align-items:center;gap:5px}.status.on{background:#e4f8ef;color:#17916b}.status.off{background:#eef2f6;color:#79879a}.status.manual{background:#fff0dd;color:#b4771c}.status.alert{background:#ffe9e9;color:#c14948}.units-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.unit-row{display:flex;justify-content:space-between;align-items:center;border:1px solid #e3e9f1;border-radius:11px;padding:12px;gap:10px}.unit-row strong{font-size:12px}.unit-row small{display:block;color:#9ba7b6;font-size:10px;margin-top:5px}.unit-row .reading{text-align:right;font-size:17px;color:#293f57;font-weight:800}.alarm-strip{border:1px solid #f0d6bf;background:#fff8ef;border-radius:12px;display:flex;align-items:center;gap:14px;padding:12px 15px;margin-bottom:18px;flex-wrap:wrap}.alarm-chip{border-radius:6px;background:#d84a50;color:white;padding:6px 10px;font-weight:800;font-size:12px}.alarm-chip.orange{background:#ea9141}.alarm-chip.yellow{background:#e7bd38;color:#594819}.alarm-message{font-size:12px;color:#825b34;flex:1}.alert-list{display:grid;gap:9px}.alert-item{padding:13px;background:#fff8f4;border:1px solid #fbe4d9;border-radius:10px;font-size:12px;color:#a46f4d}.alert-item strong{display:block;color:#99513e;margin-bottom:4px}.hmi-body{background:#eff1f4;min-height:calc(100vh - 68px)}.hmi-body .app-wrap{max-width:none}.hmi-subtabs{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:16px}.hmi-tab{padding:11px 16px;border-radius:9px 9px 0 0;border:1px solid #ccd3db;background:#e2e5e9;color:#435269;font-weight:650}.hmi-tab.active{background:#fff;color:#162a3e;font-weight:800;border-bottom:2px solid #2b8ddc}.hmi-time-status{margin-left:auto;color:#8494a5;font-size:11px}.hmi-layout{display:grid;grid-template-columns:minmax(0,2.25fr) minmax(275px,.95fr);gap:15px;align-items:start}.industrial{background:#fafbfc;border:1px solid #d6dce3;border-radius:11px;padding:18px;min-width:0}.industrial-title{font-size:12px;font-weight:800;color:#687789;letter-spacing:.9px;margin-bottom:15px}.floor-row{display:grid;grid-template-columns:55px 1fr;gap:11px;align-items:center;margin-bottom:12px}.floor-name{font-size:11px;color:#74869a;font-weight:850;display:flex;align-items:center;gap:9px}.floor-name:after{content:'';height:1px;background:#cbd3db;flex:1}.floor-grid{display:grid;gap:8px}.floor-grid.f3{grid-template-columns:1fr 1fr 2.3fr}.floor-grid.f2{grid-template-columns:repeat(5,1fr)}.floor-grid.f1{grid-template-columns:repeat(3,1fr) 1.65fr}.room-tile{position:relative;min-height:174px;border:1px solid #b8c3cf;background:#eff2f5;border-radius:6px;padding:11px;text-align:left;color:#26394a;display:flex;flex-direction:column;align-items:start;box-shadow:inset 0 1px white;transition:border .15s,background .15s}.room-tile:hover{background:#e5f0fa;border-color:#428ee4}.room-tile.selected{border:2px solid #3b8cde;box-shadow:0 0 0 2px #72b4ff33}.room-tile.hot{background:#fff3e9}.room-tile.server{background:#e0e7ed}.room-code{font-size:13px;font-weight:900}.room-type{font-size:10px;color:#8293a6;margin-top:1px}.room-temp{font-size:24px;letter-spacing:-.7px;font-weight:900;margin-top:8px}.room-temp.hot{color:#c16d23}.room-info{font-size:10px;color:#7e8fa2;margin-top:3px}.unit-chips{margin-top:auto;display:flex;gap:5px;flex-wrap:wrap;padding-top:12px}.unit-chip{display:flex;flex-direction:column;justify-content:center;align-items:center;border:2px solid #263645;color:white;background:#263645;border-radius:5px;min-width:52px;padding:5px 6px;font-size:10px;font-weight:800;line-height:1.2}.unit-chip.off{background:#7d8c9c;border-color:#7d8c9c}.unit-chip.manual{border-color:#f3bb23}.unit-chip.alert{border-color:#e64f54}.plan-bottom{display:flex;gap:18px;font-size:10px;color:#8392a2;margin-top:10px;flex-wrap:wrap}.plan-bottom b{font-size:15px;margin-right:4px}.side-stack{display:grid;gap:13px}.face-unit{padding:12px;border:1px solid #e0e6eb;background:#fff;border-radius:9px;margin:9px 0}.face-unit:first-child{margin-top:0}.face-head{display:flex;justify-content:space-between;gap:6px;align-items:center}.face-actions{display:flex;gap:7px;flex-wrap:wrap;align-items:center;margin-top:12px}.face-actions .btn{padding:7px 10px;font-size:11px}.group-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.group-grid .btn{font-size:11px;padding:12px 6px}.field-label{display:block;font-size:11px;font-weight:800;color:#78899c;margin-bottom:7px}.select,.input{border:1px solid #d3dce6;border-radius:9px;background:#fff;padding:10px 11px;color:#30475e;min-width:0}.select.full,.input.full{width:100%}.toggle-row{display:flex;justify-content:space-between;align-items:center;gap:15px;border-bottom:1px solid #e3e9ee;padding:12px 0;font-size:13px}.toggle-row input[type=checkbox]{width:18px;height:18px;accent-color:#267cd4}.form-columns{display:grid;grid-template-columns:1fr 1fr;gap:25px}.subhead{font-weight:800;color:#677c8e;font-size:12px;letter-spacing:.9px;margin:27px 0 12px}.days-tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:15px}.days-tabs button{padding:10px 15px;border:1px solid #dce3eb;border-radius:9px;background:#fff;color:#65798d;font-weight:750}.days-tabs button.active{background:#226dbf;color:white;border-color:#226dbf}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.modal-backdrop{position:fixed;inset:0;background:#101a2ab8;display:grid;place-items:center;z-index:100;padding:15px}.modal{width:min(510px,100%);background:#fff;border-radius:18px;padding:25px;box-shadow:0 25px 80px #0006}.modal .field-label{margin:12px 0 5px}.modal-actions{display:flex;justify-content:end;gap:10px;margin-top:23px}.remote-body{background:#101216;color:#edf1f5;min-height:calc(100vh - 68px)}.remote-body .app-wrap{max-width:1240px}.remote-head{text-align:center;margin:5px 0 25px}.remote-head h1{color:white}.remote-head p{color:#96a0b1}.remote-head .pill{background:#1d2834;color:#add7fe;border-color:#314255}.remote-layout{display:grid;grid-template-columns:minmax(290px,.9fr) minmax(350px,1.1fr);gap:45px;align-items:start;margin-top:23px}.remote-side .dark-card{background:#1d222a;color:#d9e0e9;border:1px solid #303b46;border-radius:15px;padding:20px;margin-bottom:16px}.remote-side .dark-card h2{color:white}.remote-side .dark-card p{font-size:12px;color:#93a1b3}.remote-side .select{background:#151b23;border-color:#425269;color:#e5effb}.remote-side .status{margin-top:8px}.remote-side .label-value{border-bottom:1px solid #36404e;padding:12px 0;display:flex;justify-content:space-between;font-size:12px;color:#99aabe}.remote-side .label-value strong{color:#f0f7ff}.remote-control-wrap{display:flex;flex-direction:column;align-items:center;gap:13px}.remote-shell{background:linear-gradient(140deg,#f9f9f5,#d9ddd9);padding:24px;border-radius:39px;width:min(385px,100%);box-shadow:0 26px 55px #0007,inset 0 3px #ffffff; color:#111c19;border:1px solid #fff}.remote-screen{background:linear-gradient(145deg,#b5c9ad,#a9c2a5);height:188px;border-radius:14px;border:3px solid #91aa8d;padding:14px;color:#1b3420;font-family:'JetBrains Mono',monospace;box-shadow:inset 0 3px 8px #6a8a6e30}.screen-top,.screen-bottom{display:flex;justify-content:space-between;font-size:11px}.screen-temp{font-size:74px;text-align:center;font-weight:650;line-height:1.35;letter-spacing:-5px}.screen-temp sup{font-size:24px;letter-spacing:0;vertical-align:top;position:relative;top:19px}.screen-bottom{font-size:10px;justify-content:center;gap:8px}.screen-mode{text-align:right;font-size:10px;margin-top:7px}.remote-device-label{text-align:center;color:#192c2b;font-weight:850;margin:16px 0 2px}.remote-device-detail{text-align:center;font-size:10px;color:#8d9da5;margin-bottom:17px}.remote-buttons{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.remote-button{height:56px;border-radius:15px;border:1px solid #ffffff;background:linear-gradient(#fefefe,#dee1df);box-shadow:0 3px 0 #bbc1bd,0 6px 9px #0002;color:#203347;font-size:13px;font-weight:850}.remote-button:active{transform:translateY(2px);box-shadow:0 1px 0 #bbc1bd}.remote-button.power.active{background:linear-gradient(#23bc65,#178448);color:#fff;border-color:#1ba253}.remote-button.power.off{background:linear-gradient(#d45a64,#a92c42);color:#fff}.remote-button.plusminus{font-size:27px}.remote-button.manual{grid-column:1/4;border:2px solid #4e9afb;height:54px}.remote-device-foot{text-align:center;color:#8795a6;font-size:11px;line-height:1.65;max-width:390px}.remote-body .demo-bar{background:#20252b;border:1px solid #544a31;color:#dbc18b}.remote-body .demo-bar.online{border-color:#276049;color:#90dcba}.remote-body .demo-bar b{color:#fff0cb}.remote-body .page-title,.remote-body .alarm-strip{display:none}.remote-body .status.on{background:#153c2d}.remote-body .status.manual{background:#513f26}.remote-body .status.off{background:#354150}.toast-stack{position:fixed;right:18px;bottom:18px;z-index:120;display:grid;gap:9px}.toast{max-width:370px;border-radius:11px;background:#21334b;color:white;font-size:12px;padding:12px 15px;box-shadow:0 12px 30px #12203055}.toast.error{background:#a3383f}.auth-area{display:flex;align-items:center;gap:7px}.help-line{font-size:11px;color:#94a1b2;line-height:1.7}.foot-note{text-align:center;margin-top:34px;color:#9ba7b5;font-size:11px}.busy{opacity:.65;pointer-events:none}.user-tag{color:#cfe2fa;font-size:11px;max-width:120px;overflow:hidden;text-overflow:ellipsis}.empty{padding:25px;text-align:center;color:#8b9aad;font-size:12px}.notice{padding:13px;border-radius:9px;background:#f0f6fe;color:#47769c;border:1px solid #d5e9fc;font-size:12px}.divider{height:1px;background:#e7edf3;margin:15px 0}.remote-body .divider{background:#3e4751}@media(max-width:1160px){.top-right .mini-sep,.top-right .header-conditions{display:none}.hmi-layout{grid-template-columns:1fr}.side-stack{grid-template-columns:repeat(2,1fr)}.side-stack>.industrial:last-child{grid-column:1/-1}.floor-grid.f2{grid-template-columns:repeat(5,1fr)}.two-col{grid-template-columns:1fr 1fr}}@media(max-width:900px){.topbar{flex-wrap:wrap;gap:9px;min-height:66px;padding:9px 16px}.brand{font-size:14px}.nav{order:3;width:100%;margin:0;justify-content:center}.nav a{padding:9px 15px}.top-right{font-size:11px}.stats{grid-template-columns:repeat(2,1fr)}.two-col,.two-col.equal{grid-template-columns:1fr}.remote-layout{grid-template-columns:1fr;gap:20px}.remote-side{order:2;display:grid;grid-template-columns:1fr 1fr;gap:12px}.remote-side .dark-card{margin:0}.remote-control-wrap{order:1}.app-wrap{padding-top:18px}}@media(max-width:640px){.top-right .header-clock,.top-right .user-tag{display:none}.brand{font-size:13px}.nav a{font-size:12px}.app-wrap{padding:18px 11px 50px}.page-title h1{font-size:25px}.card{padding:15px;border-radius:12px}.stats{gap:9px}.stat-val{font-size:25px}.stat{min-height:140px}.weather-mini{grid-template-columns:repeat(5,1fr)}.weather-mini>div{padding:9px 2px}.units-grid{grid-template-columns:1fr}.floorplan-overflow{overflow-x:auto}.floorplan-inner{min-width:780px}.side-stack{grid-template-columns:1fr}.side-stack>.industrial:last-child{grid-column:auto}.form-columns,.form-grid{grid-template-columns:1fr}.hmi-time-status{width:100%;margin:0}.industrial{padding:13px}.remote-side{grid-template-columns:1fr}.remote-shell{width:min(370px,100%);padding:20px}.remote-screen{height:177px}.remote-device-foot{max-width:350px}.remote-head h1{font-size:24px}}


/* ================== HMI DENAH STATUS + HEATMAP ==================
   Status unit: hijau (ON), abu-abu (OFF). Suhu: estimasi model, bukan sensor.
   Tambahan CSS ini sengaja ada di akhir agar menimpa warna denah sebelumnya.
*/
.hmi-body .floor-grid { gap: 9px; }
.hmi-body .room-tile {
  min-height: 188px;
  padding: 11px;
  border-radius: 11px;
  box-shadow: 0 2px 8px rgba(25,50,72,.08), inset 0 1px rgba(255,255,255,.7);
  transition: background .18s, border-color .18s, transform .18s, box-shadow .18s;
  isolation: isolate;
}
.hmi-body .room-tile.room-on {
  background: linear-gradient(165deg,#e0f9eb 0%,#f1fff7 100%);
  border: 2px solid #53bd86;
}
.hmi-body .room-tile.room-off {
  background: linear-gradient(165deg,#e8edf2 0%,#f4f6f8 100%);
  border: 2px solid #aebaca;
}
.hmi-body .room-tile.room-on:hover { background: #d0f3df; border-color:#19a566; transform:translateY(-2px); }
.hmi-body .room-tile.room-off:hover { background: #e1e9ef; border-color:#7b91aa; transform:translateY(-2px); }
.hmi-body .room-tile.selected { outline: 3px solid #387fdf; outline-offset: 2px; box-shadow: 0 5px 18px #2a67b32b; }
.room-topline { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:5px; width:100%; }
.room-topline .room-code { color:#19354b; font-size:13px; }
.room-power {
  display:inline-flex; align-items:center; gap:5px;
  padding:4px 6px; border-radius:999px;
  font-size:9px; letter-spacing:.1px; line-height:1; font-weight:900;
  white-space:nowrap;
}
.room-power.on { color:#08643b; background:#b4edcf; }
.room-power.off { color:#536477; background:#d4dce6; }
.room-power i { width:6px; height:6px; display:block; border-radius:50%; background:currentColor; }
.hmi-body .room-type { color:#597080; font-size:10px; line-height:1.3; margin-top:5px; }
.temp-badge {
  display:inline-flex; align-items:baseline; gap:7px;
  max-width:100%; padding:7px 9px; margin-top:9px;
  border-radius:9px; border:1px solid transparent;
  box-shadow: 0 2px 6px rgba(0,0,0,.045);
}
.temp-number { font-family:'JetBrains Mono',monospace; font-size:21px; font-weight:900; letter-spacing:-.9px; line-height:1.1; }
.temp-caption { font-size:8px; font-weight:850; white-space:nowrap; opacity:.85; letter-spacing:.3px; }
.temp-cool { background:#b8f4ce; border-color:#50c980; color:#08653b; }
.temp-comfortable { background:#c3f5e9; border-color:#53cdb6; color:#075f57; }
.temp-moderate { background:#fff3ba; border-color:#e4c963; color:#75540d; }
.temp-warm { background:#ffdfb8; border-color:#f3a35b; color:#9b4713; }
.temp-hot { background:#ffd1cf; border-color:#ed8984; color:#aa2524; }
.hmi-body .room-info { color:#61758a; font-size:10px; margin-top:5px; }
.hmi-body .unit-chips { gap:5px; padding-top:9px; width:100%; }
.hmi-body .unit-chip {
  border-radius:6px; min-width:54px; padding:5px 7px;
  box-shadow:0 1px 4px #12263a15;
  font-size:10px; border:2px solid transparent;
}
.hmi-body .unit-chip.on { background:#1d9f69; color:#fff; border-color:#137a50; }
.hmi-body .unit-chip.off { background:#8694a6; color:#fff; border-color:#6e7f91; }
.hmi-body .unit-chip.manual { border-color:#ffb81b; }
.hmi-body .unit-chip small { font-size:9px; opacity:.95; margin-top:1px; }
.plan-bottom {
  display:flex; gap:8px 13px; align-items:center; flex-wrap:wrap;
  margin-top:15px; padding:12px;
  border:1px solid #dde5ed; border-radius:9px; background:#fff;
  color:#52657a; font-size:10px;
}
.legend-label { font-weight:900; letter-spacing:.6px; font-size:9px; color:#304f68; }
.temp-scale-label { margin-left:8px; }
.map-key { display:inline-flex; align-items:center; gap:5px; font-weight:650; white-space:nowrap; }
.map-key-dot { width:11px; height:11px; border-radius:4px; display:inline-block; border:1px solid #0002; }
.key-on { background:#1d9f69; }.key-off { background:#8694a6; }.key-manual { background:#ffb81b; }
.key-cool { background:#55cb87; }.key-comfort { background:#53cdb6; }.key-moderate { background:#f4ce59; }
.key-warm { background:#f3a35b; }.key-hot { background:#e45b55; }
@media(max-width:1160px){.hmi-body .room-tile{min-height:184px}}
@media(max-width:640px){.hmi-body .room-tile{min-height:180px}.temp-number{font-size:20px}}


/* ========= RZKY STUDIO · VISUAL SYSTEM V3 =========
   Dashboard = editorial/analitik biru-putih
   HMI = dua tingkat industrial control
   Remote = konsol gelap dengan aksen hijau
   Pembacaan ruang berupa ESTIMASI, bukan sensor fisik
*/
.topbar-dashboard {
  background:linear-gradient(105deg,#fafcff 0%,#edf6ff 100%);
  border-bottom:1px solid #cce0f4; box-shadow:0 4px 16px rgba(27,72,116,.075);
  color:#173353; min-height:82px;gap:22px;
}
.dash-header-identity { display:flex;align-items:center;gap:12px;min-width:230px; }
.dash-header-logo {display:grid;place-items:center;width:44px;height:44px;font-size:22px;border-radius:14px;
  color:#fff;background:linear-gradient(140deg,#145cba,#48a7ee);box-shadow:0 6px 18px #347ad732; }
.dash-brand-copy {display:flex;flex-direction:column;gap:4px;white-space:nowrap;}
.dash-brand-copy b {font-size:17px;letter-spacing:-.65px;line-height:1.05;}
.dash-brand-copy small {font-size:9px;letter-spacing:1.1px;font-weight:850;color:#6284a4;}
.topbar-dashboard .nav {padding:5px;border:1px solid #d3e5f6;border-radius:14px;gap:4px;margin-left:0;background:#e6f1fc;}
.topbar-dashboard .nav a {color:#53708d;font-size:12px;padding:10px 15px;border-radius:10px;}
.topbar-dashboard .nav a.active, .topbar-dashboard .nav a:hover {background:white;color:#1760a2;box-shadow:0 3px 9px #3570aa21;}
.topbar-dashboard .nav a.active {border:0;}
.topbar-dashboard .top-right {color:#42607a;font-size:11px;gap:9px;}
.topbar-dashboard .dash-weather-dot {color:#1d9c80;font-size:14px;}
.topbar-dashboard .link-btn {color:#1a658f;border:1px solid #c3d9ef;background:white;}
.topbar-dashboard .user-tag {color:#375777;}
.topbar-dashboard .db-connection {color:#266c56;}
/* HMI header: separate top telemetry and bottom navigation */
.topbar-hmi {display:block;padding:0;min-height:0;background:#132a3b;border-bottom:3px solid #0ea892;box-shadow:0 6px 18px #16263129;}
.hmi-header-primary {display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:74px;padding:11px clamp(16px,2.6vw,40px);}
.hmi-header-id {display:flex;align-items:center;gap:13px;color:#f6fbff;}
.hmi-header-symbol {display:grid;place-items:center;width:43px;height:43px;border-radius:9px;background:#19485c;border:1px solid #36788d;color:#6be4d1;font-size:27px;}
.hmi-header-id span:last-child {display:flex;flex-direction:column;gap:4px;}
.hmi-header-id b {font-size:15px;letter-spacing:1.25px;}
.hmi-header-id small {font-size:10px;letter-spacing:1.2px;color:#8fb1c3;}
.hmi-header-telemetry {display:flex;align-items:center;gap:12px;color:#bed7e4;font-size:11px;flex-wrap:wrap;}
.hmi-system-indicator {background:#173f45;border:1px solid #2b736b;color:#82ead6;padding:8px 10px;border-radius:6px;font-size:10px;font-weight:850;letter-spacing:.65px;}
.hmi-system-indicator i {display:inline-block;border-radius:50%;width:7px;height:7px;background:#4cdcaa;margin-right:6px;}
.hmi-header-telemetry .user-tag {color:#bbd6ec;}
.hmi-header-telemetry .link-btn {background:#1e4053;border-color:#39708c;}
.hmi-header-bottom {display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:47px;padding:5px clamp(16px,2.6vw,40px);background:#0b1d2a;border-top:1px solid #24475b;}
.hmi-header-section,.hmi-header-location {color:#7fa7bd;font-size:10px;font-weight:850;letter-spacing:1.5px;white-space:nowrap;}
.hmi-header-section span {color:#317e89;padding:0 4px;}
.topbar-hmi .nav {margin:0;gap:8px;}
.topbar-hmi .nav a {padding:10px 17px;color:#a7bbc9;border-radius:7px;font-size:12px;}
.topbar-hmi .nav a.active,.topbar-hmi .nav a:hover {background:#17485a;color:#a4fff0;box-shadow:inset 0 -2px #21d3ad;}
/* Remote header: monochrome control console */
.topbar-remote {background:#15191e;border-bottom:1px solid #38423e;min-height:77px;padding:0 clamp(15px,3vw,42px);box-shadow:0 9px 24px #080c0c4d;}
.remote-header-inner {width:100%;display:flex;align-items:center;gap:20px;justify-content:space-between;min-height:77px;}
.remote-header-identity {display:flex;align-items:center;gap:12px;color:#f4f9f7;flex-shrink:0;}
.remote-header-power {width:44px;height:44px;background:#1b3e31;border:1px solid #338d60;color:#83f4aa;border-radius:50%;display:grid;place-items:center;font-size:25px;box-shadow:0 0 0 4px #1b2a23;}
.remote-header-identity span:last-child {display:flex;flex-direction:column;gap:5px;}
.remote-header-identity b {font-size:15px;letter-spacing:1.1px;}
.remote-header-identity small {font-size:9px;color:#90ad9c;letter-spacing:1.15px;}
.remote-header-nav .nav {margin:0;padding:4px;border:1px solid #343f3c;border-radius:999px;gap:0;background:#1e2523;}
.remote-header-nav .nav a {font-size:11px;padding:10px 15px;border-radius:999px;color:#9eaaa5;}
.remote-header-nav .nav a.active,.remote-header-nav .nav a:hover {background:#276a4c;color:#e4ffef;box-shadow:none;}
.remote-header-telemetry {display:flex;align-items:center;gap:10px;color:#b5c8ba;font-size:11px;white-space:nowrap;}
.remote-header-telemetry .remote-online-dot {width:8px;height:8px;border-radius:50%;background:#60db9e;box-shadow:0 0 0 4px #58bd8e24;flex-shrink:0;}
.remote-header-telemetry .user-tag {color:#a4ccb3;}
.remote-header-telemetry .link-btn {color:#ccf3db;border:1px solid #3a7459;background:#20392b;}
/* Dashboard room intelligence visualization */
.room-insight-legend {display:flex;flex-wrap:wrap;gap:10px 15px;align-items:center;margin-bottom:15px;font-size:10px;color:#61748a;font-weight:700;}
.room-insight-legend>span {display:inline-flex;align-items:center;gap:6px;}
.room-insight-legend i {display:inline-block;width:10px;height:10px;border-radius:4px;border:1px solid #0001;}
.room-insight-legend i.key-on {background:#21a56e;}
.room-insight-legend i.key-off {background:#95a3b4;}
.room-insight-legend i.key-cool {background:#57c98d;}
.room-insight-legend i.key-moderate {background:#eac65c;}
.room-insight-legend i.key-hot {background:#e56a65;}
.room-insight-legend .room-temp-legend {margin-left:auto;gap:5px;}
.room-insights-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;}
.room-insight {min-width:0;border:1px solid #dce6ef;border-radius:14px;background:linear-gradient(160deg,#fff 0%,#f8fbff 100%);padding:12px;box-shadow:0 4px 13px #2f5b7510;}
.room-insight-heading {display:flex;justify-content:space-between;align-items:start;gap:7px;}
.room-insight-identity {display:flex;align-items:center;gap:7px;min-width:0;}
.room-insight-icon {width:28px;height:28px;border-radius:8px;background:#eaf4fd;color:#387bba;display:grid;place-items:center;flex-shrink:0;font-size:15px;}
.room-insight-identity>div {display:flex;flex-direction:column;gap:1px;min-width:0;}
.room-insight-identity b {font-size:12px;color:#24415e;}
.room-insight-identity small {font-size:9px;color:#8494a8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:126px;}
.room-insight-power {display:inline-flex;gap:4px;align-items:center;font-size:9px;font-weight:850;white-space:nowrap;border-radius:100px;padding:4px 7px;}
.room-insight-power i {width:6px;height:6px;border-radius:50%;background:currentColor;}
.room-insight-power.on {background:#e0f7e9;color:#18804f;}
.room-insight-power.off {background:#edf0f4;color:#758395;}
.room-insight-center {display:flex;align-items:center;gap:10px;margin:12px 0 9px;}
.room-insight-temperature {display:flex;align-items:baseline;gap:1px;font-weight:900;font-size:26px;letter-spacing:-1px;line-height:1.1;padding:7px 9px;border-radius:9px;border:1px solid transparent;font-family:'JetBrains Mono',monospace;}
.room-insight-temperature span {font-size:13px;letter-spacing:0;}
.room-insight-condition {display:flex;flex-direction:column;gap:3px;min-width:0;}
.room-insight-condition b {color:#38546c;font-size:12px;}
.room-insight-condition small {font-size:10px;color:#8b9bad;}
.room-insight-temperature.temp-cool {background:#d8f9e6;color:#086f41;border-color:#b2eec9;}
.room-insight-temperature.temp-comfortable {background:#d9f7f0;color:#0a766e;border-color:#aae4d5;}
.room-insight-temperature.temp-moderate {background:#fff3c9;color:#8d650a;border-color:#f2d982;}
.room-insight-temperature.temp-warm {background:#ffe4cd;color:#a24d14;border-color:#fac18d;}
.room-insight-temperature.temp-hot {background:#ffe0dd;color:#ba2c2a;border-color:#f2a9a3;}
.room-insight-thermometer {position:relative;background:#edf0f5;border-radius:999px;height:9px;overflow:visible;}
.room-insight-thermometer-fill {height:100%;border-radius:999px;transition:width .4s ease;}
.room-insight-thermometer-fill.temp-cool {background:linear-gradient(90deg,#3ab982,#64d69a);}
.room-insight-thermometer-fill.temp-comfortable {background:linear-gradient(90deg,#39c6a4,#79ddcd);}
.room-insight-thermometer-fill.temp-moderate {background:linear-gradient(90deg,#dab74c,#f9d96c);}
.room-insight-thermometer-fill.temp-warm {background:linear-gradient(90deg,#e88c44,#efb169);}
.room-insight-thermometer-fill.temp-hot {background:linear-gradient(90deg,#e3695c,#d94e55);}
.room-insight-needle {position:absolute;top:-3px;width:3px;height:15px;background:#253e58;border-radius:3px;transform:translateX(-50%);box-shadow:0 0 0 2px #fff;}
.room-insight-range {display:flex;justify-content:space-between;color:#9aa8b6;font-size:9px;margin-top:6px;font-family:'JetBrains Mono',monospace;}
@media(max-width:1350px){
  .topbar-dashboard .dash-header-identity {min-width:0;}
  .dash-brand-copy small {display:none;}
  .topbar-dashboard .top-right .header-conditions {display:none;}
  .hmi-header-location {display:none;}
  .remote-header-telemetry .header-conditions {display:none;}
}
@media(max-width:1020px){
  .topbar-dashboard {gap:12px;flex-wrap:wrap;padding:12px 16px;}
  .topbar-dashboard .nav {margin-left:auto;order:initial;width:auto;}
  .topbar-dashboard .top-right {width:100%;justify-content:flex-end;order:3;}
  .hmi-header-primary {flex-wrap:wrap;}
  .hmi-header-bottom {flex-wrap:wrap;}
  .hmi-header-section {display:none;}
  .topbar-hmi .nav {width:100%;justify-content:center;}
  .remote-header-inner {flex-wrap:wrap;padding:10px 0;gap:10px;}
  .remote-header-telemetry {margin-left:auto;}
}
@media(max-width:660px){
  .topbar-dashboard .dash-header-identity {width:100%;}
  .topbar-dashboard .nav {order:2;width:100%;justify-content:space-around;}
  .topbar-dashboard .nav a {padding:10px 12px;}
  .topbar-dashboard .top-right {margin:0;justify-content:space-between;}
  .topbar-hmi .hmi-header-id b {font-size:12px;}
  .topbar-hmi .hmi-header-id small {font-size:8px;}
  .hmi-header-telemetry {width:100%;justify-content:space-between;}
  .hmi-header-telemetry .header-clock {display:inline;}
  .hmi-header-bottom {padding:5px 8px;}
  .topbar-remote .remote-header-identity b {font-size:12px;}
  .topbar-remote .remote-header-identity small {font-size:8px;}
  .remote-header-nav {order:3;width:100%;}
  .remote-header-nav .nav {width:100%;justify-content:space-around;}
  .remote-header-nav .nav a {padding:9px 12px;}
  .remote-header-telemetry .header-clock {display:inline;}
  .room-insights-grid {grid-template-columns:1fr;}
  .room-insight-legend .room-temp-legend {margin-left:0;flex-wrap:wrap;}
}


/* ============== RZKY STUDIO — UNIFIED DESIGN SYSTEM ============== */
:root{--brand-navy:#12253c;--brand-blue:#216bd1;--brand-cyan:#20b5c6;--brand-green:#1ea66d;--brand-border:#dbe5f0;--brand-canvas:#f3f7fc;--brand-muted:#647b94;}
html{scroll-padding-top:118px;}
body,.hmi-body,.remote-body{background:var(--brand-canvas)!important;color:#1b334c!important;min-height:100vh;}
.topbar.topbar-unified{padding:0!important;display:block!important;min-height:0!important;background:rgba(255,255,255,.98)!important;border-bottom:1px solid #dce7f2!important;color:#19354d!important;box-shadow:0 8px 28px rgba(31,71,110,.075)!important;backdrop-filter:blur(16px);}
.unified-main{min-height:78px;max-width:1690px;margin:0 auto;padding:12px clamp(15px,3vw,46px);display:flex;align-items:center;gap:clamp(16px,2.8vw,42px);}
.unified-brand{display:flex;align-items:center;gap:11px;flex-shrink:0;color:#153653;text-decoration:none;}
.unified-logo{display:grid;place-items:center;width:47px;height:47px;flex-shrink:0;border-radius:15px;background:linear-gradient(140deg,#126cbb,#22b6cf);box-shadow:0 7px 17px rgba(28,128,204,.22);color:#fff;font-size:26px;}
.unified-brand-copy{display:flex;flex-direction:column;gap:3px;line-height:1.1;white-space:nowrap;}
.unified-brand-copy strong{font-size:16px;letter-spacing:-.6px;font-weight:900;}
.unified-brand-copy strong span{color:#1574c6;}
.unified-brand-copy small{font-size:9px;letter-spacing:2px;font-weight:800;color:#8099b0;}
.topbar-unified .nav{margin:0;padding:5px;display:flex;gap:3px;flex-shrink:0;border-radius:14px;background:#edf3f9;border:1px solid #e0e9f2;}
.topbar-unified .nav a{padding:10px clamp(10px,1.3vw,17px);font-size:12px;font-weight:800;color:#6b8195;border-radius:10px;white-space:nowrap;transition:background .18s,color .18s,box-shadow .18s;}
.topbar-unified .nav a.active,.topbar-unified .nav a:hover{background:#fff!important;color:#1768b7!important;box-shadow:0 2px 9px rgba(43,99,162,.11)!important;border:0;}
.unified-utilities{margin-left:auto;display:flex;align-items:center;gap:11px;color:#647e98;font-size:11px;min-width:0;white-space:nowrap;}
.unified-weather{display:flex;align-items:center;gap:8px;min-width:0;}
.unified-weather i{font-style:normal;font-size:14px;color:#16a987;}
.unified-utilities .header-clock{font-size:10px;color:#52718c;padding:9px 11px;border-radius:10px;background:#f0f6fa;border:1px solid #e1ebf3;}
.topbar-unified .auth-area{display:flex;gap:7px;align-items:center;}
.topbar-unified .user-tag{color:#5a7290;max-width:118px;}
.topbar-unified .db-connection{display:inline-flex;align-items:center;color:#167a58;font-size:10px;}
.topbar-unified .link-btn{background:#eaf3ff;color:#1a64a8;border:1px solid #c9def2;border-radius:9px;font-size:11px;padding:8px 11px;}
.unified-subheader{display:flex;justify-content:space-between;align-items:center;gap:15px;max-width:1690px;margin:0 auto;min-height:36px;padding:7px clamp(15px,3vw,46px);border-top:1px solid #edf2f7;font-size:10px;color:#8092a4;}
.unified-context{display:flex;align-items:center;gap:10px;min-width:0;white-space:nowrap;}
.unified-context strong{color:#234c70;font-weight:850;letter-spacing:1.3px;font-size:10px;}
.unified-context-dot{width:8px;height:8px;display:inline-block;flex-shrink:0;background:#1dab86;border-radius:50%;box-shadow:0 0 0 4px #1dab861a;}
.unified-context-sep{color:#b3c2d0;}
.unified-context-location{color:#8398ac;font-size:10px;letter-spacing:1px;font-weight:800;white-space:nowrap;}
.unified-context-location i{font-style:normal;margin:0 7px;color:#b9c8d6;}
.app-wrap,.hmi-body .app-wrap,.remote-body .app-wrap{max-width:1580px!important;margin:0 auto;padding:30px clamp(16px,3vw,46px) 48px;}
.page-title{margin-bottom:21px;}
.page-title h1,.remote-body .page-title h1{font-size:clamp(25px,2.2vw,33px);font-weight:850;letter-spacing:-1px;color:#192f48;margin-bottom:6px;}
.page-title p,.remote-body .page-title p{font-size:13px;color:#7c90a7;line-height:1.6;}
.eyebrow{font-size:10px;letter-spacing:1.6px;color:#4085b8;font-weight:850;}
.card,.industrial{background:#fff;border:1px solid var(--brand-border);box-shadow:0 6px 20px rgba(38,74,109,.045);border-radius:16px;}
.card h2,.industrial h2{color:#1e354f;}
.card .section-head p{color:#8396a8;}
.btn{border-radius:9px;}
.btn.primary{background:#226ec8;border-color:#226ec8;}
.btn.primary:hover{background:#1554a2;}
.pill{border-radius:10px;}
.hmi-body .hmi-tab{border:1px solid #d9e5f0;background:#eaf0f8;border-radius:9px;color:#56728c;padding:11px 17px;font-size:12px;}
.hmi-body .hmi-tab.active{background:#fff;border-color:#8fbae4;color:#165f9f;box-shadow:inset 0 -3px #2b8bdb;}
.hmi-body .industrial-title{color:#46718d;}
.hmi-body .room-tile{box-shadow:0 3px 12px rgba(35,70,105,.07);}
.hmi-body .room-tile.room-on{background:linear-gradient(145deg,#daf9e9,#f4fff8);border-color:#5dc28c;}
.hmi-body .room-tile.room-off{background:linear-gradient(145deg,#e9eef3,#f6f8fa);border-color:#aab8c5;}
.hmi-body .room-tile.selected{outline-color:#318bd3;}
/* Remote page shares the same dashboard shell; only the appliance itself has device styling. */
.remote-body .page-title{display:flex!important;}
.remote-body .remote-layout{margin-top:0;grid-template-columns:minmax(300px,.9fr) minmax(340px,1.1fr);gap:22px;}
.remote-body .remote-side{min-width:0;}
.remote-body .remote-side .dark-card{background:#fff!important;color:#243d56!important;border:1px solid var(--brand-border)!important;box-shadow:0 6px 20px rgba(35,75,105,.055);border-radius:16px;padding:22px;margin-bottom:15px;}
.remote-body .remote-side .dark-card .eyebrow{color:#4085b8;}
.remote-body .remote-side .dark-card h2{color:#1b334e;}
.remote-body .remote-side .dark-card p{color:#7187a0;}
.remote-body .remote-side .select{background:#f7faff;border-color:#d6e3f0;color:#28415c;}
.remote-body .remote-side .label-value{border-bottom:1px solid #ecf1f6;color:#7c90a5;}
.remote-body .remote-side .label-value strong{color:#294966;}
.remote-body .remote-side .status.on{background:#e0f8e9;color:#147b50;}
.remote-body .remote-side .status.off{background:#ecf1f6;color:#64798d;}
.remote-body .remote-side .status.manual{background:#fff1de;color:#a87524;}
.remote-body .remote-control-wrap{background:linear-gradient(155deg,#faffff,#eaf3f9);border:1px solid var(--brand-border);box-shadow:0 5px 20px rgba(42,75,112,.055);border-radius:17px;padding:30px 16px 25px;}
.remote-body .remote-shell{box-shadow:0 21px 42px rgba(17,50,67,.18),inset 0 3px #fff;}
.remote-body .remote-device-foot{color:#778ca1;}
.remote-body .remote-head{display:none;}
.remote-body .page-title .pill{background:#e9f7f2;color:#168462;border-color:#bce7d7;}
.room-insight{border-color:#dce7f1;border-radius:14px;}
.room-insight-temperature{font-size:25px;}
.foot-note{text-align:center;margin:42px auto 0;padding-top:20px;border-top:1px solid #dce6ef;color:#7790a6;font-size:12px;font-weight:700;letter-spacing:.15px;}
/* Full consistency across desktop/tablet/mobile */
@media(max-width:1370px){
  .unified-main{gap:17px;}
  .unified-weather{display:none;}
  .topbar-unified .nav a{padding:10px 12px;}
}
@media(max-width:980px){
  .unified-main{flex-wrap:wrap;min-height:0;gap:10px 15px;}
  .topbar-unified .nav{order:3;width:100%;justify-content:center;}
  .topbar-unified .nav a{flex:1;text-align:center;}
  .unified-utilities{margin-left:auto;}
  .unified-subheader{min-height:30px;}
  .remote-body .remote-layout{grid-template-columns:1fr;}
  .remote-body .remote-side{order:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
  .remote-body .remote-side .dark-card{margin:0;}
  .remote-body .remote-control-wrap{order:1;}
}
@media(max-width:640px){
  .unified-main{padding:11px 12px;gap:9px;}
  .unified-brand-copy strong{font-size:14px;}
  .unified-brand-copy small{font-size:8px;}
  .unified-logo{width:38px;height:38px;border-radius:12px;font-size:21px;}
  .unified-utilities .header-clock,.topbar-unified .user-tag,.topbar-unified .db-connection{display:none;}
  .unified-utilities .link-btn{padding:6px 9px;}
  .topbar-unified .nav{margin:0;gap:2px;padding:3px;border-radius:10px;}
  .topbar-unified .nav a{padding:10px 3px;font-size:11px;}
  .unified-subheader{padding:7px 12px;}
  .unified-context-location{display:none;}
  .unified-context strong{font-size:9px;letter-spacing:.8px;}
  .unified-context span:last-child{font-size:9px;}
  .app-wrap,.hmi-body .app-wrap,.remote-body .app-wrap{padding:20px 12px 42px;}
  .remote-body .remote-side{grid-template-columns:1fr;}
  .remote-body .remote-control-wrap{padding:20px 10px;}
  .remote-body .remote-shell{width:min(365px,100%);}
  .room-insights-grid{grid-template-columns:1fr;}
}
