
#myhome-app{--mh-orange:#f97316;--mh-soft:#fff0e5;--mh-bg:#f7f8fa;--mh-ink:#253041;--mh-muted:#778292;--mh-line:#e9edf2;--mh-radius:18px;color:var(--mh-ink);font:14px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;text-align:left;color-scheme:light}
#myhome-app *{box-sizing:border-box}
#myhome-app button,#myhome-app input,#myhome-app select{font:inherit}
#myhome-app button{cursor:pointer}
#myhome-app button:disabled{cursor:not-allowed;opacity:.4}
#myhome-app svg{width:19px;height:19px;flex-shrink:0}
#myhome-app h1,#myhome-app h2,#myhome-app h3,#myhome-app p{margin:0}
#myhome-app .mh-shell{display:grid;grid-template-columns:190px minmax(0,1fr);background:var(--mh-bg);min-height:690px;border:1px solid var(--mh-line);border-radius:22px;overflow:hidden}
#myhome-app .mh-sidebar{padding:27px 13px 18px;background:#fff;border-right:1px solid var(--mh-line);display:flex;flex-direction:column;gap:0}
#myhome-app .mh-brand{display:flex;align-items:center;gap:9px;padding:0 6px;font-weight:750;font-size:25px;letter-spacing:-1px}
#myhome-app .mh-brand small{display:block;font-size:7px;letter-spacing:1.15px;color:var(--mh-muted);margin-top:3px;font-weight:600}
#myhome-app .mh-brand-icon{width:38px;height:38px;background:var(--mh-orange);color:#fff;border-radius:12px;display:grid;place-items:center}
#myhome-app .mh-orange{color:var(--mh-orange)}
#myhome-app .mh-nav-label{font-size:9px;color:#9aa3af;letter-spacing:1.3px;margin:36px 10px 14px}
#myhome-app .mh-nav{display:flex;flex-direction:column;gap:5px}
#myhome-app .mh-nav button{border:0;background:transparent;color:#7c8695;padding:12px 13px;display:flex;align-items:center;gap:12px;text-align:left;border-radius:12px;font-size:12px;font-weight:550;min-height:44px}
#myhome-app .mh-nav button:hover{background:#faf5f0}
#myhome-app .mh-nav button[aria-current="page"]{background:var(--mh-soft);color:var(--mh-orange)}
#myhome-app .mh-nav button svg{width:18px;height:18px}
#myhome-app .mh-nav-divider{height:1px;background:var(--mh-line);margin:16px 10px}
#myhome-app .mh-server{margin-top:auto;padding:15px 10px;background:#f6faf8;border-radius:13px;display:flex;align-items:center;gap:8px;font-size:10px;color:#45675e}
#myhome-app .mh-server small{display:block;color:#8a9e98;font-size:9px;margin-top:3px}
#myhome-app .mh-server>svg{margin-left:auto;width:15px}
#myhome-app .mh-demo-label{font-size:7px;color:#a2a9b1;letter-spacing:.7px;text-align:center;margin-top:13px}
#myhome-app .mh-main{padding:28px 26px 26px;min-width:0}
#myhome-app .mh-header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:27px;padding-right:55px}
#myhome-app .mh-eyebrow{font-size:8px;letter-spacing:1.8px;color:#98a1ae;margin-bottom:5px}
#myhome-app h1{font-size:26px;letter-spacing:-.9px;font-weight:750;line-height:1.25}
#myhome-app h1 span{color:var(--mh-orange)}
#myhome-app .mh-header-right{display:flex;align-items:center;gap:15px}
#myhome-app .mh-online{display:flex;align-items:center;gap:7px;white-space:nowrap;color:#5f8d7d;font-size:10px}
#myhome-app .mh-avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:12px;background:#fff0e5;color:var(--mh-orange);font-size:11px;font-weight:700}
#myhome-app .mh-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#25b18d;flex-shrink:0}
#myhome-app .mh-dot.offline{background:#eb7a77}
#myhome-app .mh-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:24px}
#myhome-app .mh-stat{display:flex;align-items:center;gap:11px;padding:15px;background:#fff;border-radius:var(--mh-radius);border:1px solid #f0f1f4}
#myhome-app .mh-stat-icon{background:#fff4eb;color:var(--mh-orange);width:36px;height:36px;border-radius:11px;display:grid;place-items:center;flex-shrink:0}
#myhome-app .mh-stat strong{font-size:20px;font-weight:700;letter-spacing:-.5px}
#myhome-app .mh-stat small{display:block;color:var(--mh-muted);font-size:10px}
#myhome-app .mh-section-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:22px 0 13px}
#myhome-app h2{font-size:14px;font-weight:650;letter-spacing:-.2px}
#myhome-app .mh-link{border:0;background:transparent;color:var(--mh-orange);font-size:10px;padding:6px 0;display:inline-flex;align-items:center;gap:5px}
#myhome-app .mh-link svg{width:13px;height:13px}
#myhome-app .mh-device-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#myhome-app .mh-device{padding:17px;background:#fff;border-radius:var(--mh-radius);border:1px solid #eff1f4;min-width:0}
#myhome-app .mh-device-head{display:flex;align-items:center;gap:9px}
#myhome-app .mh-device-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:#fff4eb;color:var(--mh-orange);flex-shrink:0}
#myhome-app .mh-device-title{min-width:0;flex:1}
#myhome-app .mh-device-title h3{font-size:13px;font-weight:650;overflow-wrap:anywhere}
#myhome-app .mh-device-title small{font-size:9px;color:#98a2ae}
#myhome-app .mh-switch{border:0;border-radius:20px;width:40px;height:24px;padding:3px;background:#e9edf2;flex-shrink:0;display:flex;align-items:center}
#myhome-app .mh-switch span{display:block;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 4px #25304115;transition:transform .15s}
#myhome-app .mh-switch[aria-checked="true"]{background:var(--mh-orange)}
#myhome-app .mh-switch[aria-checked="true"] span{transform:translateX(16px)}
#myhome-app .mh-device-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:11px 0;color:#8e98a5;font-size:9px}
#myhome-app .mh-device-meta>span:first-child{display:flex;gap:5px;align-items:center}
#myhome-app .mh-remote{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;min-height:90px}
#myhome-app .mh-control{background:#f6f8fa;border:0;border-radius:12px;color:#8392a3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:9px 3px;min-width:0}
#myhome-app .mh-control span{font-size:10px;font-weight:600;color:#526477}
#myhome-app .mh-control small{font-size:8px}
#myhome-app .mh-control.mh-active{background:var(--mh-soft);color:var(--mh-orange)}
#myhome-app .mh-control.mh-active span{color:var(--mh-orange)}
#myhome-app .mh-temp{border-radius:12px;background:#fff7ef;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:7px 4px;gap:3px}
#myhome-app .mh-temp strong{font-size:25px;letter-spacing:-1px;line-height:1.1;color:#57402c}
#myhome-app .mh-temp strong small{font-size:10px;color:#a18b76;letter-spacing:0}
#myhome-app .mh-temp-step{display:flex;align-items:center;justify-content:center;gap:7px;color:#b1a192;font-size:8px}
#myhome-app .mh-temp-step button{border:0;background:transparent;padding:1px 3px;color:#997754;font-size:17px;min-width:22px}
#myhome-app .mh-set{background:var(--mh-orange);color:#fff;border:0;border-radius:7px;padding:4px;width:100%;font-size:8px}
#myhome-app .mh-device-foot{display:flex;align-items:center;gap:5px;color:#a4acb6;font-size:8px;margin-top:11px;border-top:1px solid #f4f5f7;padding-top:8px}
#myhome-app .mh-device-foot svg{width:11px;height:11px}
#myhome-app .mh-device-foot button{margin-left:auto;border:0;background:transparent;color:#99a2ae;padding:0;display:flex}
#myhome-app .mh-scenes{display:flex;gap:10px;flex-wrap:wrap}
#myhome-app .mh-scene{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid var(--mh-line);padding:12px 14px;border-radius:12px;color:#596a7d;font-size:11px;flex:1;white-space:nowrap;justify-content:center}
#myhome-app .mh-scene svg{color:var(--mh-orange);width:17px;height:17px}
#myhome-app .mh-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:18px}
#myhome-app .mh-input,#myhome-app select{border:1px solid #e5e9ef;background:#fff;border-radius:10px;padding:9px 11px;color:#596b7d;min-width:0;max-width:100%;font-size:11px;min-height:38px}
#myhome-app .mh-search{flex:1;min-width:130px}
#myhome-app .mh-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:10px 13px;border-radius:10px;background:var(--mh-orange);color:#fff;border:0;font-size:11px;white-space:nowrap}
#myhome-app .mh-secondary{background:#fff;border:1px solid var(--mh-line);color:#697b8d}
#myhome-app .mh-action svg{width:15px;height:15px}
#myhome-app .mh-muted{color:var(--mh-muted);font-size:11px}
#myhome-app .mh-notice{padding:12px 14px;border-radius:12px;background:var(--mh-soft);color:#a26737;font-size:10px;display:flex;align-items:flex-start;gap:9px;margin-bottom:18px}
#myhome-app .mh-notice svg{width:16px;height:16px}
#myhome-app .mh-tabs{display:flex;gap:6px;padding:4px;background:#eceff3;border-radius:12px;width:fit-content;max-width:100%;flex-wrap:wrap;margin-bottom:20px}
#myhome-app .mh-tabs button{border:0;background:transparent;color:#8190a0;border-radius:8px;padding:8px 15px;font-size:11px}
#myhome-app .mh-tabs button[aria-selected="true"]{background:#fff;color:var(--mh-orange);box-shadow:0 1px 5px #25304106}
#myhome-app .mh-row{display:flex;align-items:center;gap:12px;padding:17px 0;border-bottom:1px solid var(--mh-line);min-width:0}
#myhome-app .mh-row:last-child{border-bottom:0}
#myhome-app .mh-row-info{flex:1;min-width:0}
#myhome-app .mh-row-info strong{font-size:12px;font-weight:600;display:block}
#myhome-app .mh-row-info small{font-size:10px;color:#93a0ae;display:block;margin-top:3px;overflow-wrap:anywhere}
#myhome-app .mh-badge{display:inline-flex;align-items:center;gap:5px;border-radius:7px;background:#eaf8f2;color:#409d7b;font-size:9px;padding:4px 7px;white-space:nowrap}
#myhome-app .mh-badge.mh-off{background:#fff0ee;color:#cc7f74}
#myhome-app .mh-room-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
#myhome-app .mh-room{background:#fff;border:1px solid var(--mh-line);padding:23px;border-radius:var(--mh-radius);text-align:left;color:var(--mh-ink)}
#myhome-app .mh-room>svg{width:30px;height:30px;color:var(--mh-orange);margin-bottom:23px}
#myhome-app .mh-room h3{font-size:17px;font-weight:650;margin-bottom:6px}
#myhome-app .mh-room p{font-size:10px;color:#90a0ae}
#myhome-app .mh-panel{background:#fff;border:1px solid var(--mh-line);padding:21px;border-radius:var(--mh-radius);margin-bottom:15px}
#myhome-app .mh-panel h2{margin-bottom:15px}
#myhome-app .mh-fields{display:grid;grid-template-columns:1fr 1fr;gap:15px}
#myhome-app .mh-fields label{display:flex;flex-direction:column;gap:7px;font-size:10px;color:#798999}
#myhome-app .mh-fields .mh-wide{grid-column:1/-1}
#myhome-app .mh-bottom-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px;flex-wrap:wrap}
#myhome-app .mh-camera{min-height:370px;background:#26313e;border-radius:var(--mh-radius);display:grid;place-items:center;text-align:center;color:#c5ccd6;padding:20px}
#myhome-app .mh-camera svg{width:42px;height:42px;margin-bottom:14px;color:#7e8d9f}
#myhome-app .mh-camera strong{display:block;font-size:14px;font-weight:500}
#myhome-app .mh-camera small{font-size:10px;color:#8d9aaa}
#myhome-app .mh-timeline{display:flex;align-items:center;gap:16px;padding:15px 0;border-bottom:1px solid var(--mh-line)}
#myhome-app .mh-timeline time{font-size:10px;color:#9aa5b2;min-width:38px}
#myhome-app .mh-timeline p{font-size:12px}
#myhome-app .mh-timeline small{font-size:10px;color:#96a1af}
#myhome-app #mh-toast{margin-top:16px;background:#fff4e9;border:1px solid #ffe0c6;color:#a16b3f;border-radius:12px;padding:12px 15px;font-size:11px}
#myhome-app [hidden]{display:none!important}
#myhome-app .mh-dialog-backdrop{position:absolute;inset:0;background:#25304166;display:flex;align-items:flex-start;justify-content:center;z-index:8;padding:85px 20px 25px;backdrop-filter:blur(3px)}
#myhome-app{position:relative}
#myhome-app .mh-dialog{width:450px;max-width:100%;background:#fff;padding:24px;border-radius:22px;box-shadow:0 18px 70px #17202e26}
#myhome-app .mh-dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;gap:12px}
#myhome-app .mh-dialog-head button{background:#f6f8fa;border:0;border-radius:8px;padding:5px;color:#8391a0;display:flex}
#myhome-app .mh-data{display:grid;grid-template-columns:110px 1fr;gap:12px;font-size:11px;margin:18px 0}
#myhome-app .mh-data dt{color:#94a0ae}
#myhome-app .mh-data dd{margin:0;overflow-wrap:anywhere}
#myhome-app .mh-bright{display:flex;flex-direction:column;justify-content:center;gap:9px;border-radius:12px;background:#fff8ee;padding:14px;color:#a9844c;grid-column:span 2;font-size:11px}
#myhome-app input[type="range"]{width:100%;accent-color:var(--mh-orange)}
#myhome-app .mh-empty{padding:32px 15px;text-align:center;color:#95a2b0;font-size:12px}
#myhome-app[data-density="compact"] .mh-device{padding:13px}
#myhome-app[data-density="compact"] .mh-remote{min-height:76px}
#myhome-app[data-density="compact"] .mh-main{padding:22px}
@media(max-width:800px){#myhome-app .mh-shell{grid-template-columns:145px minmax(0,1fr)}#myhome-app .mh-sidebar{padding:23px 9px 15px}#myhome-app .mh-brand{font-size:21px;gap:6px}#myhome-app .mh-brand-icon{width:31px;height:34px}#myhome-app .mh-brand small{font-size:6px}#myhome-app .mh-main{padding:23px 18px}#myhome-app .mh-online{display:none}#myhome-app .mh-header{padding-right:45px}#myhome-app .mh-stat{padding:12px;gap:8px}#myhome-app .mh-stat-icon{display:none}#myhome-app .mh-nav button{font-size:11px;gap:9px;padding:11px}}
@media(max-width:570px){#myhome-app .mh-shell{display:block;min-height:0;border-radius:16px}#myhome-app .mh-sidebar{padding:16px 13px;border-right:0;border-bottom:1px solid var(--mh-line)}#myhome-app .mh-brand{margin-bottom:14px}#myhome-app .mh-nav-label,#myhome-app .mh-server,#myhome-app .mh-demo-label,#myhome-app .mh-nav-divider{display:none}#myhome-app .mh-nav{flex-direction:row;flex-wrap:wrap;gap:4px}#myhome-app .mh-nav button{gap:5px;font-size:10px;padding:7px 8px;min-height:36px}#myhome-app .mh-nav button svg{width:14px;height:14px}#myhome-app .mh-main{padding:22px 14px}#myhome-app .mh-header{padding-right:0}#myhome-app h1{font-size:24px}#myhome-app .mh-summary{gap:7px}#myhome-app .mh-stat{padding:10px 8px}#myhome-app .mh-stat strong{font-size:18px}#myhome-app .mh-stat small{font-size:9px}#myhome-app .mh-device-grid{grid-template-columns:1fr}#myhome-app .mh-remote{min-height:110px}#myhome-app .mh-control span{font-size:12px}#myhome-app .mh-control small{font-size:10px}#myhome-app .mh-device-title h3{font-size:15px}#myhome-app .mh-device-meta,#myhome-app .mh-device-foot{font-size:10px}#myhome-app .mh-set{font-size:11px;padding:7px}#myhome-app .mh-fields{grid-template-columns:1fr}#myhome-app .mh-room-grid{grid-template-columns:1fr}#myhome-app .mh-row{flex-wrap:wrap}#myhome-app .mh-row-info{min-width:120px}#myhome-app .mh-header-right{padding-right:10px}#myhome-app .mh-tabs button{padding:8px 10px}}
#myhome-app .mh-web-device{padding:16px;min-height:0}
#myhome-app .mh-web-device .mh-device-head{gap:9px}
#myhome-app .mh-web-device .mh-device-title h3{font-size:13px}
#myhome-app .mh-web-device .mh-device-icon{width:33px;height:33px}
#myhome-app .mh-edit-device{border:0;background:transparent;padding:4px;color:#98a5b3;display:flex;flex-shrink:0}
#myhome-app .mh-edit-device svg{width:14px;height:14px}
#myhome-app .mh-web-status{display:flex;align-items:center;gap:6px;font-size:10px;color:#8493a4;margin:12px 0}
#myhome-app .mh-web-status strong{margin-left:auto;color:#9a7859;font-weight:500;font-size:10px}
#myhome-app .mh-web-controls{display:flex;align-items:center;flex-wrap:wrap;gap:7px;min-height:44px}
#myhome-app .mh-web-button{border:1px solid #e7edf2;background:#fff;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:10px;padding:8px 10px;color:#73879b;min-height:33px}
#myhome-app .mh-web-button svg{width:14px;height:14px}
#myhome-app .mh-web-button.selected{color:var(--mh-orange);background:var(--mh-soft);border-color:transparent}
#myhome-app .mh-web-temperature{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;background:#f9fafb;border-radius:11px;padding:8px}
#myhome-app .mh-web-temperature>span{display:flex;align-items:center;gap:5px;font-size:9px;color:#8294a5}
#myhome-app .mh-web-temperature>span svg{width:14px;height:14px}
#myhome-app .mh-web-temperature>div{display:flex;align-items:center;gap:8px}
#myhome-app .mh-web-temperature>div button{border:0;background:#fff;color:#a08973;border-radius:6px;width:23px;height:25px;padding:0;font-size:17px}
#myhome-app .mh-web-temperature strong{font-size:21px;letter-spacing:-.5px;font-weight:650;color:#705844;white-space:nowrap}
#myhome-app .mh-web-temperature strong small{font-size:10px;font-weight:400}
#myhome-app .mh-web-set{border:0;border-radius:7px;background:var(--mh-orange);color:#fff;padding:7px 8px;font-size:9px;white-space:nowrap}
#myhome-app .mh-web-range{font-size:10px;color:#8b9bab;display:flex;flex-wrap:wrap;gap:7px;width:100%;align-items:center}
#myhome-app .mh-web-range span{margin-left:auto;color:#b37a4b}
#myhome-app .mh-web-range input{flex-basis:100%}
#myhome-app .mh-web-reading{display:flex;align-items:center;gap:7px;font-size:10px;color:#95a4b3;width:100%}
#myhome-app .mh-web-reading strong{margin-left:auto;color:#637f93;font-size:18px;font-weight:550}
#myhome-app .mh-web-reading svg{width:15px;height:15px}
#myhome-app.mh-hmi-mode .mh-shell{display:block;min-height:0}
#myhome-app.mh-hmi-mode .mh-sidebar,#myhome-app.mh-hmi-mode .mh-header{display:none}
#myhome-app.mh-hmi-mode .mh-main{padding:18px;background:#f7f8fa}
#myhome-app .mh-hmi-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px;flex-wrap:wrap;padding-right:40px}
#myhome-app .mh-hmi-brand{display:flex;align-items:center;gap:8px;color:var(--mh-orange)}
#myhome-app .mh-hmi-brand strong{color:#334457;font-size:15px;font-weight:650}
#myhome-app .mh-hmi-brand>span{font-size:11px;margin-left:7px}
#myhome-app .mh-hmi-bar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#myhome-app .mh-hmi-bar-actions .mh-action{font-size:11px;min-height:38px}
#myhome-app .mh-grid-label{font-size:11px;color:#98a5b2;display:flex;align-items:center;gap:7px}
#myhome-app .mh-grid-label select{font-size:11px;min-height:38px;padding:7px}
#myhome-app .mh-hmi-edit-note{font-size:11px;background:var(--mh-soft);color:#ab744b;padding:10px 13px;border-radius:10px;margin-bottom:12px}
#myhome-app .mh-hmi-grid{display:grid;grid-template-columns:repeat(var(--mh-cols),minmax(0,1fr));grid-template-rows:repeat(var(--mh-rows),minmax(108px,1fr));min-height:396px;gap:12px}
#myhome-app .mh-hmi-tile{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:7px;border:1px solid #e8edf2;background:#fff;color:#8899aa;padding:17px;border-radius:15px;min-width:0;text-align:left;min-height:108px}
#myhome-app .mh-hmi-tile-top{display:flex;align-items:center;justify-content:space-between;gap:7px;width:100%;margin-bottom:8px}
#myhome-app .mh-hmi-tile-top>svg{width:27px;height:27px;color:#879fb4}
#myhome-app .mh-hmi-tile strong{color:#41586c;font-size:16px;font-weight:600;overflow-wrap:anywhere}
#myhome-app .mh-hmi-tile .mh-hmi-device-name{font-size:11px;color:#8e9eae;overflow-wrap:anywhere}
#myhome-app .mh-hmi-tile small{font-size:11px;margin-top:auto;padding-top:7px;color:#91a2b1}
#myhome-app .mh-hmi-tile.mh-hmi-on{background:var(--mh-soft);border-color:#ffe1c6}
#myhome-app .mh-hmi-tile.mh-hmi-on strong,#myhome-app .mh-hmi-tile.mh-hmi-on svg{color:var(--mh-orange)}
#myhome-app .mh-hmi-empty{align-items:center;text-align:center;border:1.5px dashed #dce4eb;background:transparent;color:#bec8d1}
#myhome-app .mh-hmi-empty>svg{width:24px;height:24px;margin-bottom:6px}
#myhome-app .mh-hmi-empty small{margin:0;padding:0;color:#b5c0ca}
#myhome-app .mh-hmi-empty>span{font-size:12px}
#myhome-app .mh-hmi-slot{font-size:9px;color:#9a8777}
#myhome-app .mh-hmi-editing{border-style:dashed}
#myhome-app .mh-hmi-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:15px;font-size:10px;color:#94a4b2;flex-wrap:wrap}
#myhome-app .mh-hmi-footer>span,#myhome-app .mh-hmi-footer>div{display:flex;align-items:center;gap:7px}
#myhome-app .mh-hmi-separator{color:#ccd4dc}
#myhome-app .mh-page-arrow{border:0;border-radius:7px;background:#fff;display:flex;padding:5px;color:#8c9dac}
#myhome-app .mh-dialog-backdrop.mh-editor-modal{padding-top:35px}
#myhome-app .mh-editor-modal .mh-dialog{width:840px}
#myhome-app .mh-editor-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:22px;margin-top:17px}
#myhome-app .mh-editor-fields{margin-top:17px}
#myhome-app .mh-function-header{display:flex;flex-direction:column;gap:4px;margin:20px 0 11px}
#myhome-app .mh-function-header strong{font-size:12px;font-weight:600}
#myhome-app .mh-function-header span{font-size:10px;color:#9ba7b4}
#myhome-app .mh-function-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#myhome-app .mh-function-option{padding:9px 8px;display:flex;align-items:center;gap:7px;border:1px solid #e9edf2;background:#fafcfd;border-radius:9px;flex-wrap:wrap;font-size:10px;color:#72889b}
#myhome-app .mh-function-option input{accent-color:var(--mh-orange);width:14px;height:14px;margin:0}
#myhome-app .mh-function-option svg{width:14px;height:14px}
#myhome-app .mh-function-option small{font-size:8px;color:#b0bac4;margin-left:auto}
#myhome-app .mh-custom-function{display:flex;align-items:center;gap:7px;margin-top:12px}
#myhome-app .mh-custom-function input{flex:1;min-width:0;font-size:10px}
#myhome-app .mh-custom-function .mh-action{font-size:10px;padding:9px}
#myhome-app .mh-editor-hint{font-size:10px;color:#a29387;margin-top:12px}
#myhome-app .mh-preview-label{display:block;letter-spacing:1px;font-size:9px;color:#a3aeba;margin-bottom:13px}
#myhome-app .mh-form-preview{border-left:1px solid #edf1f5;padding-left:18px}
#myhome-app .mh-form-preview .mh-web-device{padding:14px;border-radius:13px}
#myhome-app .mh-editor-error{color:#c87565;font-size:11px;margin-top:10px}
#myhome-app .mh-temperature-dialog-label{display:flex;flex-direction:column;gap:12px;margin:20px 0;color:#8b9dad;font-size:12px}
#myhome-app.mh-editor-open .mh-shell{display:none}
#myhome-app.mh-editor-open .mh-dialog-backdrop{position:relative;inset:auto;min-height:690px;background:#f7f8fa;backdrop-filter:none;border:1px solid #e9edf2;border-radius:22px;padding:26px}
#myhome-app.mh-editor-open .mh-dialog{align-self:flex-start;box-shadow:0 5px 35px #25304106}
@media(max-width:800px){#myhome-app .mh-editor-layout{grid-template-columns:1fr}#myhome-app .mh-form-preview{border-left:0;padding-left:0;border-top:1px solid #edf1f5;padding-top:18px}#myhome-app .mh-hmi-bar{padding-right:40px}#myhome-app .mh-web-temperature{flex-wrap:wrap}#myhome-app .mh-web-temperature>span{flex-basis:100%}}
@media(max-width:570px){#myhome-app .mh-hmi-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none;min-height:0}#myhome-app .mh-hmi-tile{min-height:140px;padding:13px}#myhome-app .mh-hmi-tile strong{font-size:14px}#myhome-app .mh-hmi-bar{padding-right:0}#myhome-app .mh-hmi-brand{width:100%}#myhome-app .mh-web-device .mh-device-title h3{font-size:14px}#myhome-app .mh-web-temperature>span{flex-basis:auto}#myhome-app .mh-web-button{font-size:11px}#myhome-app .mh-function-option{font-size:11px}#myhome-app .mh-editor-modal .mh-dialog{padding:18px}#myhome-app .mh-hmi-bar-actions{width:100%}#myhome-app .mh-hmi-bar-actions>.mh-muted{margin-right:auto}#myhome-app .mh-editor-modal{padding:18px 10px}#myhome-app .mh-editor-fields{grid-template-columns:1fr}}

:root{--bs-primary:#f97316;--bs-primary-rgb:249,115,22}
body{margin:0;background:#f7f8fa;color:#253041;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
[v-cloak]{display:none!important}
.startup-message{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:2000;background:#f7f8fa;color:#a47a57;padding:24px}
#myhome-app .mh-shell{min-height:100dvh;border:0;border-radius:0}
#myhome-app .mh-sidebar{position:sticky;top:0;height:100dvh;overflow:auto}
#myhome-app .mh-header{padding-right:0}
#myhome-app i.bi{display:inline-block;font-size:18px;line-height:1;flex-shrink:0}
#myhome-app .mh-web-button i.bi,#myhome-app .mh-edit-device i.bi{font-size:14px}
#myhome-app .mh-device-icon i.bi{font-size:20px}
#myhome-app .mh-web-status .mh-favorite{border:0;background:transparent;color:#d8b295;display:flex;padding:4px}
#myhome-app .mh-command-result{font-size:11px;color:#9a7b60;margin-top:9px}
#myhome-app .mh-device-title h3{font-size:14px}
#myhome-app .mh-device-title small,#myhome-app .mh-device-foot{font-size:11px}
#myhome-app .mh-device-foot>span{overflow-wrap:anywhere}
#myhome-app .mh-header-right strong{font-size:22px}
#myhome-app .mh-header-right small{font-size:10px}
#myhome-app .mh-save-status{font-size:11px;color:#ad7f53;padding:7px 0 15px}
#myhome-app .mh-action:disabled{opacity:.5;cursor:not-allowed}
#myhome-app .mh-dialog-backdrop{position:fixed;overflow:auto;inset:0;z-index:1060;padding:60px 24px;align-items:flex-start}
#myhome-app .mh-dialog{flex-shrink:0}
#myhome-app .mh-editor-page{position:fixed;inset:0;overflow:auto;z-index:1050;padding:30px 24px;background:#f7f8fa}
#myhome-app .mh-device-dialog{width:min(100%,900px);margin:0 auto}
#myhome-app .mh-editor-page .mh-dialog{box-shadow:0 10px 60px #2530410a}
#myhome-app .mh-editor-layout{margin-top:10px}
#myhome-app .mh-function-option{font-size:12px}
#myhome-app .mh-function-option small{font-size:10px}
#myhome-app .mh-function-option input{width:16px;height:16px}
#myhome-app .mh-editor-hint{font-size:11px;line-height:1.7}
#myhome-app .mh-preview-buttons{display:flex;flex-wrap:wrap;gap:7px;margin-top:20px}
#myhome-app .mh-preview-buttons>span{padding:8px 10px;border-radius:10px;background:#fff0e5;color:#cb7b3e;font-size:12px;display:flex;gap:7px;align-items:center}
#myhome-app .mh-preview-buttons i{font-size:15px}
#myhome-app .mh-bindings{padding:14px;border-radius:12px;background:#f8fafc;margin-top:10px}
#myhome-app .mh-fields label{font-size:12px}
#myhome-app .mh-input,#myhome-app select{font-size:12px}
#myhome-app .mh-action{font-size:12px}
#myhome-app .mh-days{display:flex;flex-wrap:wrap;gap:14px}
#myhome-app .mh-days label{display:flex;flex-direction:row;align-items:center;gap:6px}
#myhome-app input[type=checkbox]{accent-color:#f97316}
#myhome-app .mh-action-editor{padding:18px 0;border-bottom:1px solid #e9edf2}
#myhome-app .mh-action-editor>.mh-fields{margin-top:12px}
#myhome-app .mh-action-list{font-size:12px;color:#8c9caa;line-height:2}
#myhome-app .mh-temperature-picker{display:flex;align-items:center;justify-content:center;gap:25px;padding:30px 0}
#myhome-app .mh-temperature-picker strong{font-size:42px;color:#a36e43;letter-spacing:-2px}
#myhome-app .mh-temperature-picker button{border:0;border-radius:12px;background:#fff0e5;color:#f97316;min-width:52px;min-height:52px;font-size:25px}
#myhome-app .mh-wide{grid-column:1/-1}
#myhome-app .mh-web-controls .mh-web-button[disabled]{opacity:.5}
#myhome-app .mh-web-temperature>span{font-size:11px}
#myhome-app .mh-web-temperature>span i{font-size:14px}
#myhome-app .mh-brand{color:#253041}
#myhome-app .mh-brand-icon{flex-shrink:0}
#myhome-app .mh-brand small{font-size:6px;letter-spacing:.5px;white-space:nowrap}
#myhome-app .mh-hmi-empty:disabled{opacity:.8;color:#a5b3c0}
#myhome-app .btn-primary{--bs-btn-bg:#f97316;--bs-btn-border-color:#f97316;--bs-btn-hover-bg:#e96a10;--bs-btn-hover-border-color:#e96a10;--bs-btn-active-bg:#d9610b;--bs-btn-active-border-color:#d9610b}
#myhome-app .mh-nav button{font-size:12px}
#myhome-app .mh-hmi-tile.mh-hmi-on .bi{color:var(--mh-orange)}

@media(min-width:1400px){
  #myhome-app .mh-shell{grid-template-columns:280px minmax(0,1fr)}
  #myhome-app .mh-sidebar{padding:36px 24px}
  #myhome-app .mh-nav{gap:10px}
  #myhome-app .mh-nav button{min-height:56px;padding:14px 16px;font-size:16px;gap:15px}
  #myhome-app .mh-nav button .bi{font-size:21px}
  #myhome-app .mh-main{padding:40px 48px}
}
@media(min-width:700px) and (max-height:720px){#myhome-app .mh-sidebar{padding:19px 12px}#myhome-app .mh-nav{gap:2px}#myhome-app .mh-nav button{min-height:36px;padding:8px 10px}#myhome-app .mh-nav-label{margin:21px 10px 10px}#myhome-app .mh-nav-divider{margin:8px 10px}#myhome-app .mh-server{display:none}}
#myhome-app .modal-scrim{position:fixed;inset:0;background:#25304166;z-index:1080;display:grid;place-items:center;padding:20px;overflow:auto}
#myhome-app .system-modal{width:min(100%,500px);max-height:90dvh;overflow:auto;background:#fff}
#myhome-app .system-modal h2{font-size:20px}
/* Bố cục trang web trên màn hình Full HD; không ảnh hưởng chế độ HMI. */
@media (min-width:1400px) and (min-height:721px){
  #myhome-app:not(.mh-hmi-mode) .mh-nav{gap:16px}
  #myhome-app:not(.mh-hmi-mode) .mh-brand small{font-size:10px;letter-spacing:.4px}
  #myhome-app:not(.mh-hmi-mode) .mh-nav-label{font-size:12px;letter-spacing:1px}
  #myhome-app:not(.mh-hmi-mode) .mh-server{font-size:13px}
  #myhome-app:not(.mh-hmi-mode) .mh-server small{font-size:12px;line-height:1.4}
}
@media (min-width:1920px) and (min-height:721px){
  #myhome-app:not(.mh-hmi-mode) .mh-shell{grid-template-columns:300px minmax(0,1fr)}
  #myhome-app:not(.mh-hmi-mode) .mh-sidebar{padding:38px 26px 28px}
  #myhome-app:not(.mh-hmi-mode) .mh-nav button{min-height:60px;padding:15px 18px;gap:16px;font-size:17px}
  #myhome-app:not(.mh-hmi-mode) .mh-nav button .bi{font-size:23px}
  #myhome-app:not(.mh-hmi-mode) .mh-nav-label{font-size:12px}
  #myhome-app:not(.mh-hmi-mode) .mh-main{padding:42px 50px}
  #myhome-app:not(.mh-hmi-mode) .mh-header{gap:22px;margin-bottom:32px}
  #myhome-app:not(.mh-hmi-mode) .mh-device-grid{gap:20px}
  #myhome-app:not(.mh-hmi-mode) .mh-panel{padding:26px;margin-bottom:20px}
  #myhome-app:not(.mh-hmi-mode) .mh-device-title h3{font-size:17px}
  #myhome-app:not(.mh-hmi-mode) .mh-device-title small,
  #myhome-app:not(.mh-hmi-mode) .mh-device-foot{font-size:13px}
  #myhome-app:not(.mh-hmi-mode) .mh-fields label,
  #myhome-app:not(.mh-hmi-mode) .mh-input,
  #myhome-app:not(.mh-hmi-mode) select,
  #myhome-app:not(.mh-hmi-mode) .mh-action{font-size:14px}
}
/* Menu desktop co giãn theo chiều cao, không ảnh hưởng màn hình HMI. */
@media (min-width:700px) and (min-height:480px){
  #myhome-app:not(.mh-hmi-mode) .mh-sidebar{height:100vh;height:100dvh;overflow:hidden;padding-block:clamp(12px,2.5vh,28px)}
  #myhome-app:not(.mh-hmi-mode) .mh-brand{flex:none}
  #myhome-app:not(.mh-hmi-mode) .mh-brand small{font-size:clamp(9px,.8vw,11px);letter-spacing:.3px}
  #myhome-app:not(.mh-hmi-mode) .mh-nav-label{flex:none;margin:clamp(8px,2vh,20px) 10px 4px;font-size:11px}
  #myhome-app:not(.mh-hmi-mode) .mh-nav{flex:1;min-height:0;justify-content:space-evenly;gap:clamp(2px,.7vh,8px)}
  #myhome-app:not(.mh-hmi-mode) .mh-nav button{flex:0 1 48px;min-height:0;padding-block:4px;font-size:clamp(12px,1vw,16px)}
  #myhome-app:not(.mh-hmi-mode) .mh-nav-divider{flex:none;margin:0 10px}
  #myhome-app:not(.mh-hmi-mode) .mh-server{flex:none;margin-top:8px;padding:10px;font-size:13px}
  #myhome-app:not(.mh-hmi-mode) .mh-server small{font-size:11px;line-height:1.3}
}
@media(max-width:699px){#myhome-app .mh-sidebar{position:static;height:auto;overflow:visible}#myhome-app .mh-main{padding:20px 14px}#myhome-app .mh-shell{display:block}#myhome-app .mh-sidebar{padding:15px 13px}#myhome-app .mh-nav{display:flex;flex-direction:row;flex-wrap:wrap;gap:4px}#myhome-app .mh-nav-label,#myhome-app .mh-server,#myhome-app .mh-nav-divider{display:none}#myhome-app .mh-brand{margin-bottom:13px}#myhome-app .mh-nav button{font-size:11px;padding:10px 8px;gap:6px;min-height:40px}#myhome-app .mh-nav i.bi{font-size:14px}#myhome-app .mh-dialog-backdrop{padding:30px 12px}#myhome-app .mh-editor-page{padding:15px 10px}#myhome-app .mh-device-dialog{padding:18px}#myhome-app .mh-editor-layout{grid-template-columns:1fr}#myhome-app .mh-fields{grid-template-columns:1fr}#myhome-app .mh-form-preview{border-left:0;padding-left:0;padding-top:20px;border-top:1px solid #edf1f5}#myhome-app .mh-input,#myhome-app select{font-size:16px}}
#myhome-app .mh-menu-toggle,#myhome-app .mh-menu-backdrop{display:none}
@media(max-width:699px){
  #myhome-app:not(.mh-hmi-mode) .mh-shell{overflow:visible}
  #myhome-app:not(.mh-hmi-mode) .mh-sidebar{position:sticky;top:0;z-index:100;display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;column-gap:16px;min-height:68px;padding:12px 16px;padding-top:calc(12px + env(safe-area-inset-top));background:#fff}
  #myhome-app:not(.mh-hmi-mode) .mh-brand{position:relative;z-index:2;grid-column:2;grid-row:1;justify-self:end;justify-content:flex-end;gap:9px;margin:0;padding:0;color:var(--mh-ink);font-size:23px;line-height:1.05;text-align:left}
  #myhome-app:not(.mh-hmi-mode) .mh-menu-toggle{position:relative;grid-column:1;grid-row:1;left:auto;top:auto;z-index:2;display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--mh-line);border-radius:12px;background:#fff;color:var(--mh-ink)}
  #myhome-app:not(.mh-hmi-mode) .mh-menu-toggle .bi{display:block;font-size:24px;line-height:1}
  #myhome-app:not(.mh-hmi-mode) .mh-brand-icon{width:36px;height:36px;border-radius:11px;font-size:21px;line-height:1}
  #myhome-app:not(.mh-hmi-mode) .mh-brand-icon .bi{font-size:21px;line-height:1}
  #myhome-app:not(.mh-hmi-mode) .mh-brand small{margin-top:5px;font-size:8px;line-height:1.3;letter-spacing:.6px;white-space:nowrap}
  #myhome-app:not(.mh-hmi-mode) .mh-nav{display:none}
  #myhome-app:not(.mh-hmi-mode) .mh-menu-backdrop{display:block;position:fixed;inset:0;z-index:0;border:0;background:#25304166}
  #myhome-app:not(.mh-hmi-mode) .mh-mobile-menu-open .mh-nav{position:fixed;z-index:1;inset:0;width:100%;height:100vh;height:100dvh;max-height:none;overflow-y:auto;display:flex;flex-direction:column;flex-wrap:nowrap;gap:4px;margin:0;padding:calc(80px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom));background:#fff;border-radius:0;box-shadow:none}
  #myhome-app:not(.mh-hmi-mode) .mh-mobile-menu-open .mh-nav button{display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;min-height:48px;padding:12px 14px;gap:14px;font-size:15px;text-align:left;line-height:1.3;flex-shrink:0}
  #myhome-app:not(.mh-hmi-mode) .mh-mobile-menu-open .mh-nav i.bi{width:24px;font-size:21px;line-height:1;text-align:center}
}

/* Mobile: logo above, menu beside the page heading. */
@media(max-width:699px){
  #myhome-app:not(.mh-hmi-mode) .mh-sidebar{grid-template-columns:minmax(0,1fr) 44px}
  #myhome-app:not(.mh-hmi-mode) .mh-brand{grid-column:1;justify-self:start;justify-content:flex-start}
  #myhome-app:not(.mh-hmi-mode) .mh-sidebar>.mh-menu-toggle{display:none;grid-column:2}
  #myhome-app:not(.mh-hmi-mode) .mh-sidebar.mh-mobile-menu-open>.mh-menu-toggle{display:grid}
  #myhome-app:not(.mh-hmi-mode) .mh-header{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:12px;align-items:center;padding-right:0}
  #myhome-app:not(.mh-hmi-mode) .mh-header>.mh-page-menu{grid-column:1;grid-row:1;z-index:auto}
  #myhome-app:not(.mh-hmi-mode) .mh-page-heading{min-width:0;grid-column:2}
  #myhome-app:not(.mh-hmi-mode) .mh-page-heading h1{font-size:clamp(20px,5.8vw,26px);line-height:1.2;margin-bottom:0;overflow-wrap:anywhere}
  #myhome-app:not(.mh-hmi-mode) .mh-eyebrow{font-size:9px;letter-spacing:.7px;line-height:1.4}
  #myhome-app:not(.mh-hmi-mode) .mh-header-right{grid-column:3;gap:0;padding:0}
  #myhome-app:not(.mh-hmi-mode) .mh-header-right strong{font-size:18px}
  #myhome-app:not(.mh-hmi-mode) .mh-header-right small{font-size:10px}
}
