/* Web appearance only. The dedicated HMI retains its existing theme and layout. */
#myhome-app:not(.mh-hmi-mode){--mh-orange:#3082f6;--mh-soft:#eaf3ff;--mh-bg:#f5f6f8;--mh-ink:#202832;--mh-muted:#75808d;--mh-line:#e9edf2;--web-panel:#fff;--web-input:#f7f9fc;--mh-radius:12px;background:var(--mh-bg);color:var(--mh-ink);color-scheme:light}
#myhome-app.mh-web-dark:not(.mh-hmi-mode){--mh-bg:#0e1115;--mh-ink:#edf2f8;--mh-muted:#a1acba;--mh-line:#303841;--web-panel:#1b2026;--web-input:#232a33;--mh-soft:#213651;color-scheme:dark}
#myhome-app:not(.mh-hmi-mode) .mh-shell{grid-template-columns:88px minmax(0,1fr);background:var(--mh-bg);border:0;border-radius:0;max-width:none;min-height:100dvh}
#myhome-app:not(.mh-hmi-mode) .mh-sidebar{background:var(--web-panel);border-color:var(--mh-line);padding:28px 14px 18px;align-items:center;overflow:hidden}
#myhome-app:not(.mh-hmi-mode) .mh-brand{padding:0;color:var(--mh-ink);margin:0}
#myhome-app:not(.mh-hmi-mode) .mh-brand>div,#myhome-app:not(.mh-hmi-mode) .mh-nav-label,#myhome-app:not(.mh-hmi-mode) .mh-server{display:none}
#myhome-app:not(.mh-hmi-mode) .mh-brand-icon{width:38px;height:38px;border-radius:12px;font-size:22px}
#myhome-app:not(.mh-hmi-mode) .mh-nav{width:100%;margin-top:30px;flex:1;justify-content:flex-start;gap:9px}
#myhome-app:not(.mh-hmi-mode) .mh-nav button{width:48px;height:45px;min-height:45px;flex:none;margin-inline:auto;display:flex;align-items:center;justify-content:center;padding:10px;gap:0;color:var(--mh-muted);border-radius:10px}
#myhome-app:not(.mh-hmi-mode) .mh-nav button>span{display:none}
#myhome-app:not(.mh-hmi-mode) .mh-nav button .bi{font-size:20px;line-height:1}
#myhome-app:not(.mh-hmi-mode) .mh-nav button[aria-current=page]{background:var(--mh-soft);color:var(--mh-orange)}
#myhome-app:not(.mh-hmi-mode) .mh-nav-divider{width:28px;margin:5px auto;border-color:var(--mh-line)}
#myhome-app:not(.mh-hmi-mode) .mh-main{padding:30px clamp(20px,2.5vw,48px);background:var(--mh-bg)}
#myhome-app:not(.mh-hmi-mode) .mh-header{gap:20px;margin-bottom:26px}
#myhome-app:not(.mh-hmi-mode) h1{font-size:clamp(24px,2vw,34px);font-weight:600;letter-spacing:-.8px;color:var(--mh-ink)}
#myhome-app:not(.mh-hmi-mode) h2{font-size:18px;font-weight:600;color:var(--mh-ink)}
#myhome-app:not(.mh-hmi-mode) h3{color:var(--mh-ink);font-weight:600}
#myhome-app:not(.mh-hmi-mode) .mh-eyebrow{font-size:10px;letter-spacing:1px;color:var(--mh-muted)}
#myhome-app:not(.mh-hmi-mode) .mh-header-right{gap:18px}
#myhome-app:not(.mh-hmi-mode) .mh-header-right strong{font-size:20px;color:var(--mh-ink)}
#myhome-app:not(.mh-hmi-mode) .mh-theme-toggle{display:flex;align-items:center;gap:8px;border:1px solid var(--mh-line);background:var(--web-panel);border-radius:9px;padding:10px 13px;color:var(--mh-ink);font-size:13px;min-height:42px}
#myhome-app:not(.mh-hmi-mode) .mh-online{font-size:12px;color:var(--mh-muted)}
#myhome-app:not(.mh-hmi-mode) .mh-panel,#myhome-app:not(.mh-hmi-mode) .mh-stat,#myhome-app:not(.mh-hmi-mode) .mh-device,#myhome-app:not(.mh-hmi-mode) .mh-room,#myhome-app:not(.mh-hmi-mode) .mh-scene,#myhome-app:not(.mh-hmi-mode) .mh-connection,#myhome-app:not(.mh-hmi-mode) .mh-dialog,#myhome-app:not(.mh-hmi-mode) .system-modal,#myhome-app:not(.mh-hmi-mode) .mh-device-dialog{background:var(--web-panel);border:1px solid var(--mh-line);box-shadow:0 3px 15px #00000003;border-radius:12px;color:var(--mh-ink)}
#myhome-app:not(.mh-hmi-mode) .mh-device{aspect-ratio:auto;min-height:290px;padding:20px;box-shadow:none}
#myhome-app:not(.mh-hmi-mode) .mh-device-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
#myhome-app:not(.mh-hmi-mode) .mh-device-head{gap:12px}
#myhome-app:not(.mh-hmi-mode) .mh-device-title h3{font-size:16px}
#myhome-app:not(.mh-hmi-mode) .mh-device-title small,#myhome-app:not(.mh-hmi-mode) .mh-device-foot,#myhome-app:not(.mh-hmi-mode) .mh-web-status{color:var(--mh-muted);font-size:12px}
#myhome-app:not(.mh-hmi-mode) .mh-device-icon,#myhome-app:not(.mh-hmi-mode) .mh-stat-icon{background:var(--mh-soft);color:var(--mh-orange)}
#myhome-app:not(.mh-hmi-mode) .mh-web-button,#myhome-app:not(.mh-hmi-mode) .mh-secondary,#myhome-app:not(.mh-hmi-mode) .mh-temperature-controls>button,#myhome-app:not(.mh-hmi-mode) .mh-temperature-field,#myhome-app:not(.mh-hmi-mode) .mh-web-temperature{background:var(--web-input);border-color:var(--mh-line);color:var(--mh-ink)}
#myhome-app:not(.mh-hmi-mode) .mh-web-button.selected{background:var(--mh-soft);color:var(--mh-orange);border-color:var(--mh-orange)}
#myhome-app:not(.mh-hmi-mode) .mh-switch{background:var(--mh-line)}
#myhome-app:not(.mh-hmi-mode) .mh-switch[aria-checked=true]{background:var(--mh-orange)}
#myhome-app:not(.mh-hmi-mode) .mh-input,#myhome-app:not(.mh-hmi-mode) select,#myhome-app:not(.mh-hmi-mode) .form-control{background:var(--web-panel);color:var(--mh-ink);border-color:var(--mh-line)}
#myhome-app:not(.mh-hmi-mode) .mh-temperature-input{color:var(--mh-ink);background:transparent}
#myhome-app:not(.mh-hmi-mode) .mh-muted,#myhome-app:not(.mh-hmi-mode) .text-muted,#myhome-app:not(.mh-hmi-mode) .text-secondary{color:var(--mh-muted)!important}
#myhome-app:not(.mh-hmi-mode) .mh-device-foot,#myhome-app:not(.mh-hmi-mode) .mh-row,#myhome-app:not(.mh-hmi-mode) .mh-data{border-color:var(--mh-line)}
#myhome-app:not(.mh-hmi-mode) .mh-device-foot button,#myhome-app:not(.mh-hmi-mode) .mh-favorite{background:transparent;color:var(--mh-muted)}
#myhome-app:not(.mh-hmi-mode) .mh-home-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(300px,1fr);gap:22px;align-items:start}
#myhome-app:not(.mh-hmi-mode) .mh-home-left,#myhome-app:not(.mh-hmi-mode) .mh-home-right{display:flex;flex-direction:column;gap:22px;min-width:0}
#myhome-app:not(.mh-hmi-mode) .mh-home-top{display:grid;grid-template-columns:1.1fr 1fr;gap:20px}
#myhome-app:not(.mh-hmi-mode) .mh-home-box{background:var(--web-panel);padding:20px;border:1px solid var(--mh-line);border-radius:12px;min-width:0}
#myhome-app:not(.mh-hmi-mode) .mh-home-camera{height:240px;position:relative;overflow:hidden;margin-top:16px;border-radius:8px;background:#17232d;display:grid;place-items:center}
#myhome-app:not(.mh-hmi-mode) .mh-home-camera iframe{width:100%;height:100%;border:0}
#myhome-app:not(.mh-hmi-mode) .mh-home-camera .mh-camera-placeholder{color:#bdcbd9;text-align:center;display:grid;gap:12px}
#myhome-app:not(.mh-hmi-mode) .mh-home-camera .mh-camera-placeholder .bi{font-size:35px}
#myhome-app:not(.mh-hmi-mode) .mh-home-camera-label{font-size:12px;color:var(--mh-muted);margin-top:4px}
#myhome-app:not(.mh-hmi-mode) .mh-home-summary{display:grid;gap:20px;margin-top:20px}
#myhome-app:not(.mh-hmi-mode) .mh-home-summary .mh-stat{padding:0;border:0;background:transparent;box-shadow:none;gap:14px}
#myhome-app:not(.mh-hmi-mode) .mh-home-summary .mh-stat strong{font-size:24px;font-weight:500;color:var(--mh-ink)}
#myhome-app:not(.mh-hmi-mode) .mh-home-summary .mh-stat small{font-size:12px;color:var(--mh-muted)}
#myhome-app:not(.mh-hmi-mode) .mh-home-layout .mh-device-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:18px}
#myhome-app:not(.mh-hmi-mode) .mh-home-layout .mh-device-grid .mh-device{background:var(--web-input);padding:16px;min-height:270px}
#myhome-app:not(.mh-hmi-mode) .mh-home-right>.mh-device{padding:24px;min-height:430px}
#myhome-app:not(.mh-hmi-mode) .mh-home-right .mh-web-temperature{padding:25px 14px;border:0;border-radius:130px 130px 12px 12px;position:relative;background:var(--web-input)}
#myhome-app:not(.mh-hmi-mode) .mh-home-right .mh-temperature-controls{margin:16px 0;gap:12px}
#myhome-app:not(.mh-hmi-mode) .mh-home-right .mh-temperature-input{font-size:40px;max-width:90px;font-weight:500}
#myhome-app:not(.mh-hmi-mode) .mh-home-right .mh-temperature-controls>button{width:42px;min-height:42px;border-radius:50%;font-size:24px}
#myhome-app:not(.mh-hmi-mode) .mh-home-scenes{display:flex;flex-direction:column;gap:12px;margin-top:18px}
#myhome-app:not(.mh-hmi-mode) .mh-home-scenes .mh-scene{display:flex;gap:12px;align-items:center;text-align:left;padding:14px;background:var(--web-input);font-size:14px}
#myhome-app:not(.mh-hmi-mode) .mh-home-scenes .mh-scene>.bi:first-child{color:var(--mh-orange);font-size:22px}
#myhome-app:not(.mh-hmi-mode) .mh-home-scenes .mh-scene>.bi:last-child{margin-left:auto}
#myhome-app:not(.mh-hmi-mode) .mh-home-rooms{display:flex;gap:16px;flex-wrap:wrap;margin-top:18px;padding-bottom:12px;border-bottom:1px solid var(--mh-line)}
#myhome-app:not(.mh-hmi-mode) .mh-home-rooms button{border:0;background:transparent;color:var(--mh-muted);font-size:13px;padding:4px 0}
#myhome-app:not(.mh-hmi-mode) .mh-home-rooms button.selected{color:var(--mh-orange)}
@media(min-width:1600px){#myhome-app:not(.mh-hmi-mode) .mh-home-camera{height:280px}#myhome-app:not(.mh-hmi-mode) .mh-home-box{padding:24px}}
@media(min-width:700px) and (max-height:740px){#myhome-app:not(.mh-hmi-mode) .mh-nav{gap:4px;margin-top:16px}#myhome-app:not(.mh-hmi-mode) .mh-nav button{height:36px;min-height:36px;padding:6px}}
@media(max-width:1100px){#myhome-app:not(.mh-hmi-mode) .mh-home-layout{grid-template-columns:1fr}#myhome-app:not(.mh-hmi-mode) .mh-home-right{display:grid;grid-template-columns:1fr 1fr}#myhome-app:not(.mh-hmi-mode) .mh-device-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:699px){
 #myhome-app:not(.mh-hmi-mode) .mh-shell{display:block}
 #myhome-app:not(.mh-hmi-mode) .mh-sidebar{display:grid;grid-template-columns:minmax(0,1fr) 44px;padding:12px 16px;padding-top:calc(12px + env(safe-area-inset-top));height:auto;min-height:64px;align-items:center;overflow:visible}
 #myhome-app:not(.mh-hmi-mode) .mh-brand{grid-column:1;justify-self:start;gap:9px}
 #myhome-app:not(.mh-hmi-mode) .mh-brand>div{display:block;font-size:23px}
 #myhome-app:not(.mh-hmi-mode) .mh-brand small{font-size:8px;color:var(--mh-muted)}
 #myhome-app:not(.mh-hmi-mode) .mh-main{padding:20px 16px}
 #myhome-app:not(.mh-hmi-mode) .mh-menu-toggle{background:var(--web-panel);color:var(--mh-ink);border-color:var(--mh-line)}
 #myhome-app:not(.mh-hmi-mode) .mh-nav{display:none;margin:0}
 #myhome-app:not(.mh-hmi-mode) .mh-mobile-menu-open .mh-nav{background:var(--web-panel);padding-top:calc(82px + env(safe-area-inset-top));gap:5px}
 #myhome-app:not(.mh-hmi-mode) .mh-mobile-menu-open .mh-nav button{width:100%;height:auto;min-height:48px;display:grid;grid-template-columns:24px 1fr;justify-content:start;text-align:left;gap:14px;padding:12px 14px;margin:0;font-size:15px}
 #myhome-app:not(.mh-hmi-mode) .mh-mobile-menu-open .mh-nav button>span{display:block}
 #myhome-app:not(.mh-hmi-mode) .mh-nav-divider{display:none}
 #myhome-app:not(.mh-hmi-mode) .mh-header{grid-template-columns:44px minmax(0,1fr) auto;gap:10px;align-items:center}
 #myhome-app:not(.mh-hmi-mode) .mh-header-right{gap:8px}
 #myhome-app:not(.mh-hmi-mode) .mh-header-right>.text-end{display:none}
 #myhome-app:not(.mh-hmi-mode) .mh-theme-toggle{padding:9px;min-width:42px;justify-content:center}
 #myhome-app:not(.mh-hmi-mode) .mh-theme-toggle span{display:none}
 #myhome-app:not(.mh-hmi-mode) .mh-page-heading h1{font-size:23px}
 #myhome-app:not(.mh-hmi-mode) .mh-home-top,#myhome-app:not(.mh-hmi-mode) .mh-home-right{display:flex;flex-direction:column}
 #myhome-app:not(.mh-hmi-mode) .mh-home-box{padding:17px;width:100%}
 #myhome-app:not(.mh-hmi-mode) .mh-home-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
 #myhome-app:not(.mh-hmi-mode) .mh-home-summary .mh-stat{display:block}
 #myhome-app:not(.mh-hmi-mode) .mh-home-summary .mh-stat-icon{display:none}
 #myhome-app:not(.mh-hmi-mode) .mh-home-summary .mh-stat strong{font-size:23px}
 #myhome-app:not(.mh-hmi-mode) .mh-home-summary .mh-stat small{font-size:11px}
 #myhome-app:not(.mh-hmi-mode) .mh-home-layout .mh-device-grid,#myhome-app:not(.mh-hmi-mode) .mh-device-grid{grid-template-columns:1fr}
 #myhome-app:not(.mh-hmi-mode) .mh-device,#myhome-app:not(.mh-hmi-mode) .mh-home-layout .mh-device-grid .mh-device{min-height:0;padding:18px}
 #myhome-app:not(.mh-hmi-mode) .mh-home-right>.mh-device{min-height:0;width:100%}
 #myhome-app:not(.mh-hmi-mode) .mh-home-camera{height:220px}
}

@media(min-width:700px){
 #myhome-app:not(.mh-hmi-mode) .mh-sidebar{width:88px;z-index:110;align-items:stretch;transition:width .18s ease,box-shadow .18s ease}
 #myhome-app:not(.mh-hmi-mode) .mh-sidebar .mh-brand{justify-content:center}
 #myhome-app:not(.mh-hmi-mode) .mh-sidebar:hover,#myhome-app:not(.mh-hmi-mode) .mh-sidebar:focus-within{width:248px;box-shadow:12px 0 28px #00000012}
 #myhome-app:not(.mh-hmi-mode) .mh-sidebar:hover .mh-brand,#myhome-app:not(.mh-hmi-mode) .mh-sidebar:focus-within .mh-brand{justify-content:flex-start;padding-inline:10px;gap:10px}
 #myhome-app:not(.mh-hmi-mode) .mh-sidebar:hover .mh-brand>div,#myhome-app:not(.mh-hmi-mode) .mh-sidebar:focus-within .mh-brand>div{display:block;font-size:24px;white-space:nowrap}
 #myhome-app:not(.mh-hmi-mode) .mh-sidebar:hover .mh-nav button,#myhome-app:not(.mh-hmi-mode) .mh-sidebar:focus-within .mh-nav button{width:100%;justify-content:flex-start;padding-inline:16px;gap:15px;font-size:14px}
 #myhome-app:not(.mh-hmi-mode) .mh-sidebar:hover .mh-nav button>span,#myhome-app:not(.mh-hmi-mode) .mh-sidebar:focus-within .mh-nav button>span{display:block;white-space:nowrap}
}
#myhome-app:not(.mh-hmi-mode) .mh-server-metrics{margin:18px 0 0;display:grid;gap:0}
#myhome-app:not(.mh-hmi-mode) .mh-server-metrics>div{display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid var(--mh-line);padding:13px 0}
#myhome-app:not(.mh-hmi-mode) .mh-server-metrics>div:last-child{border-bottom:0;padding-bottom:0}
#myhome-app:not(.mh-hmi-mode) .mh-server-metrics dt{font-weight:400;color:var(--mh-muted);font-size:13px}
#myhome-app:not(.mh-hmi-mode) .mh-server-metrics dd{margin:0;font-weight:600;font-size:14px;overflow-wrap:anywhere;text-align:right}
#myhome-app:not(.mh-hmi-mode) .mh-weather-box>.mh-section-head>.bi{font-size:30px;color:var(--mh-orange)}
#myhome-app:not(.mh-hmi-mode) .mh-scene-copy{display:flex;flex-direction:column;gap:4px}
#myhome-app:not(.mh-hmi-mode) .mh-scene-run-state{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--mh-muted)}
#myhome-app:not(.mh-hmi-mode) .mh-scene-run-dot{width:6px;height:6px;border-radius:50%;background:currentColor}
#myhome-app:not(.mh-hmi-mode) .mh-scene-run-state.running{color:var(--mh-orange)}
#myhome-app:not(.mh-hmi-mode) .mh-scene-run-state.failed{color:#dc6868}
#myhome-app:not(.mh-hmi-mode) .mh-home-scenes .mh-scene:disabled{opacity:1;cursor:default}
@media(prefers-reduced-motion:reduce){#myhome-app:not(.mh-hmi-mode) .mh-sidebar{transition:none}}

#myhome-app:not(.mh-hmi-mode) .mh-weather-form{display:flex;flex-direction:column;gap:10px;margin-top:18px;font-size:13px}
#myhome-app:not(.mh-hmi-mode) .mh-weather-search{display:flex;gap:8px}
#myhome-app:not(.mh-hmi-mode) .mh-weather-search input{min-width:0;flex:1}
#myhome-app:not(.mh-hmi-mode) .mh-weather-form select{width:100%;min-width:0;max-width:100%}
#myhome-app:not(.mh-hmi-mode) .mh-weather-place{font-size:13px;color:var(--mh-muted);margin-top:14px}
#myhome-app:not(.mh-hmi-mode) .mh-weather-current{display:flex;align-items:center;gap:20px;margin:20px 0}
#myhome-app:not(.mh-hmi-mode) .mh-weather-current>.bi{font-size:55px;color:var(--mh-orange)}
#myhome-app:not(.mh-hmi-mode) .mh-weather-current>div{display:flex;flex-direction:column}
#myhome-app:not(.mh-hmi-mode) .mh-weather-current strong{font-size:42px;font-weight:500;line-height:1.2}
#myhome-app:not(.mh-hmi-mode) .mh-weather-current span{font-size:13px}
#myhome-app:not(.mh-hmi-mode) .mh-weather-credit{display:block;margin-top:16px;color:var(--mh-muted);font-size:11px}
#myhome-app:not(.mh-hmi-mode) .mh-weather-credit a{color:var(--mh-orange)}
#myhome-app:not(.mh-hmi-mode) .mh-weather-error{color:#dc6868;font-size:13px;margin-top:12px}

/* Expanded desktop navigation: comfortable rows and a dimmed content layer. */
@media(min-width:700px){
 #myhome-app:not(.mh-hmi-mode) .mh-sidebar{padding-top:24px;padding-bottom:18px}
 #myhome-app:not(.mh-hmi-mode) .mh-nav{margin-top:24px;gap:clamp(6px,1vh,12px);justify-content:space-evenly;min-height:0}
 #myhome-app:not(.mh-hmi-mode) .mh-nav button{height:clamp(34px,5.2vh,50px);min-height:clamp(34px,5.2vh,50px);flex-shrink:0}
 #myhome-app:not(.mh-hmi-mode) .mh-nav-divider{margin:3px auto;flex-shrink:0}
 #myhome-app:not(.mh-hmi-mode) .mh-sidebar:hover .mh-nav button,#myhome-app:not(.mh-hmi-mode) .mh-sidebar:focus-within .mh-nav button{font-size:15px}
 #myhome-app:not(.mh-hmi-mode) .mh-main::before{content:'';position:fixed;inset:0;z-index:100;background:rgb(14 23 38 / 26%);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);opacity:0;pointer-events:none;transition:opacity .18s ease}
 #myhome-app:not(.mh-hmi-mode) .mh-shell:has(.mh-sidebar:hover) .mh-main::before,#myhome-app:not(.mh-hmi-mode) .mh-shell:has(.mh-sidebar:focus-within) .mh-main::before{opacity:1}
}
@media(min-width:700px) and (max-height:600px){
 #myhome-app:not(.mh-hmi-mode) .mh-sidebar{padding-top:14px;padding-bottom:12px}
 #myhome-app:not(.mh-hmi-mode) .mh-nav{margin-top:12px;gap:4px}
 #myhome-app:not(.mh-hmi-mode) .mh-nav button{height:32px;min-height:32px}
 #myhome-app:not(.mh-hmi-mode) .mh-nav-divider{display:none}
}
@media(prefers-reduced-motion:reduce){#myhome-app:not(.mh-hmi-mode) .mh-main::before{transition:none}}

/* Align web temperature controls and anchor device notes to the card bottom. */
#myhome-app:not(.mh-hmi-mode) .mh-web-device{display:flex;flex-direction:column}
#myhome-app:not(.mh-hmi-mode) .mh-web-device>.mh-web-controls{flex:1;align-content:flex-start;align-items:flex-start;margin-bottom:14px}
#myhome-app:not(.mh-hmi-mode) .mh-web-device>.mh-device-foot{margin-top:auto;order:4;padding-top:12px;flex-shrink:0}
#myhome-app:not(.mh-hmi-mode) .mh-web-device>.mh-command-result{order:3;margin-bottom:10px}
@media(min-width:700px){
 #myhome-app:not(.mh-hmi-mode) .mh-web-temperature{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;padding:12px 10px;border-radius:10px}
 #myhome-app:not(.mh-hmi-mode) .mh-web-temperature>span{grid-column:1;grid-row:1;min-width:0;font-size:11px;flex-basis:auto}
 #myhome-app:not(.mh-hmi-mode) .mh-web-temperature>.mh-temperature-controls{grid-column:2;grid-row:1;display:grid;grid-template-columns:30px minmax(36px,1fr) 30px;gap:5px;width:100%;min-width:0;margin:0}
 #myhome-app:not(.mh-hmi-mode) .mh-web-temperature>.mh-web-set{grid-column:3;grid-row:1;min-height:36px;padding:8px;font-size:11px;white-space:nowrap}
 #myhome-app:not(.mh-hmi-mode) .mh-web-temperature .mh-temperature-controls>button{width:30px;min-width:0;height:36px;min-height:36px;font-size:21px;margin:0}
 #myhome-app:not(.mh-hmi-mode) .mh-web-temperature .mh-temperature-field{display:flex;align-items:center;justify-content:center;gap:3px;min-width:0;width:100%;margin:0}
 #myhome-app:not(.mh-hmi-mode) .mh-web-temperature .mh-temperature-input{min-width:0;width:100%;max-width:64px;padding:3px 0;font-size:24px;text-align:center}
 #myhome-app:not(.mh-hmi-mode) .mh-web-temperature .mh-temperature-field>span{font-size:12px}
 #myhome-app:not(.mh-hmi-mode) .mh-web-temperature>.mh-temperature-hint{grid-column:1/-1;text-align:center;margin:0;font-size:11px}
}

/* Device header status and controls fill the usable web card area. */
#myhome-app:not(.mh-hmi-mode) .mh-device-name-row{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px}
#myhome-app:not(.mh-hmi-mode) .mh-title-status{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:400;color:var(--mh-muted);white-space:nowrap}
#myhome-app:not(.mh-hmi-mode) .mh-device-head>.mh-favorite{flex-shrink:0;padding:4px;margin:0;font-size:17px}
#myhome-app:not(.mh-hmi-mode) .mh-web-device>.mh-web-controls{margin-top:20px;min-height:130px}
#myhome-app:not(.mh-hmi-mode) .mh-fan-card>.mh-web-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:1fr;gap:10px;align-items:stretch;align-content:stretch}
#myhome-app:not(.mh-hmi-mode) .mh-fan-card>.mh-web-controls>.mh-web-button{width:100%;min-width:0;min-height:110px;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:14px 8px;text-align:center;white-space:normal;overflow-wrap:anywhere;font-size:13px}
#myhome-app:not(.mh-hmi-mode) .mh-fan-card>.mh-web-controls>.mh-web-button>.bi{font-size:26px;line-height:1}
#myhome-app:not(.mh-hmi-mode) .mh-climate-card>.mh-web-controls{align-items:stretch;align-content:stretch}
#myhome-app:not(.mh-hmi-mode) .mh-climate-card .mh-web-temperature{flex:1;min-width:0;min-height:150px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-content:center;align-items:center;gap:16px 10px;padding:18px 12px;border-radius:11px}
#myhome-app:not(.mh-hmi-mode) .mh-climate-card .mh-web-temperature>span{grid-column:1;grid-row:1;font-size:12px;flex-basis:auto}
#myhome-app:not(.mh-hmi-mode) .mh-climate-card .mh-temperature-controls{grid-column:2;grid-row:1;display:grid;grid-template-columns:36px minmax(40px,1fr) 36px;align-items:center;gap:8px;margin:0;min-width:0;width:100%}
#myhome-app:not(.mh-hmi-mode) .mh-climate-card .mh-temperature-controls>button{height:48px;min-height:48px;width:36px;font-size:24px}
#myhome-app:not(.mh-hmi-mode) .mh-climate-card .mh-temperature-field{max-width:120px;width:100%;min-width:0;justify-content:center}
#myhome-app:not(.mh-hmi-mode) .mh-climate-card .mh-temperature-input{height:60px;max-width:100%;width:100%;min-width:0;font-size:30px}
#myhome-app:not(.mh-hmi-mode) .mh-climate-card .mh-web-set{grid-column:3;grid-row:1;min-height:48px;padding:10px;font-size:12px;white-space:nowrap}
#myhome-app:not(.mh-hmi-mode) .mh-climate-card .mh-temperature-hint{grid-column:1/-1;grid-row:2;margin:0;text-align:center}
@media(max-width:420px){
 #myhome-app:not(.mh-hmi-mode) .mh-climate-card .mh-web-temperature{grid-template-columns:minmax(0,1fr) auto;padding:14px 10px;gap:12px}
 #myhome-app:not(.mh-hmi-mode) .mh-climate-card .mh-web-temperature>span{grid-column:1;grid-row:1}
 #myhome-app:not(.mh-hmi-mode) .mh-climate-card .mh-web-set{grid-column:2;grid-row:1}
 #myhome-app:not(.mh-hmi-mode) .mh-climate-card .mh-temperature-controls{grid-column:1/-1;grid-row:2;grid-template-columns:44px minmax(0,1fr) 44px}
 #myhome-app:not(.mh-hmi-mode) .mh-climate-card .mh-temperature-controls>button{width:44px}
 #myhome-app:not(.mh-hmi-mode) .mh-climate-card .mh-temperature-hint{grid-row:3}
}

#myhome-app:not(.mh-hmi-mode) .mh-star-row{display:flex;justify-content:flex-end;min-height:24px;margin-top:8px}
#myhome-app:not(.mh-hmi-mode) .mh-star-row .mh-favorite{font-size:18px;padding:0 2px}
#myhome-app:not(.mh-hmi-mode) .mh-climate-card .mh-temperature-controls{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#myhome-app:not(.mh-hmi-mode) .mh-climate-card .mh-temperature-controls>button{width:100%;height:60px;min-height:60px;padding:0}
#myhome-app:not(.mh-hmi-mode) .mh-climate-card .mh-temperature-field{width:100%;max-width:none;position:relative;gap:0}
#myhome-app:not(.mh-hmi-mode) .mh-climate-card .mh-temperature-input{width:100%;max-width:none;height:60px;padding:4px 12px 4px 2px;font-size:26px}
#myhome-app:not(.mh-hmi-mode) .mh-climate-card .mh-temperature-field>span{position:absolute;right:3px;top:50%;transform:translateY(-50%);font-size:10px;pointer-events:none}
