.dashboard-section{padding-top:38px;padding-bottom:90px}
.dashboard-section .section-heading{margin-bottom:25px}
.dashboard-section .section-heading>p{max-width:335px}
.dashboard-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0;border-top:1px solid #22394b}
.device-view-tabs{display:flex;gap:5px}
.device-view-tabs button{display:flex;align-items:center;gap:9px;min-height:44px;border:1px solid #294759;border-radius:3px;background:#0c1c29;color:#8dafc2;padding:10px 17px;font-size:12px}
.device-view-tabs button[aria-pressed=true]{background:#173a4c;border-color:#6bb8ce;color:#d3f3ff}
.device-view-tabs svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5}
.dashboard-showcase{position:relative;padding:28px 0 6px;background:radial-gradient(ellipse at 50% 40%,#153b503d,transparent 70%)}
.dashboard-device{position:relative;width:100%;margin:auto;border:1px solid #3b4c59;border-radius:13px;padding:14px 12px 0;background:linear-gradient(140deg,#26313a,#101820 60%,#27333b);box-shadow:0 30px 65px #0006;transition:max-width .35s ease}
.device-camera{position:absolute;top:5px;left:calc(50% - 2px);width:4px;height:4px;background:#03080c;border:1px solid #47606d;border-radius:50%}
.ha-screen{display:grid;grid-template-columns:142px minmax(0,1fr);overflow:hidden;background:#111;border:1px solid #050a0c;border-radius:3px;font-family:Arial,Helvetica,sans-serif;color:#ddd;min-height:460px;font-size:12px}
.ha-sidebar{display:flex;flex-direction:column;background:#1c1c1c;border-right:1px solid #333;padding-bottom:15px}
.ha-brand{display:flex;align-items:center;gap:8px;height:49px;padding:0 9px;border-bottom:1px solid #343434;color:#eee;white-space:nowrap;font-size:11px}
.ha-brand svg{width:22px;height:22px;fill:none;stroke:#03a9ce;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.ha-sidebar nav{display:grid;gap:4px;padding:8px 4px}
.ha-sidebar nav button{border:0;background:none;color:#ddd;text-align:left;min-height:44px;padding:9px 10px;font-size:11px;border-radius:3px}
.ha-sidebar nav button span{display:inline-block;width:23px;font-size:18px;color:#929292;vertical-align:middle}
.ha-sidebar nav button[aria-pressed=true]{background:#123039;color:#00bfe7}
.ha-sidebar nav button[aria-pressed=true] span{color:#00bfe7}
.ha-sidebar-note{margin-top:auto;padding:35px 15px 0;color:#868686;font-size:9px;line-height:1.8}
.ha-main{min-width:0}
.ha-topbar{display:flex;align-items:center;gap:14px;min-height:49px;padding:0 16px;background:#1c1c1c;border-bottom:1px solid #333}
.ha-topbar>span:first-child{font-size:15px;margin-right:auto}
.ha-demo-badge{display:flex;align-items:center;gap:5px;color:#8aadb8;font-size:8px;letter-spacing:1px}
.ha-demo-badge i{width:5px;height:5px;background:#74b8c9;border-radius:50%}
.ha-topbar>button{min-height:44px;background:none;border:0;color:#aaa;font-size:9px;padding:5px}
.ha-topbar>button span{font-size:16px;vertical-align:middle;margin-left:3px}
.ha-mobile-nav{display:none}
.ha-grid{display:grid;grid-template-columns:1.1fr 1.1fr 1fr 1.05fr;align-items:start;gap:13px;padding:19px 16px 12px}
.ha-grid section{min-width:0}
.ha-grid h3{font:400 11px/1.4 Arial,Helvetica,sans-serif;margin:0 0 9px 3px;color:#ddd;letter-spacing:0}
.ha-temperature-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.ha-temperature-card{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:94px;background:#1c1c1c;border:1px solid #333;border-radius:8px;padding:9px 2px;color:#ddd}
.ha-gauge{position:relative;width:min(64px,100%);height:33px;border-radius:64px 64px 0 0;background:conic-gradient(from 270deg at 50% 100%,#039fdb 0deg 36deg,#43a047 36deg 72deg,#ffd600 72deg 108deg,#ff9800 108deg 144deg,#e44b31 144deg 180deg,transparent 180deg);overflow:hidden}
.ha-gauge:before{content:'';position:absolute;left:12%;bottom:-1px;width:76%;height:76%;border-radius:60px 60px 0 0;background:#1c1c1c}
.ha-gauge:after{content:'';position:absolute;left:calc(50% - 1px);bottom:0;width:2px;height:29px;transform-origin:50% 100%;transform:rotate(var(--gauge-angle,9deg));background:linear-gradient(#eee 0 7px,transparent 7px);border-radius:3px}
.ha-temperature-card strong{font-size:12px;font-weight:400;white-space:nowrap;margin-top:-2px;z-index:1}
.ha-temperature-card>span:last-child{font-size:9px;margin-top:9px;text-align:center;line-height:1.3}
.ha-factors{border:1px solid #333;background:#1c1c1c;border-radius:7px;margin-top:6px;overflow:hidden}
.ha-factors h4{font:400 14px/1.4 Arial,Helvetica,sans-serif;letter-spacing:0;margin:0;padding:13px 11px;border-bottom:1px solid #333}
.ha-condition{display:flex;align-items:center;gap:8px;padding:9px 11px;font-size:9px;line-height:1.5}
.ha-condition i{font-style:normal;color:#4b86b3;font-size:16px;width:16px;flex-shrink:0}
.ha-condition[data-met=true] i{color:#ffd600}
.ha-condition span{flex:1;min-width:0}
.ha-condition b{font-weight:400;color:#aaa;font-size:8px;text-align:right}
.ha-threshold{display:flex;justify-content:space-between;gap:8px;border-top:1px solid #333;margin-top:4px;padding:13px 11px;font-size:9px}
.ha-threshold strong{color:#6bd2ec;font-weight:400}
.ha-factors>p{font-size:8px;line-height:1.6;color:#929292;margin:0;padding:0 11px 12px}
.ha-switch-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
.ha-switch{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:95px;border:1px solid #333;border-radius:7px;background:#1c1c1c;color:#ddd;padding:8px 3px;font-size:10px;line-height:1.2;overflow-wrap:anywhere;transition:background .18s,border-color .18s}
.ha-switch svg{width:25px;height:25px;fill:none;stroke:#437ca5;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ha-switch[aria-pressed=true] svg{stroke:#ffcb00}
.ha-switch[aria-pressed=true]{border-color:#625831;background:#262317}
.ha-switch:hover{border-color:#65818d}
.ha-switch>small{font-size:7px;color:#8b8b8b}
.ha-switch[aria-pressed=true]>small{color:#c9b770}
.ha-thermostat-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.ha-thermostat{padding:10px 5px 8px;border:1px solid #333;border-radius:7px;background:#1c1c1c;color:#ddd;min-width:0;text-align:center}
.ha-room-name{display:flex;justify-content:space-between;align-items:center;font-size:10px;line-height:1.4;min-height:22px;padding:0 4px}
.ha-room-name b{color:#929292;font-size:17px;font-weight:400}
.ha-thermostat-dial{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;width:100%;max-width:105px;aspect-ratio:1;margin:12px auto 0;border:7px solid #292929;border-bottom-color:transparent;border-radius:50%}
.ha-thermostat-dial:before{content:'';position:absolute;top:3%;right:17%;width:5px;height:5px;background:#ddd;border-radius:50%}
.ha-mode-label{font-size:8px;font-weight:600}
.ha-thermostat-dial>strong{font-size:27px;line-height:1;font-weight:400;white-space:nowrap}
.ha-thermostat-dial small{font-size:9px;vertical-align:top;line-height:1.4}
.ha-current-temperature{font-size:9px;white-space:nowrap}
.ha-thermostat[data-running=heat] .ha-thermostat-dial{border-top-color:#f5a746;border-right-color:#f5a746;border-left-color:#b37435}
.ha-thermostat[data-running=cool] .ha-thermostat-dial{border-top-color:#56cbeb;border-right-color:#56cbeb;border-left-color:#437ca5}
.ha-thermostat-hint{display:block;color:#7aa6b7;font-size:8px;margin-top:2px;line-height:1.5}
.ha-thermostat:hover{border-color:#6b8d9b}
.ha-thermostat-explanation{font-size:9px;line-height:1.7;margin:12px 2px;color:#8b8b8b}
.ha-weather{border:1px solid #333;background:#1c1c1c;border-radius:7px;padding:16px 10px}
.ha-weather-now{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.ha-weather-now>span{font-size:28px;color:#ffdf35;line-height:1}
.ha-weather-now>div{flex:1}
.ha-weather-now strong{font-size:15px;font-weight:400}
.ha-weather-now small{display:block;font-size:8px;color:#979797;margin-top:4px}
.ha-weather-now>b{font-size:15px;font-weight:400;white-space:nowrap}
.ha-forecast{display:grid;grid-template-columns:repeat(5,1fr);gap:5px;margin-top:20px;text-align:center}
.ha-forecast div{display:flex;flex-direction:column;align-items:center;gap:8px}
.ha-forecast span,.ha-forecast small{font-size:8px;color:#999}
.ha-forecast i{font-style:normal;color:#ffdc35;font-size:20px}
.ha-forecast b{font-size:9px;font-weight:400;white-space:nowrap}
.ha-try-note{display:flex;align-items:start;gap:10px;margin:20px 4px;color:#6facc3}
.ha-try-note>span{font-size:19px}
.ha-try-note p{font-size:10px;line-height:1.7;color:#919191;margin:0}
.ha-feedback{margin:0;padding:14px 16px;color:#86acbc;font-size:10px;line-height:1.7;min-height:45px}
.ha-main[data-tab=heating] .ha-switch-column,.ha-main[data-tab=heating] .ha-weather-column{display:none}
.ha-main[data-tab=heating] .ha-grid{grid-template-columns:1fr 1fr;max-width:850px;margin:auto;gap:30px}
.ha-main[data-tab=devices] .ha-temperature-column,.ha-main[data-tab=devices] .ha-thermostat-column{display:none}
.ha-main[data-tab=devices] .ha-grid{grid-template-columns:1.2fr 1fr;max-width:850px;margin:auto;gap:30px}
.ha-main[data-tab=heating] .ha-temperature-card{min-height:110px}
.ha-main[data-tab=heating] .ha-thermostat-dial{max-width:160px}
.ha-main[data-tab=heating] .ha-thermostat{padding:16px 10px}
.ha-main[data-tab=devices] .ha-switch{min-height:120px}
.ha-main[data-tab=devices] .ha-switch-grid{grid-template-columns:repeat(4,1fr)}
.dashboard-device-bottom{height:29px;display:flex;align-items:center;justify-content:center;border-top:1px solid #3c4953;color:#8194a2;font-size:8px;letter-spacing:2px;margin-top:0}
.dashboard-monitor-stand{width:180px;height:67px;margin:auto;background:linear-gradient(90deg,#26323c,#45525c 50%,#202d37);clip-path:polygon(32% 0,68% 0,73% 85%,100% 95%,100% 100%,0 100%,0 95%,27% 85%)}
.dashboard-note{font-size:10px;color:#8097a9;line-height:1.8;max-width:790px;margin:21px auto 0;text-align:center}
.dashboard-showcase[data-view=mobile] .dashboard-device{max-width:370px;border-radius:36px;padding:23px 10px 0;background:linear-gradient(130deg,#3b4850,#141d23 55%,#46535e)}
.dashboard-showcase[data-view=mobile] .device-camera{top:9px;left:calc(50% - 25px);height:5px;width:50px;border-radius:8px;border:0;background:#04090d}
.dashboard-showcase[data-view=mobile] .ha-screen{grid-template-columns:1fr;border-radius:22px;max-height:650px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#46616b #141414;overscroll-behavior-y:contain}
.dashboard-showcase[data-view=mobile] .ha-sidebar{display:none}
.dashboard-showcase[data-view=mobile] .ha-topbar{padding:0 12px}
.dashboard-showcase[data-view=mobile] .ha-topbar>span:first-child{font-size:16px}
.dashboard-showcase[data-view=mobile] .ha-grid,.dashboard-showcase[data-view=mobile] .ha-main[data-tab] .ha-grid{grid-template-columns:1fr;padding:17px 12px;gap:22px;max-width:none}
.dashboard-showcase[data-view=mobile] .ha-grid h3{font-size:13px}
.dashboard-showcase[data-view=mobile] .ha-temperature-column{order:1}
.dashboard-showcase[data-view=mobile] .ha-thermostat-column{order:2}
.dashboard-showcase[data-view=mobile] .ha-switch-column{order:3}
.dashboard-showcase[data-view=mobile] .ha-weather-column{order:4}
.dashboard-showcase[data-view=mobile] .ha-main[data-tab=overview] .ha-factors{display:none}
.dashboard-showcase[data-view=mobile] .ha-temperature-card{min-height:105px}
.dashboard-showcase[data-view=mobile] .ha-gauge{width:76px;height:39px}
.dashboard-showcase[data-view=mobile] .ha-gauge:after{height:35px}
.dashboard-showcase[data-view=mobile] .ha-temperature-card strong{font-size:14px}
.dashboard-showcase[data-view=mobile] .ha-temperature-card>span:last-child{font-size:11px}
.dashboard-showcase[data-view=mobile] .ha-switch-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.dashboard-showcase[data-view=mobile] .ha-switch{font-size:11px;min-height:106px}
.dashboard-showcase[data-view=mobile] .ha-switch>small{font-size:9px}
.dashboard-showcase[data-view=mobile] .ha-switch svg{width:28px;height:28px}
.dashboard-showcase[data-view=mobile] .ha-mobile-nav{display:flex;gap:5px;padding:9px 12px;border-bottom:1px solid #333;background:#191919}
.ha-mobile-nav button{flex:1;min-height:44px;border:0;border-radius:4px;background:transparent;color:#aaa;font-size:11px}
.ha-mobile-nav button[aria-pressed=true]{background:#16323b;color:#73d4ed}
.dashboard-showcase[data-view=mobile] .ha-room-name{font-size:12px}
.dashboard-showcase[data-view=mobile] .ha-thermostat-dial{max-width:122px}
.dashboard-showcase[data-view=mobile] .ha-thermostat-hint{font-size:10px}
.dashboard-showcase[data-view=mobile] .ha-thermostat-explanation{font-size:11px}
.dashboard-showcase[data-view=mobile] .ha-condition{font-size:11px;padding:10px 12px}
.dashboard-showcase[data-view=mobile] .ha-condition b{font-size:10px}
.dashboard-showcase[data-view=mobile] .ha-threshold{font-size:11px}
.dashboard-showcase[data-view=mobile] .ha-factors>p{font-size:10px}
.dashboard-showcase[data-view=mobile] .ha-weather-now strong{font-size:20px}
.dashboard-showcase[data-view=mobile] .ha-weather-now>b{font-size:20px}
.dashboard-showcase[data-view=mobile] .ha-weather-now small,.dashboard-showcase[data-view=mobile] .ha-forecast span,.dashboard-showcase[data-view=mobile] .ha-forecast small{font-size:10px}
.dashboard-showcase[data-view=mobile] .ha-forecast b{font-size:12px}
.dashboard-showcase[data-view=mobile] .dashboard-monitor-stand{display:none}
.dashboard-showcase[data-view=mobile] .dashboard-device-bottom{height:25px;border-top:0;margin:0}
.dashboard-showcase[data-view=mobile] .dashboard-device-bottom span{display:block;font-size:0;background:#71838d;width:85px;height:4px;border-radius:8px}
.ha-control-dialog{padding:25px;border:1px solid #355363;border-radius:9px;color:#dceaf0;background:#13202a;max-width:calc(100vw - 28px);font-family:Arial,Helvetica,sans-serif;box-shadow:0 24px 90px #000b}
.ha-control-dialog{width:430px}
.ha-control-dialog::backdrop{background:#020710d9;backdrop-filter:blur(5px)}
.ha-dialog-heading{display:flex;justify-content:space-between;gap:15px;align-items:start}
.ha-dialog-heading>div>span{color:#71b4cc;font-size:9px;letter-spacing:1px}
.ha-dialog-heading h3{font:400 22px/1.4 var(--display);margin:8px 0 0}
.ha-dialog-heading>button{background:transparent;border:1px solid #365160;border-radius:4px;color:#b4ccd8;font-size:26px;min-width:44px;min-height:44px;line-height:1}
.ha-target-label{font-size:12px;color:#94acba;margin:26px 0 12px;text-align:center}
.ha-target-controls{display:flex;align-items:center;justify-content:center;gap:27px}
.ha-target-controls button{width:48px;min-height:48px;background:#193747;border:1px solid #416b80;border-radius:50%;color:#bcebf8;font-size:24px}
.ha-target-controls output{font-size:37px;font-weight:400;min-width:128px;text-align:center;font-variant-numeric:tabular-nums}
.ha-mode-controls{display:flex;gap:6px;margin:25px 0 15px}
.ha-mode-controls button{flex:1;min-height:44px;padding:10px 7px;border:1px solid #365362;border-radius:4px;background:#10222e;color:#8faab8;font-size:12px}
.ha-mode-controls button[aria-pressed=true]{background:#204555;border-color:#72c5df;color:#d6f5ff}
.ha-mode-controls button[data-ha-mode=heat][aria-pressed=true]{background:#443221;border-color:#d29b65;color:#ffd7af}
.ha-dialog-status{font-size:12px;line-height:1.8;min-height:44px;color:#a9cad8;margin-bottom:20px}
.ha-sensor-demo{border-top:1px solid #304652;padding-top:20px}
.ha-sensor-demo label{display:flex;justify-content:space-between;gap:14px;align-items:center;font-size:11px;line-height:1.6;color:#8faab9}
.ha-sensor-demo label output{color:#d1eff8;font-size:15px;white-space:nowrap}
.ha-sensor-demo input[type=range]{margin-top:10px;height:35px;border:0;background:transparent;padding:0;accent-color:#62cde9;cursor:pointer}
.ha-sensor-demo>div{display:flex;justify-content:space-between;font-size:10px;color:#6f8f9f}
.ha-dialog-note{font-size:10px;line-height:1.8;color:#7897a7;margin:20px 0 0}
.dashboard-section button{touch-action:manipulation}
.dashboard-section button:focus-visible{outline:2px solid #a9eaff;outline-offset:3px}
.dashboard-section button:disabled{opacity:.45;cursor:default}
@media(max-width:1150px){.ha-screen{grid-template-columns:125px minmax(0,1fr)}.ha-grid{grid-template-columns:1fr 1fr;gap:20px}.ha-grid h3{font-size:12px}.ha-temperature-card{min-height:105px}.ha-switch{min-height:105px;font-size:12px}.ha-switch>small{font-size:9px}.ha-gauge{width:76px;height:39px}.ha-gauge:after{height:35px}.ha-room-name{font-size:12px}.ha-thermostat-dial{max-width:120px}.ha-thermostat-explanation{font-size:11px}.ha-try-note{display:none}.ha-condition{font-size:11px}.ha-condition b{font-size:10px}.ha-screen{min-height:550px}}
@media(max-width:800px){.dashboard-section{padding-top:30px;padding-bottom:55px}.ha-screen{grid-template-columns:1fr}.ha-sidebar{display:none}.ha-mobile-nav{display:flex;gap:5px;padding:8px 12px}.ha-grid,.ha-main[data-tab] .ha-grid{grid-template-columns:1fr 1fr;gap:18px;padding:18px 12px}.dashboard-toolbar{gap:8px;flex-wrap:wrap}.ha-switch{font-size:10px}.ha-screen{min-height:460px}.ha-condition{font-size:10px}.ha-condition b{font-size:9px}}
@media(max-width:480px){.dashboard-showcase{padding-top:15px}.dashboard-device{padding-left:6px;padding-right:6px}.ha-grid,.ha-main[data-tab] .ha-grid{grid-template-columns:1fr}.dashboard-note{font-size:11px;text-align:left}.device-view-tabs button{font-size:12px;padding:9px 14px}.ha-dialog-heading h3{font-size:19px}.ha-target-controls{gap:18px}.ha-target-controls output{font-size:32px}.ha-mode-controls button{font-size:11px}.ha-control-dialog{padding:22px 18px}}
@media(prefers-reduced-motion:reduce){.dashboard-device,.ha-switch{transition:none}}
