/* Вилла Нирвана — приложение (PWA). Тёмная тема по макетам 1D / 1F / 2E / «Давление». */

@font-face{font-family:Onest;font-weight:400;font-display:swap;src:url(fonts/onest-cyrillic-400-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Onest;font-weight:400;font-display:swap;src:url(fonts/onest-latin-400-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Onest;font-weight:500;font-display:swap;src:url(fonts/onest-cyrillic-500-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Onest;font-weight:500;font-display:swap;src:url(fonts/onest-latin-500-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Onest;font-weight:600;font-display:swap;src:url(fonts/onest-cyrillic-600-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Onest;font-weight:600;font-display:swap;src:url(fonts/onest-latin-600-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:Onest;font-weight:700;font-display:swap;src:url(fonts/onest-cyrillic-700-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Onest;font-weight:700;font-display:swap;src:url(fonts/onest-latin-700-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Cormorant Garamond";font-weight:600;font-display:swap;src:url(fonts/cormorant-garamond-cyrillic-600-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Cormorant Garamond";font-weight:600;font-display:swap;src:url(fonts/cormorant-garamond-latin-600-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root{
  --bg:#0D1110; --ink:#FFFFFF; --ink2:#D7DDD9; --ink3:#AEB6B2;
  --accent:#E2B672; --ok:#5CC48D; --warn:#F0A64B; --warn-deep:#C26A00; --crit:#E0483B; --crit-deep:#8C1A13; --off:#8A938F;
  --hot:#F07A45; --cold:#4F8FD6;
  --st:env(safe-area-inset-top,0px); --sb:env(safe-area-inset-bottom,0px);
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;height:100%;background:var(--bg);color:var(--ink);font-family:Onest,system-ui,-apple-system,sans-serif;font-variant-numeric:tabular-nums;-webkit-font-smoothing:antialiased;overscroll-behavior:none}
/* Ведёт себя как приложение, а не как сайт: страница не ездит и не пружинит, нет полос прокрутки,
   текст не выделяется долгим нажатием, двойной тап не увеличивает. Прокручиваются только свои области. */
html,body{position:fixed;inset:0;width:100%;overflow:hidden;touch-action:manipulation;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
input,textarea{-webkit-user-select:text;user-select:text}
img,svg{-webkit-user-drag:none;user-select:none}
*{scrollbar-width:none}
*::-webkit-scrollbar{display:none;width:0;height:0}
button{font-family:inherit;color:inherit;cursor:pointer}
a{color:inherit;text-decoration:none}
.serif{font-family:"Cormorant Garamond",Georgia,serif;font-weight:600}
.ico-inline{width:16px;height:16px;vertical-align:-3px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

#app{position:relative;max-width:480px;min-height:100%;height:100dvh;margin:0 auto;overflow:hidden}
.screen{position:absolute;inset:0;overflow:hidden}
.screen.scroll{overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:none}
.scroll-in{position:absolute;inset:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:none}
.fade-in{animation:fade .25s ease-out}
@keyframes fade{from{opacity:0}to{opacity:1}}

/* Стекло. Живое размытие (backdrop-filter) дорого для телефона, особенно когда при свайпе едут два экрана.
   Под карточками и так уже размытое фото или ровный тёмный фон — размывать его ещё раз незачем.
   Поэтому .glass — полупрозрачный цвет, а живое размытие оставлено только там, где под ним резкое фото
   или прокручивается содержимое: меню, температуры на фото, шторки (.frost, .sheet). */
.glass{background:rgba(22,27,26,.5);border:1px solid rgba(255,255,255,.15);box-shadow:inset 0 1px 0 rgba(255,255,255,.12)}
.frost{background:rgba(18,22,21,.42);-webkit-backdrop-filter:blur(24px) saturate(160%);backdrop-filter:blur(24px) saturate(160%)}
.sheet{background:rgba(22,27,25,.78);-webkit-backdrop-filter:blur(30px) saturate(160%);backdrop-filter:blur(30px) saturate(160%);border:1px solid rgba(255,255,255,.16)}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .frost{background:rgba(24,30,28,.92)} .sheet{background:#1A201E}
}
html.lite .frost{background:rgba(24,30,28,.92);backdrop-filter:none;-webkit-backdrop-filter:none}

/* Фон */
.bg-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.bg-blur{transform:scale(1.25)}  /* картинка уже размыта заранее: img/interior-blur.jpg */
.dim{position:absolute;inset:0;background:rgba(8,11,10,.64)}
.grad-top{position:absolute;inset:0;background:linear-gradient(180deg,rgba(8,11,10,.72) 0%,rgba(8,11,10,0) 34%)}
.grad-bot{position:absolute;inset:0;background:linear-gradient(180deg,rgba(8,11,10,0) 42%,rgba(8,11,10,.85) 100%)}

/* Главный */
.head{position:absolute;left:20px;right:20px;top:calc(var(--st) + 16px);display:flex;align-items:flex-start;justify-content:space-between}
.brand{font-size:12px;font-weight:600;letter-spacing:1.6px;color:var(--accent)}
.title{font-size:42px;line-height:1;margin-top:4px}
.pill{display:inline-flex;align-items:center;gap:8px;height:30px;padding:0 12px;border-radius:15px;font-size:13px;color:#E8ECE9;margin-top:10px}
.dot{width:8px;height:8px;border-radius:4px;flex-shrink:0}
.dot.ok{background:var(--ok)} .dot.warn{background:var(--warn)} .dot.crit{background:var(--crit)} .dot.offline,.dot.none{background:var(--off)}
.live{animation:pulse 2.4s ease-out infinite}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(92,196,141,.55)}70%{box-shadow:0 0 0 10px rgba(92,196,141,0)}100%{box-shadow:0 0 0 0 rgba(92,196,141,0)}}
.round-btn{width:44px;height:44px;border-radius:22px;display:flex;align-items:center;justify-content:center;padding:0}
.round-btn svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

.main-bottom{position:absolute;left:16px;right:16px;bottom:calc(var(--sb) + 104px);display:flex;flex-direction:column;gap:10px}
.status-card{border-radius:26px;padding:16px 18px;display:flex;flex-direction:column;gap:12px;text-align:left;width:100%}
.status-row{display:flex;align-items:center;gap:12px}
.status-badge{width:40px;height:40px;border-radius:13px;display:flex;align-items:center;justify-content:center;color:#0D1110;flex-shrink:0}
.status-badge svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.st-ok .status-badge{background:var(--ok)}
.st-warn .status-badge{background:var(--warn)}
.st-crit .status-badge{background:var(--crit);color:#fff}
.st-offline .status-badge{background:var(--off)}
.st-crit.status-card{background:rgba(140,26,19,.62);border-color:rgba(255,140,120,.4)}
.st-warn.status-card{background:rgba(120,70,10,.45);border-color:rgba(240,166,75,.4)}
.status-main{flex:1;display:flex;flex-direction:column;gap:1px;min-width:0}
.status-title{font-size:24px;font-weight:700;letter-spacing:-.4px;line-height:1.1}
.status-sub{font-size:13px;color:var(--ink2)}
.chev{width:18px;height:18px;fill:none;stroke:var(--ink2);stroke-width:2;stroke-linecap:round;flex-shrink:0}
.chips{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding-top:12px;border-top:1px solid rgba(255,255,255,.14)}
.chip{display:flex;align-items:center;gap:6px;font-size:12px;color:#E8ECE9;white-space:nowrap}
.chip .dot{width:7px;height:7px}
.tiles2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tile{border-radius:22px;padding:14px 16px;display:flex;flex-direction:column;gap:4px}
.tile-label{font-size:13px;color:var(--ink2)}
.tile-value{font-size:34px;font-weight:600;letter-spacing:-.8px;line-height:1}
.tile-note{font-size:11px;color:var(--ink3)}

.subline{margin-top:6px;font-size:14px;color:#E8ECE9}
.enter2{position:absolute;left:20px;right:20px;top:calc(var(--st) + 148px);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.enter{display:flex;align-items:center;gap:8px;height:52px;padding:0 10px 0 8px;border-radius:26px;border-color:rgba(226,182,114,.55)!important;min-width:0}
.enter-ic{width:34px;height:34px;border-radius:17px;background:var(--accent);color:#15130E;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.enter-ic svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.enter-t{display:flex;flex-direction:column;min-width:0;flex:1}
.enter-t b{font-size:15px;font-weight:700;white-space:nowrap}
.enter-t small{font-size:11px;color:#C9D0CC;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.enter .chev{width:14px;height:14px;stroke-width:2.2}
.screen > .status-card{position:absolute;left:16px;right:16px;bottom:calc(var(--sb) + 104px);width:auto;border-radius:28px;padding:16px 14px 14px;gap:14px}
.screen > .status-card .status-row{padding:0 4px;gap:10px}
.screen > .status-card .status-badge{width:28px;height:28px;border-radius:9px}
.screen > .status-card .status-badge svg{width:16px;height:16px;stroke-width:3}
.screen > .status-card .status-title{font-size:19px;letter-spacing:0}
.screen > .status-card .status-sub{font-size:12px;color:#C9D0CC}
.rings{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}
.ring{display:flex;flex-direction:column;align-items:center;gap:6px}
.ring-box{position:relative;width:72px;height:72px}
.ring-box svg{display:block}
.ring-v{position:absolute;left:0;right:0;top:23px;text-align:center;font-size:19px;font-weight:600}
.ring-v.sm{top:20px;font-size:15px}
.ring-u{position:absolute;left:0;right:0;top:45px;text-align:center;font-size:10px;color:#C9D0CC}
.ring-n{font-size:12px;color:#E8ECE9;white-space:nowrap}
.ring-off .ring-v{color:#6F7A75}.ring-off .ring-n{color:#AEB6B2}

/* План дома (1F) */
.outd{display:flex;flex-direction:column;align-items:flex-end;padding:8px 12px;border-radius:16px}
.outd span{font-size:11px;color:var(--ink3)} .outd b{font-size:18px;font-weight:600}
.pill.ok{color:#CFF1DD;font-weight:600} .pill.warn{color:#FFD9A8;font-weight:600} .pill.crit{color:#FFC4BC;font-weight:600}
.plan-wrap{position:absolute;left:50%;top:calc(var(--st) + 150px);width:390px;height:380px;margin-left:-195px;transform-origin:top center;transition:top .3s ease}
.plan-wrap.lifted{z-index:5}
.plan{position:absolute;inset:0}
.plan > svg{position:absolute;left:0;top:0}
.plan > img{position:absolute}
.zmask{pointer-events:none}
.leak{position:absolute;width:16px;height:16px;margin:-8px 0 0 -8px;border-radius:8px;background:rgba(13,17,16,.8);border:1.5px solid var(--ok);display:flex;align-items:center;justify-content:center}
.leak svg{width:9px;height:9px;fill:var(--ok);stroke:none}
.leak.nodata{border-color:var(--off)}
.leak.bad{width:20px;height:20px;margin:-10px 0 0 -10px;border-radius:10px;background:#E5484D;border-color:#fff;animation:alarm 1.2s ease-out infinite}
@keyframes alarm{0%{box-shadow:0 0 0 0 rgba(229,72,77,.85)}80%{box-shadow:0 0 0 18px rgba(229,72,77,0)}100%{box-shadow:0 0 0 0 rgba(229,72,77,0)}}
.leak.off{width:12px;height:12px;margin:-6px 0 0 -6px;border-radius:6px;background:rgba(13,17,16,.55);border:1.5px dashed rgba(255,255,255,.5)}
.plbl{position:absolute;display:flex;flex-direction:column;align-items:center;gap:1px;border:0;background:transparent;padding:4px 0;border-radius:12px}
.plbl:active,.plbl:focus-visible{background:rgba(255,255,255,.06)}
.plbl-n{font-size:12px;color:#8A938F;white-space:nowrap;display:flex;align-items:center;gap:5px}
.plbl-v{font-size:20px;font-weight:600;line-height:1.1;color:#6F7A75}
.plbl.on .plbl-n{color:#C9D0CC} .plbl.on .plbl-v{color:#fff}
.plbl.eng.ok .plbl-n{color:#9FE3BC}
.leakcard{position:absolute;left:16px;right:16px;bottom:calc(var(--sb) + 104px);border-radius:26px;padding:14px 18px 16px;display:flex;flex-direction:column;gap:10px}
.lc-head{display:flex;align-items:baseline;justify-content:space-between}
.lc-t{font-size:15px;font-weight:600}
.lc-s{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600}
.lc-s.ok{color:#9FE3BC} .lc-s.crit{color:#FFC4BC} .lc-s.none{color:var(--ink3)}
.lc-s .dot,.lrow .dot{width:7px;height:7px}
.lrows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px}
.lrow{display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0}
.lrow-n{font-size:13px;color:#C9D0CC;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lrow-v{display:flex;align-items:center;gap:5px;font-size:13px;font-weight:600;color:#E8ECE9}
.lc-add{display:flex;align-items:center;gap:8px;padding:10px 0 0;border:0;border-top:1px solid rgba(255,255,255,.12);background:none;font-size:13px;color:var(--ink3)}
.lc-ring{width:10px;height:10px;border-radius:5px;border:1.5px dashed rgba(255,255,255,.45);flex-shrink:0}
.lc-hint{font-size:12px;color:var(--ink3)}
.addbtn{font-size:13px;font-weight:600;color:var(--accent);white-space:nowrap}
.addbtn.sm{font-size:11px;margin-top:auto}
.scrim{position:absolute;inset:0;z-index:4;background:rgba(6,8,7,.6)}
.scrim.dark{background:linear-gradient(180deg,rgba(9,12,11,.97) 0,rgba(9,12,11,.97) 160px,rgba(6,8,7,.8) 250px)}
.zsheet{padding:8px 16px calc(var(--sb) + 16px);gap:10px;border-radius:32px;background:rgba(16,20,19,.9);box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 -20px 60px rgba(0,0,0,.4)}
.tile2{border-radius:20px;color:#fff;display:flex;align-items:center;gap:14px;padding:16px;font:inherit;width:100%}
.tile2.on{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18)}
.tile2.off{background:rgba(255,255,255,.02);border:1.5px dashed rgba(255,255,255,.18)}
.tile2.bad{background:rgba(140,26,19,.5);border-color:rgba(255,140,120,.5)}
.t2-n{display:flex;align-items:center;gap:6px;font-size:13px;color:#D2D8D4}
.t2-n.off{color:#8A938F}
.t2-n svg{width:15px;height:15px;fill:none;stroke:#6F7A75;stroke-width:2;stroke-linecap:round}
.t2-n svg.ic-gold{stroke:var(--accent)}
.t2-v{font-size:40px;font-weight:600;letter-spacing:-1.5px;line-height:1}
.t2-v.off{color:#59625E;letter-spacing:0}
.t2-s{font-size:12px;line-height:1.35;color:#8A938F}
.tile2.on .t2-s{color:var(--ink3)}
.tiles-s{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.tile2.small{flex-direction:column;align-items:flex-start;gap:2px;padding:10px 12px;min-height:100px}
.tile2.small > svg{width:18px;height:18px;fill:none;stroke:#6F7A75;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tile2.small > svg.ic-ok{fill:var(--ok);stroke:none} .tile2.small > svg.ic-crit{fill:#fff;stroke:none}
.tn{font-size:12px;color:#8A938F;margin-top:4px} .tn.on{color:#D2D8D4}
.tv{font-size:22px;font-weight:600;color:#59625E;line-height:1.1} .tv.on{color:#fff}
.t2-link{display:flex;align-items:center;gap:5px;font-size:11px;color:#9FE3BC}
.t2-link .dot{width:6px;height:6px}
.eng-btn{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:18px;background:var(--accent);color:#15130E}
.eng-btn svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.eng-btn .chev{width:18px;height:18px;stroke:currentColor;stroke-width:2.2}
.add-room{height:44px;border-radius:16px;border:1.5px dashed rgba(226,182,114,.6);background:rgba(226,182,114,.08);color:var(--accent);font-size:15px;font-weight:600;width:100%}
.btn-gold{display:flex;align-items:center;justify-content:center;height:48px;border-radius:16px;background:var(--accent);color:#15130E;font-size:16px;font-weight:700}

/* Термостат */
.thermo{position:absolute;inset:0;z-index:20;background:rgba(8,11,10,.94);-webkit-backdrop-filter:blur(30px);backdrop-filter:blur(30px);display:flex;flex-direction:column;align-items:center;padding:calc(var(--st) + 12px) 20px calc(var(--sb) + 24px);overflow-y:auto}
.th-top{align-self:stretch;display:flex;align-items:center;justify-content:space-between}
.th-top .back{padding-left:0;white-space:nowrap}
.th-top .state-pill{font-size:12px;height:30px;color:#E8ECE9}
.th-title{align-self:flex-start;margin-top:6px;font-size:34px;line-height:1}
.th-dial{position:relative;width:300px;height:300px;margin-top:18px;flex-shrink:0}
.th-center{position:absolute;left:0;right:0;top:86px;display:flex;flex-direction:column;align-items:center;gap:4px}
.th-big{font-size:72px;font-weight:600;letter-spacing:-3px;line-height:1}
.th-big span{font-size:30px;vertical-align:top;letter-spacing:0}
.th-min,.th-max{position:absolute;top:262px;font-size:12px;color:#8A938F}
.th-min{left:34px} .th-max{right:30px}
.th-pm{display:flex;align-items:center;gap:40px;margin-top:-6px}
.th-pm button{width:64px;height:64px;border-radius:32px;font-size:30px;display:flex;align-items:center;justify-content:center;padding:0;opacity:.35;cursor:default}
.th-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-self:stretch;margin-top:22px}
.th-modes button{height:56px;border-radius:18px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.05);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;opacity:.45;cursor:default}
.th-note{margin-top:auto;padding-top:16px;align-self:stretch;display:flex;align-items:center;gap:10px}
.th-note{padding:12px 14px;margin-top:22px;border-radius:16px;background:rgba(226,182,114,.08);border:1px solid rgba(226,182,114,.25);font-size:12px;line-height:1.4;color:#D9C9A8}
.th-note svg{width:18px;height:18px;flex-shrink:0;fill:none;stroke:var(--accent);stroke-width:2;stroke-linecap:round}
.srow{display:flex;align-items:center;gap:10px;font-size:14px;padding:4px 0}
.srow-v{color:var(--ink3);white-space:nowrap}

/* Нижнее меню-капсула */
.nav{position:absolute;left:16px;right:16px;bottom:max(12px, calc(var(--sb) - 12px));height:64px;border-radius:32px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:6px;gap:4px;z-index:5}
.nav button{border:0;border-radius:26px;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:11px;font-weight:500;color:var(--ink2)}
.nav button[aria-current="page"]{background:rgba(255,255,255,.16);color:#fff;font-weight:600}
.nav svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

/* Внутренние экраны */
.topbar{position:absolute;left:0;right:0;top:calc(var(--st) + 12px);display:flex;align-items:center;justify-content:space-between;padding:0 12px 0 8px;z-index:3}
.back{display:flex;align-items:center;gap:2px;height:44px;padding:0 8px;font-size:16px;font-weight:500;color:var(--accent);background:none;border:0}
.back svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.state-pill{display:flex;align-items:center;gap:6px;height:32px;padding:0 12px;border-radius:16px;font-size:13px;font-weight:600}
.state-pill.ok{color:#CFF1DD} .state-pill.warn{color:#FFD9A8} .state-pill.crit{color:#FFC4BC} .state-pill.offline,.state-pill.none{color:#D7DDD9}
.h1{position:absolute;left:20px;top:calc(var(--st) + 64px);font-size:38px;line-height:1}
.hint{position:absolute;left:20px;top:calc(var(--st) + 106px);font-size:13px;color:var(--ink3)}

.iso{position:absolute;left:50%;top:calc(var(--st) + 150px);width:358px;height:440px;margin-left:-179px;transform-origin:top center}
.iso svg{position:absolute;left:0;top:0}
.lbl{position:absolute;display:flex;flex-direction:column;gap:2px}
.lbl-n{font-size:13px;color:#D2D8D4}
.lbl-v{font-size:24px;font-weight:600;line-height:1}
.lbl-v small{font-size:14px;color:var(--ink3);font-weight:600}
.hit{position:absolute;border:0;padding:0;background:transparent;border-radius:14px}
.hit:active,.hit:focus-visible{background:rgba(255,255,255,.07);outline:1.5px solid rgba(255,255,255,.35)}
.flow{stroke-dasharray:3 9;animation:dash 1.2s linear infinite}
.pulse{animation:po 3s ease-in-out infinite}
.iso.still .flow,.iso.still .pulse{animation:none;opacity:.35}
@keyframes dash{to{stroke-dashoffset:-24}}
.pulse-o{animation:po 3s ease-in-out infinite}
@keyframes po{0%,100%{opacity:.45}50%{opacity:.85}}
.sh{filter:blur(6px)} .glow{filter:blur(5px)}

.tiles3{position:absolute;left:16px;right:16px;bottom:calc(var(--sb) + 100px);display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:10px}
.tiles3 .tile{border-radius:22px;padding:12px 14px}
.tiles3 .tile-value{font-size:26px;letter-spacing:-.6px}
.spark{display:block;width:100%;height:22px}

.bsheet{position:absolute;left:8px;right:8px;bottom:calc(var(--sb) + 8px);border-radius:32px;padding:10px 20px 26px;display:flex;flex-direction:column;gap:14px;z-index:6;animation:up .28s ease-out}
@keyframes up{from{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}
.grab{display:flex;justify-content:center}.grab span{width:40px;height:5px;border-radius:3px;background:rgba(255,255,255,.3)}
.sheet-head{display:flex;align-items:center;justify-content:space-between}
.sheet-title{font-size:20px;font-weight:700}
.x{width:36px;height:36px;border-radius:18px;border:0;background:rgba(255,255,255,.12);display:flex;align-items:center;justify-content:center;padding:0}
.x svg{width:16px;height:16px;stroke:#fff;stroke-width:2.4;stroke-linecap:round;fill:none}
.kv3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.kv-n{font-size:12px;color:var(--ink3)} .kv-v{font-size:24px;font-weight:600}
.para{font-size:14px;line-height:1.45;color:#D2D8D4}
.bar-floor{flex:1;height:8px;border-radius:4px;background:linear-gradient(90deg,#F0A06A,#7FA8D9)}

/* Давление */
.page{padding:calc(var(--st) + 64px) 0 calc(var(--sb) + 110px)}
.big{display:flex;align-items:baseline;gap:10px;margin-top:8px}
.big-v{font-size:64px;font-weight:700;letter-spacing:-1.5px;line-height:1}
.big-u{font-size:22px;font-weight:500;color:#D2D8D4}
.card{margin:12px 16px 0;border-radius:24px;padding:16px 18px;display:flex;flex-direction:column;gap:8px}
.seg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:4px;border-radius:14px;background:rgba(0,0,0,.28)}
.seg button{height:36px;border:0;border-radius:10px;font-size:14px;font-weight:600;background:transparent;color:#C3CAC6}
.seg button[aria-pressed="true"]{background:rgba(255,255,255,.18);color:#fff}
.chart{display:block;width:100%;height:auto}
.ticks{display:flex;justify-content:space-between;font-size:12px;color:#C3CAC6}
.ev{display:flex;gap:12px;padding:14px 18px;border-bottom:1px solid rgba(255,255,255,.12)}
.ev:last-child{border-bottom:0}
.ev-t{width:62px;font-size:13px;color:var(--ink3);flex-shrink:0}
.ev-x{font-size:14px;line-height:1.4}
.empty{padding:18px;font-size:14px;color:var(--ink3)}

/* Заставка */
/* Заставка: бренд «Дмитрий Дом» → дом «Вилла Нирвана» → «Дом на связи». Только transform и opacity — плавно на любом телефоне.
   Фото стоит ровно там же, где на «Обзоре», поэтому заставка не обрывается, а растворяется в приложение. */
.splash{position:fixed;inset:0;z-index:50;background:#0B0E0D;overflow:hidden;transition:opacity .45s ease;-webkit-user-select:none;user-select:none}
.splash.out{opacity:0;pointer-events:none}
.sp-photo{position:absolute;left:0;right:0;top:0;height:calc(var(--st) + 40vh + 40px);opacity:0;transform:scale(1.08);transform-origin:50% 40%;
  transition:opacity 1.3s cubic-bezier(.2,.7,.2,1),transform 2.4s cubic-bezier(.2,.7,.2,1)}
.sp-photo img{width:100%;height:100%;object-fit:cover;object-position:40% 58%}
.sp-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(8,10,10,.55) 0,rgba(8,10,10,0) 30%,transparent 50%,rgba(11,14,13,.8) 80%,#0B0E0D 100%)}
.sp-brand{position:absolute;left:0;right:0;top:50%;display:flex;flex-direction:column;align-items:center;transform:translateY(-50%);
  transition:transform 1.1s cubic-bezier(.65,0,.25,1)}
.sp-word{font-family:"Cormorant Garamond",Georgia,serif;font-weight:600;font-size:min(30px, 7.4vw);line-height:1;color:#F3E6CF;letter-spacing:.26em;padding-left:.26em;white-space:nowrap;
  opacity:0;transform:scale(1.06);transition:opacity 1s ease,transform 1.6s cubic-bezier(.2,.7,.2,1)}
.sp-line{display:block;height:1px;width:180px;margin:16px 0 12px;background:linear-gradient(90deg,transparent,var(--accent) 20%,#FFE3B0 50%,var(--accent) 80%,transparent);
  transform:scaleX(0);transition:transform 1.1s cubic-bezier(.65,0,.25,1)}
.sp-tag{font-size:12px;font-weight:600;letter-spacing:.32em;padding-left:.32em;color:#AEB6B2;opacity:0;transition:opacity .8s ease}
.sp-house{position:absolute;left:24px;right:24px;top:calc(var(--st) + 40vh + 96px);text-align:center;opacity:0;transform:translateY(14px);transition:opacity .9s ease,transform 1s cubic-bezier(.2,.7,.2,1)}
.sp-house .k{font-size:11.5px;font-weight:600;letter-spacing:.28em;color:var(--accent)}
.sp-house .n{font-family:"Cormorant Garamond",Georgia,serif;font-weight:600;font-size:46px;line-height:1.05;margin-top:6px}
.sp-status{position:absolute;left:50%;bottom:calc(var(--sb) + 40px);transform:translate(-50%,12px);opacity:0;height:40px;padding:0 18px;border-radius:20px;
  display:flex;align-items:center;gap:10px;white-space:nowrap;font-size:14px;font-weight:600;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);
  transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.2,1)}
.sp-dot{width:9px;height:9px;border-radius:50%;background:var(--accent);animation:po 1s ease-in-out infinite}
.sp-status.ok .sp-dot{background:var(--ok);animation:none;box-shadow:0 0 0 4px rgba(92,196,141,.18)}
.sp-status.warn .sp-dot{background:var(--warn);animation:none}
.sp-status.offline .sp-dot{background:var(--off);animation:none}
.sp-skip{position:absolute;right:16px;top:calc(var(--st) + 10px);font-size:12.5px;color:rgba(255,255,255,.55);padding:8px;opacity:0;transition:opacity .6s ease 1.2s}
/* такты */
.splash.b1 .sp-word{opacity:1;transform:none}
.splash.b1 .sp-line{transform:scaleX(1)}
.splash.b1 .sp-tag{opacity:1}
.splash.b1 .sp-skip{opacity:1}
.splash.b2 .sp-photo{opacity:1;transform:none}
.splash.b2 .sp-brand{transform:translateY(calc(-50vh + var(--st) + 40vh + 6px)) scale(.62)}
.splash.b2 .sp-tag{opacity:0}
.splash.b2 .sp-house{opacity:1;transform:none}
.splash.b3 .sp-status{opacity:1;transform:translate(-50%,0)}
.splash.done .sp-brand,.splash.done .sp-house,.splash.done .sp-status,.splash.done .sp-skip{opacity:0;transition:opacity .3s ease}
/* короткая версия — сразу итоговый кадр */
.splash.short *{transition-duration:.5s !important}
@media (prefers-reduced-motion:reduce){.splash *{transition-duration:.01s !important;animation:none !important}}

/* Подсказка установки */
.install{position:fixed;left:0;right:0;bottom:0;padding:12px 12px calc(var(--sb) + 12px);z-index:40}
.install-card{max-width:456px;margin:0 auto;border-radius:22px;padding:16px 18px;display:flex;flex-direction:column;gap:8px}
.install-title{font-size:16px;font-weight:700}
.install-text{font-size:14px;line-height:1.45;color:var(--ink2)}
.btn-text{align-self:flex-end;border:0;background:none;color:var(--accent);font-size:15px;font-weight:600;height:40px;padding:0 6px}

@media (prefers-reduced-motion:reduce){.flow,.pulse,.leak.bad,.pulse-o,.live,.bsheet,.fade-in{animation:none}}
@media (max-height:700px){.title{font-size:34px}.tile-value{font-size:28px}.enter2{top:calc(var(--st) + 112px)}.screen > .status-card{bottom:calc(var(--sb) + 96px)}.leakcard{bottom:calc(var(--sb) + 96px)}}

/* Планшет и компьютер: телефонная колонка по центру на размытом фото виллы */
@media (min-width:600px){
  body::before{content:"";position:fixed;inset:-60px;background:url(img/house.jpg) center/cover;filter:blur(36px) brightness(.4) saturate(110%);z-index:-1}
  body{background:transparent}
  #app{box-shadow:0 0 0 1px rgba(255,255,255,.08),0 30px 90px rgba(0,0,0,.65)}
  .install{display:none}
}
/* Метка тестового стенда */
.stage-badge{position:fixed;top:calc(var(--st) + 4px);left:50%;transform:translateX(-50%);z-index:60;background:#C26A00;color:#fff;font-size:11px;font-weight:700;letter-spacing:1px;padding:3px 10px;border-radius:10px;pointer-events:none}

/* ---------- 1G «Дом» списком и шторка комнаты с «−/+» (холст, «Показ владельцу», 19.10) ---------- */
.topbar{position:absolute;left:12px;right:20px;top:calc(var(--st) + 8px);display:flex;align-items:center;justify-content:space-between;z-index:2}
.topbar .state-pill{height:30px;padding:0 12px;border-radius:15px;font-size:12px}
.house-head{position:absolute;left:20px;right:20px;top:calc(var(--st) + 58px);display:flex;flex-direction:column;gap:4px}
.house-scroll{position:absolute;left:16px;right:16px;top:calc(var(--st) + 130px);bottom:calc(var(--sb) + 100px);overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:none;display:flex;flex-direction:column;gap:8px;padding-bottom:12px}
.house-plan{display:block;width:250px;max-width:70%;margin:0 auto 6px;opacity:.9}
.hsec{font-size:12px;font-weight:600;letter-spacing:1px;text-transform:uppercase;color:#AEB6B2;padding:6px 0 0 4px}
.hrow{display:flex;align-items:center;gap:12px;min-height:68px;padding:0 14px 0 11px;border-radius:20px;text-align:left;width:100%;color:#fff;font:inherit}
.hrow.bad{border-color:rgba(229,72,77,.7)}
.hico{width:46px;height:46px;border-radius:14px;display:flex;align-items:center;justify-content:center;flex-shrink:0;background:rgba(226,182,114,.18);color:var(--accent)}
.hico svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.hrow-t{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}
.hrow-t b{font-size:16px;font-weight:600}
.hrow-t small{font-size:12px;color:#AEB6B2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hrow-v{font-size:24px;font-weight:600;font-variant-numeric:tabular-nums}
.hrow .chev{width:16px;height:16px;fill:none;stroke:#D7DDD9;stroke-width:2.2;stroke-linecap:round}
.hgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.hdash{height:46px;border-radius:16px;display:flex;align-items:center;justify-content:space-between;gap:6px;padding:0 12px;min-width:0;border:1.5px dashed rgba(255,255,255,.2);background:rgba(255,255,255,.03);color:#D2D8D4;font:inherit;font-size:14px}
.hdash span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hdash b{color:var(--accent);font-size:18px;font-weight:600}
.rsheet{gap:14px}
.ctl{border-radius:22px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.14);padding:16px;display:flex;flex-direction:column;gap:14px}
.ctl.read{flex-direction:row;align-items:flex-end;justify-content:space-between}
.ctl.read > div{display:flex;flex-direction:column;gap:2px}
.ctl.dash{border:1.5px dashed rgba(255,255,255,.2);background:rgba(255,255,255,.03);gap:4px}
.ctl-top{display:flex;align-items:flex-end;justify-content:space-between;gap:10px}
.ctl-top > div:first-child{display:flex;flex-direction:column;gap:2px}
.ctl-l{font-size:13px;color:#C9D0CC}
.ctl-now{font-size:48px;font-weight:600;letter-spacing:-1.5px;line-height:1;font-variant-numeric:tabular-nums}
.ctl-st{display:flex;flex-direction:column;align-items:flex-end;gap:4px;padding-bottom:4px;text-align:right}
.ctl-st > span{display:flex;align-items:center;gap:6px;font-size:13px;color:#E8ECE9}
.ctl-st small{font-size:12px;color:#8A938F}
.dot.heat{background:#F07A45} .dot.cool{background:#4F8FD6}
.ctl-pm{display:flex;align-items:center;gap:12px}
.ctl-pm.off{opacity:.45}
.step{width:56px;height:56px;border-radius:28px;border:0;font-size:30px;font-weight:400;display:flex;align-items:center;justify-content:center;padding:0;flex-shrink:0;font-family:inherit}
.step.cold{background:rgba(79,143,214,.25);color:#CFE0F5}
.step.warm{background:rgba(240,122,69,.28);color:#FFD9C7}
.step:disabled{opacity:.5}
.ctl-want{flex:1;display:flex;flex-direction:column;align-items:center}
.ctl-want span{font-size:12px;color:#AEB6B2}
.ctl-want b{font-size:30px;font-weight:700;line-height:1.1;color:var(--accent);font-variant-numeric:tabular-nums}
.ctl-sw{display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:0 4px;border:0;background:none;color:#E8ECE9;font:inherit;font-size:15px}
.ctl-sw:disabled{opacity:.5}
.sw{width:50px;height:30px;border-radius:15px;background:rgba(255,255,255,.18);position:relative;transition:background .2s}
.sw i{position:absolute;left:3px;top:3px;width:24px;height:24px;border-radius:12px;background:#fff;transition:transform .2s}
.sw.on{background:var(--ok)} .sw.on i{transform:translateX(20px)}
.ctl-note{font-size:12px;line-height:1.4;color:#8A938F}
.ctl-err{font-size:13px;color:#FFC4BC;background:rgba(140,26,19,.35);border-radius:12px;padding:8px 12px}
.chips{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.chip{display:flex;flex-direction:column;gap:3px;padding:10px 12px;border-radius:16px;min-width:0;text-align:left;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.14);color:#fff;font:inherit}
.chip > span{font-size:12px;color:#C9D0CC}
.chip > b{display:flex;align-items:center;gap:5px;font-size:16px;font-weight:600}
.chip > b svg{width:12px;height:12px;fill:currentColor;stroke:none}
.chip .ic-ok{color:var(--ok)} .chip .ic-crit{color:var(--crit)}
.chip.dash{border:1.5px dashed rgba(255,255,255,.2);background:rgba(255,255,255,.03)}
.chip.dash > span{color:#8A938F}
.chip.dash > b{font-size:13px}
.chip.bad{border-color:rgba(229,72,77,.7)}
.keyfield{display:flex;flex-direction:column;gap:6px;font-size:13px;color:#C9D0CC}
.keyfield input{height:48px;border-radius:14px;border:1px solid rgba(255,255,255,.2);background:rgba(255,255,255,.08);color:#fff;font:inherit;font-size:18px;padding:0 14px}
@media (prefers-reduced-motion: reduce){.sw,.sw i{transition:none}}
.ctl-err{display:flex;flex-direction:column;gap:6px;align-items:flex-start}
.ctl-rekey{border:0;background:none;padding:0;color:var(--accent);font:inherit;font-size:13px;font-weight:600;text-decoration:underline}
/* Приложение, а не сайт: без зума от двойного касания и без подсветки нажатий на iPhone */
html,body{touch-action:manipulation;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}
button,a{touch-action:manipulation}

/* Термостат-циферблат в шторке комнаты */
.ctl-dial{padding:12px;gap:12px}
.dial{position:relative;height:236px;border-radius:20px;overflow:hidden;--dl-c:#E2B672;
  background:radial-gradient(70% 70% at 50% 45%,var(--dl-glow,rgba(226,182,114,.14)),rgba(255,255,255,.02) 75%);transition:background .4s}
.dial.heat{--dl-c:url(#dlh);--dl-glow:rgba(240,122,69,.22)}
.dial.cool{--dl-c:#7FB0EA;--dl-glow:rgba(79,143,214,.2)}
.dial.wait{--dl-c:#E2B672;--dl-glow:rgba(226,182,114,.16)}
.dial.off{--dl-glow:rgba(255,255,255,.04)}
.dial-svg{position:absolute;left:50%;top:0;width:236px;height:236px;margin-left:-118px;touch-action:none;cursor:grab}
.dial-svg[data-off]{cursor:default}
.dial-mid{position:absolute;left:0;right:0;top:70px;display:flex;flex-direction:column;align-items:center;pointer-events:none}
.dial-up{font-size:9.5px;letter-spacing:.8px;font-weight:700;color:var(--accent)}
.dial.heat .dial-up{color:var(--hot)} .dial.cool .dial-up{color:#7FB0EA} .dial.off .dial-up{color:var(--off)}
.dial-big{line-height:1;font-variant-numeric:tabular-nums}
.dial-big b{font-size:64px;font-weight:300;letter-spacing:-3px} .dial-big small{font-size:28px;font-weight:300}
.dial.off .dial-big{opacity:.45}
.dial-now{font-size:12px;color:#C9D0CC}
.dial .step{position:absolute;bottom:12px;width:52px;height:52px;font-size:28px;font-weight:300;border:1px solid rgba(255,255,255,.18)}
.dial-m{left:12px} .dial-p{right:12px}
.modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.modes button{height:44px;border-radius:14px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.05);display:flex;flex-direction:column;align-items:center;justify-content:center;font:inherit;font-size:13px;font-weight:600;color:#fff}
.modes button span{font-size:11px;font-weight:400;color:var(--ink3)}
.modes button[aria-pressed="true"]{border-color:rgba(226,182,114,.75);background:rgba(226,182,114,.2)}
.modes button:disabled{opacity:.45}
.rsheet{max-height:calc(100% - var(--st) - 24px);overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:none}
@media (prefers-reduced-motion: reduce){.dial{transition:none}}

/* Кольца вне нормы: цифра цветом тревоги */
.ring-warn .ring-v{color:#F7C27E} .ring-crit .ring-v{color:#FF9A92}
@keyframes blink{0%,100%{opacity:1}50%{opacity:.35}}
.blink{animation:blink 1s ease-in-out infinite}
.bell-crit{position:relative;color:#FFC4BC;border-color:rgba(224,72,59,.6)}
.bell-crit::after{content:"";position:absolute;right:9px;top:9px;width:9px;height:9px;border-radius:5px;background:var(--crit);box-shadow:0 0 0 2px rgba(13,17,16,.8);animation:blink 1s ease-in-out infinite}

/* Авария: где и что делать */
.alarm-screen{background:#170B0A}
.al-glow{position:absolute;left:0;right:0;top:0;height:62%;background:radial-gradient(90% 60% at 50% 38%,rgba(229,72,77,.38),rgba(23,11,10,0) 70%);pointer-events:none}
.al-back{color:#FFD3D3}
.al-pill{height:30px;padding:0 12px;border-radius:15px;background:#E5484D;display:flex;align-items:center;font-size:12px;font-weight:700;letter-spacing:.4px}
.al-head{position:absolute;left:20px;right:20px;top:calc(var(--st) + 64px)}
.al-title{font-size:40px;line-height:1}
.al-where{margin-top:6px;font-size:15px;color:#F6D3CF}
.al-plan-wrap{position:absolute;left:0;right:0;top:calc(var(--st) + 140px);height:230px;overflow:hidden}
.al-plan{position:absolute;left:50%;top:0;width:390px;height:380px;transform-origin:top center}
.al-plan > img{position:absolute;filter:saturate(.55) brightness(.7)}
.al-plan > svg{position:absolute;left:0;top:0}
.al-zone{fill:rgba(229,72,77,.38);stroke:#FF6B6B;stroke-width:2;stroke-linejoin:round;animation:blink 1.2s ease-in-out infinite}
.al-steps{position:absolute;left:16px;right:16px;bottom:calc(var(--sb) + 104px);border-radius:26px;padding:16px 18px;background:rgba(140,26,19,.55);border:1px solid rgba(255,255,255,.18);display:flex;flex-direction:column;gap:11px;-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}
.al-steps-t{font-size:13px;font-weight:700;letter-spacing:1px;color:#FFD3D3;text-transform:uppercase}
.al-step{display:flex;gap:12px;align-items:flex-start;font-size:15px;line-height:1.38;color:#FBE3E0}
.al-step b{color:#fff}
.al-step > span{width:26px;height:26px;border-radius:13px;background:#fff;color:#8C1A13;font-size:14px;font-weight:800;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.al-note{display:flex;align-items:center;gap:8px;padding-top:10px;border-top:1px solid rgba(255,255,255,.16);font-size:13px;color:#F6D3CF}
.al-note svg{width:16px;height:16px;fill:none;stroke:#9FE3BC;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.al-btns{position:absolute;left:16px;right:16px;bottom:calc(var(--sb) + 28px);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.al-btns.one{grid-template-columns:1fr}
.al-call,.al-ok{height:56px;border-radius:18px;display:flex;align-items:center;justify-content:center;gap:8px;font-size:16px;font-weight:700}
.al-call{background:#fff;color:#8C1A13}
.al-call svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.al-ok{border:1.5px solid rgba(255,255,255,.55);color:#fff;font-weight:600}
.al-done{position:absolute;left:24px;right:24px;top:30%;display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center}
.al-done svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
@media (max-height:700px){.al-plan-wrap{height:150px}.al-step{font-size:14px}.al-title{font-size:34px}}

/* Термостат: значок работы котла в углу */
.dial-badge{position:absolute;left:12px;top:12px;z-index:1;display:flex;align-items:center;gap:6px;height:26px;padding:0 10px 0 8px;border-radius:13px;font-size:11px;font-weight:700;letter-spacing:.3px}
.dial-badge.heat{background:rgba(240,122,69,.18);color:#FFB892;border:1px solid rgba(240,122,69,.45)}
.dial-badge.heat i{display:block;width:3px;height:12px;border-radius:2px;background:linear-gradient(180deg,#FFD0B8,#F07A45);animation:heatwave 1.1s ease-in-out infinite;transform-origin:bottom}
.dial-badge.heat i:nth-child(1){margin-left:2px}
.dial-badge.heat i:nth-child(2){animation-delay:.18s;margin-left:-3px}
.dial-badge.heat i:nth-child(3){animation-delay:.36s;margin-left:-3px;margin-right:2px}
@keyframes heatwave{0%,100%{transform:scaleY(.45);opacity:.6}50%{transform:scaleY(1);opacity:1}}
.dial-badge.cool{background:rgba(79,143,214,.16);color:#BFD8F5;border:1px solid rgba(79,143,214,.4)}
.dial-badge.wait{background:rgba(226,182,114,.14);color:var(--accent);border:1px solid rgba(226,182,114,.4)}

/* История */
.hstats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:10px 4px 2px;border-top:1px solid rgba(255,255,255,.1)}
.hstats div{display:flex;flex-direction:column;gap:2px}
.hstats span{font-size:12px;color:var(--ink3)} .hstats b{font-size:18px;font-weight:600}
.bsheet{touch-action:pan-y}
@media (prefers-reduced-motion: reduce){.blink,.bell-crit::after,.al-zone,.dial-badge.heat i{animation:none}}
.al-row{border:1px solid rgba(255,107,107,.6);background:linear-gradient(90deg,rgba(140,26,19,.85),rgba(140,26,19,.5));margin-bottom:6px}
.al-row small{color:#F6D3CF}
.al-ico{background:#E5484D;color:#fff}
.al-ico svg{fill:#fff;stroke:none}
.svc-ic{width:40px;height:40px;border-radius:13px;background:var(--accent);color:#15130E;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.svc-ic svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* ---------- главный 0В: дом на участке ---------- */
.m0{background:#0D1110;transition:background .5s}
.m0-scroll{position:absolute;inset:0;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:none}
.m0-hero{overflow-x:clip}
.m0.m0-crit{background:#170B0A}
.m0-tint{position:absolute;left:0;right:0;top:0;height:100%;min-height:100vh;pointer-events:none;z-index:1;transition:background .5s}
.m0-warn .m0-tint{background:linear-gradient(180deg,rgba(160,100,20,.26) 0,rgba(160,100,20,.1) 340px,rgba(0,0,0,0) 560px)}
.m0-crit .m0-tint{background:linear-gradient(180deg,rgba(150,24,18,.5) 0,rgba(120,20,15,.42) 340px,rgba(70,12,10,.3) 100%)}
.m0-hero{position:relative;height:calc(var(--st) + 290px);background:radial-gradient(80% 70% at 50% 62%,#1F2A27 0%,#0D1110 75%)}
.m0-img{position:absolute;left:-6%;width:112%;top:calc(var(--st) + 96px);aspect-ratio:1200/669;transition:transform .55s cubic-bezier(.2,.7,.2,1),opacity .45s ease;transform-origin:45% 60%}
.m0-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;-webkit-mask-image:linear-gradient(180deg,transparent 0%,#000 22%,#000 78%,transparent 100%);mask-image:linear-gradient(180deg,transparent 0%,#000 22%,#000 78%,transparent 100%);filter:saturate(1.05) brightness(.95)}
.m0-tag{position:absolute;transform:translate(-50%,-100%);display:flex;flex-direction:column;align-items:center;gap:4px;z-index:2;transition:opacity .3s}
.m0-pill{height:26px;padding:0 9px;border-radius:13px;display:flex;align-items:center;gap:5px;font-size:13px;font-weight:700;white-space:nowrap;background:rgba(18,22,21,.55)}
.m0-pill.sm{height:24px;padding:0 8px;border-radius:12px;font-size:11px;color:#CFF1DD}
.m0-pill .dot{width:7px;height:7px}
.m0-stem{width:1px;height:13px;background:rgba(255,255,255,.6)}
.m0-pin{width:7px;height:7px;border-radius:4px;background:#fff}
.m0-tag-ok .m0-stem{background:rgba(92,196,141,.7)} .m0-tag-ok .m0-pin{background:var(--ok)}
.m0-tag-warn .m0-pill{color:#FFD08A;border-color:rgba(240,166,75,.6)} .m0-tag-warn .m0-stem,.m0-tag-warn .m0-pin{background:var(--warn)}
.m0-tag-crit .m0-pill{color:#fff;background:rgba(140,26,19,.85);border-color:rgba(229,72,77,.8)} .m0-tag-crit .m0-stem,.m0-tag-crit .m0-pin{background:#E5484D}
.m0-tag-none .m0-pill{color:#C9D0CC}
.m0-enter{position:absolute;left:16px;top:calc(var(--st) + 246px);height:36px;padding:0 12px 0 10px;border-radius:18px;display:flex;align-items:center;gap:7px;font-size:13px;color:#fff;z-index:3;transition:opacity .3s}
.m0-enter svg{width:18px;height:18px;fill:none;stroke:var(--accent);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.m0-enter b{font-weight:600} .m0-enter span{color:#AEB6B2} .m0-enter .g{color:var(--accent)}
.m0 .head{z-index:3}
.m0-title{font-size:34px}
.m0-line{display:flex;align-items:center;gap:7px;margin-top:8px;font-size:14px}
.m0-line b{font-weight:600} .m0-line span:not(.dot){color:#AEB6B2}
.m0-warn .m0-line b{color:#FFD08A} .m0-crit .m0-line b{color:#FFB3B5}
@keyframes m0live{0%{box-shadow:0 0 0 0 rgba(92,196,141,.6)}70%{box-shadow:0 0 0 9px rgba(92,196,141,0)}100%{box-shadow:0 0 0 0 rgba(92,196,141,0)}}
@keyframes m0sos{0%{box-shadow:0 0 0 0 rgba(229,72,77,.75)}70%{box-shadow:0 0 0 14px rgba(229,72,77,0)}100%{box-shadow:0 0 0 0 rgba(229,72,77,0)}}
.m0-live{animation:m0live 2.4s ease-out infinite} .m0-sos{animation:m0sos 1.2s ease-out infinite}
.m0-body{position:relative;z-index:2;margin-top:-1px;padding:0 16px calc(var(--sb) + 110px);display:flex;flex-direction:column;gap:12px}
.m0-alert{display:flex;align-items:center;gap:12px;min-height:84px;padding:12px 14px;border-radius:24px;box-sizing:border-box;-webkit-backdrop-filter:blur(22px);backdrop-filter:blur(22px)}
.m0-alert .chev{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;flex-shrink:0;opacity:.8}
.m0-aic{width:42px;height:42px;border-radius:13px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.m0-aic svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.m0-bang{font-size:22px;font-weight:800;line-height:1}
.m0-at{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.m0-at b{font-size:17px;font-weight:700} .m0-at small{font-size:12.5px;line-height:1.3}
.a-crit{background:rgba(140,26,19,.82);border:1px solid rgba(255,107,107,.7);color:#FFD3D3}
.a-crit .m0-aic{background:#E5484D;color:#fff;animation:m0sos 1.2s ease-out infinite}
.a-crit .m0-aic svg{fill:#fff;stroke:none}
.a-crit b{color:#fff}
.a-warn{background:rgba(58,40,12,.8);border:1px solid rgba(240,166,75,.55);color:#F3DDB8}
.a-warn .m0-aic{background:var(--warn);color:#3A2508} .a-warn b{color:#fff}
.a-offline{background:rgba(40,44,43,.8);border:1px solid rgba(255,255,255,.2);color:#C9D0CC}
.a-offline .m0-aic{background:var(--off);color:#111} .a-offline b{color:#fff}
.m0-heat{border-radius:26px;padding:16px 16px 14px;display:flex;flex-direction:column;gap:12px}
.m0-heat-top{display:flex;align-items:center;justify-content:space-between;font-size:13px;color:#C9D0CC}
.m0-badge{display:flex;align-items:center;gap:6px;height:24px;padding:0 9px;border-radius:12px;font-size:11px;font-weight:700;background:rgba(255,255,255,.08);color:#C9D0CC;border:1px solid rgba(255,255,255,.16)}
.m0-badge.heat{background:rgba(240,122,69,.18);color:#FFB892;border-color:rgba(240,122,69,.45)}
.m0-badge.cool{background:rgba(79,143,214,.16);color:#BFD8F5;border-color:rgba(79,143,214,.4)}
.m0-bars{display:flex;gap:2px}
.m0-bars i{display:block;width:3px;height:11px;border-radius:2px;background:linear-gradient(180deg,#FFD0B8,#F07A45);animation:m0hw 1.1s ease-in-out infinite;transform-origin:bottom}
.m0-bars i:nth-child(2){animation-delay:.18s} .m0-bars i:nth-child(3){animation-delay:.36s}
@keyframes m0hw{0%,100%{transform:scaleY(.45);opacity:.6}50%{transform:scaleY(1);opacity:1}}
.m0-heat-row{display:flex;align-items:flex-end;justify-content:space-between;gap:8px}
.m0-now{display:flex;flex-direction:column;gap:2px;min-width:0}
.m0-now .big{font-size:64px;font-weight:300;letter-spacing:-3px;line-height:.9}
.m0-now .big small{font-size:30px;letter-spacing:0}
.m0-now .cap{font-size:12px;color:#AEB6B2;white-space:nowrap}
.m0-set{display:flex;align-items:center;gap:10px;padding-bottom:4px}
.m0-pm{width:44px;height:44px;border-radius:22px;border:1px solid rgba(255,255,255,.18);font-size:24px;font-weight:300;display:flex;align-items:center;justify-content:center;padding:0}
.m0-pm.cold{background:rgba(79,143,214,.22);color:#CFE0F5} .m0-pm.hot{background:rgba(240,122,69,.25);color:#FFD9C7}
.m0-pm:disabled,.m0-scene:disabled{opacity:.4}
.m0-want{display:flex;flex-direction:column;align-items:center;min-width:56px}
.m0-want span{font-size:11px;color:#AEB6B2} .m0-want b{font-size:26px;font-weight:700;color:var(--accent);line-height:1.1}
.m0-scenes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.m0-scene{height:52px;border-radius:18px;display:flex;align-items:center;gap:10px;padding:0 14px;font-size:14px;font-weight:600;text-align:left;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.14);color:#fff}
.m0-scene small{display:block;font-size:11px;font-weight:400;color:#AEB6B2}
.m0-scene svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.m0-scene.on-away{background:rgba(79,143,214,.22);border-color:rgba(127,176,234,.7)}
.m0-scene.on-home{background:rgba(226,182,114,.2);border-color:rgba(226,182,114,.75)}
.m0-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.m0-tile{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:10px 10px 9px;border-radius:18px;min-width:0;box-sizing:border-box;color:#fff}
.m0-tile .n{font-size:11px;color:#AEB6B2;white-space:nowrap}
.m0-tile .v{font-size:17px;font-weight:600;line-height:1.1;white-space:nowrap}
.m0-tile .s{display:flex;align-items:center;gap:4px;font-size:10px;color:#AEB6B2;white-space:nowrap}
.m0-tile .s .dot{width:7px;height:7px}
.m0-tile .g,.m0-rooms .g,.m0-ev .g{color:var(--accent)}
.m0-tile.t-warn{background:rgba(90,60,15,.6);border-color:rgba(240,166,75,.6)} .m0-tile.t-warn .v{color:#FFC46B}
.m0-tile.t-crit{background:rgba(140,26,19,.55);border-color:rgba(229,72,77,.7)} .m0-tile.t-crit .v{color:#FF9A9C}
.m0-rooms{height:54px;border-radius:18px;display:flex;align-items:center;gap:10px;padding:0 14px;font-size:14px;color:#fff}
.m0-rooms > span{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.m0-rooms i{font-style:normal;color:#8A938F} .m0-rooms b.g{font-size:13px;white-space:nowrap}
.m0-ev{display:flex;align-items:center;gap:8px;padding:0 4px;font-size:13px;color:#AEB6B2;white-space:nowrap;overflow:hidden}
.m0-ev .t{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.m0-zoom .m0-img{transform:scale(1.45) translateY(18px);opacity:0}
.m0-zoom .m0-tag,.m0-zoom .m0-enter{opacity:0}
.m0-zoom .m0-body{opacity:0;transition:opacity .3s}
@keyframes planin{from{transform:scale(1.5) translateY(30px);opacity:0}to{transform:none;opacity:1}}
.house-plan.plan-in{animation:planin .6s cubic-bezier(.2,.7,.2,1)}
@media (prefers-reduced-motion: reduce){.m0-live,.m0-sos,.m0-bars i,.a-crit .m0-aic,.house-plan.plan-in{animation:none}.m0-img{transition:none}}

/* ---------- «Обзор»: главный экран-табло ---------- */
.ov{--ovbg:#0F1413;background:var(--ovbg)}
.ov-warn{--ovbg:#16130C}.ov-crit{--ovbg:#1C0C0A}
.ov-photo{position:absolute;left:0;right:0;top:0;height:calc(var(--st) + 40vh + 40px);transform-origin:50% 0;will-change:transform;pointer-events:none}
.ov-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:40% 58%}
.ov-photo .ov-blur{opacity:0;will-change:opacity}
.ov-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(8,10,10,.55) 0,rgba(8,10,10,0) 30%,transparent 55%,color-mix(in srgb,var(--ovbg) 75%,transparent) 82%,var(--ovbg) 100%)}
.ov-veil{position:absolute;inset:0;background:var(--ovbg);opacity:0;z-index:1}
.ov-onphoto{position:absolute;left:0;right:0;top:0;height:calc(var(--st) + 40vh);z-index:4;pointer-events:none;will-change:transform}
.ov-onphoto > *{pointer-events:auto}
.ov-temps{position:absolute;left:16px;right:16px;bottom:36px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ov-spacer{height:calc(var(--st) + 40vh - 26px)}
.ov-body{position:relative;min-height:calc(100vh - var(--st) - 40px);background:linear-gradient(180deg,transparent 0,color-mix(in srgb,var(--ovbg) 90%,transparent) 70px,var(--ovbg) 150px);padding-top:2px}
.ov-mini{position:absolute;left:0;right:0;top:0;z-index:6;padding:calc(var(--st) + 10px) 18px 12px;display:flex;flex-direction:column;gap:4px;background:rgba(12,16,15,.86);-webkit-backdrop-filter:blur(26px) saturate(150%);backdrop-filter:blur(26px) saturate(150%);border-bottom:1px solid rgba(255,255,255,.08);box-shadow:0 10px 30px rgba(0,0,0,.25);opacity:0;transform:translateY(-10px);pointer-events:none;transition:opacity .25s,transform .25s}
.ov-mini.on{opacity:1;transform:none}
.ov-mini .r1{display:flex;align-items:center;gap:10px}.ov-mini b{font-size:24px;line-height:1.1;white-space:nowrap}
.ov-mini .st{margin-left:auto;display:flex;align-items:center;gap:6px;height:28px;padding:0 11px;border-radius:14px;background:rgba(255,255,255,.08);font-size:12.5px;font-weight:600;color:#8FE0B4;white-space:nowrap}
.ov-mini .st-warn{color:#FFD08A}.ov-mini .st-crit{color:#FF9A9C}.ov-mini .st-offline{color:#C9D0CC}
.ov-mini .st-warn .ov-ldot{background:var(--warn)}.ov-mini .st-crit .ov-ldot{background:#E5484D}
.ov-mini .r2{font-size:14px;color:#C9D0CC;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ov-mini i{font-style:normal;color:#fff;font-weight:600}.ov-mini em{font-style:normal;color:var(--accent);font-weight:600}
.ov-scroll{position:absolute;inset:0;z-index:3;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:none;padding-bottom:calc(var(--sb) + 110px)}
.ov-top{position:absolute;left:0;right:0;top:0;padding:calc(var(--st) + 14px) 20px 0;display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.ov-title{font-size:34px;line-height:1.05;white-space:nowrap;margin:0}
.ov-live{height:30px;padding:0 12px;border-radius:15px;display:inline-flex;align-items:center;gap:7px;font-size:12.5px;font-weight:600;white-space:nowrap;color:#fff;max-width:100%}
.ov-ldot{width:8px;height:8px;border-radius:4px;background:var(--off)}
.ov-ldot.on{background:var(--ok);animation:m0live 2.4s ease-out infinite}
.ov-t{border-radius:20px;padding:10px 14px;background:rgba(10,13,12,.42)}
.ov-t span{display:block;font-size:12px;color:#C9D0CC}.ov-t b{display:block;font-size:30px;font-weight:300;letter-spacing:-1px;line-height:1.1}
.ov-head{position:relative;padding:18px 20px 0;display:flex;gap:12px;align-items:center}
.ov-hi{width:40px;height:40px;border-radius:20px;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-weight:800;font-size:20px;background:rgba(92,196,141,.2);color:#8FE0B4}
.ov-warn .ov-hi{background:var(--warn);color:#3A2508} .ov-crit .ov-hi{background:#E5484D;color:#fff;animation:m0sos 1.2s ease-out infinite} .ov-offline .ov-hi{background:rgba(255,255,255,.12);color:#C9D0CC}
.ov-head b{display:block;font-size:22px;font-weight:700} .ov-head small{display:block;font-size:13px;color:#C9D0CC;line-height:1.35;margin-top:2px}
.ov-warn .ov-head b{color:#FFD08A} .ov-crit .ov-head b{color:#FFB3B5}
.ov-heat{position:relative;margin:16px 16px 0;border-radius:24px;padding:6px 8px 10px;display:flex;flex-direction:column;gap:8px}
.ov-heat-top{display:flex;align-items:center;justify-content:space-between;font-size:14px}
.ov-k{display:flex;align-items:center;gap:6px;font-size:12px;color:#B9C1BD} .ov-k.heat{color:#FFB892} .ov-k.cool{color:#BFD8F5}
.ov-heat-row{display:flex;align-items:center;gap:10px}
.ov-want{flex:1;display:flex;align-items:baseline;gap:8px} .ov-want span{font-size:13px;color:#B9C1BD} .ov-want b{font-size:34px;font-weight:600;color:var(--accent);line-height:1}
.ov-pm{width:46px;height:46px;border-radius:23px;font-size:24px;font-weight:300;display:flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.18);padding:0}
.ov-pm.cold{background:rgba(79,143,214,.22);color:#CFE0F5} .ov-pm.hot{background:rgba(240,122,69,.25);color:#FFD9C7}
.ov-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.ov-mode{height:40px;border-radius:14px;font-size:13px;font-weight:600;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.15;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.12);color:#fff}
.ov-mode small{font-size:10.5px;font-weight:400;color:#B9C1BD}
.ov-mode.on{background:rgba(226,182,114,.2);border-color:rgba(226,182,114,.7)}
.ov-pm:disabled,.ov-mode:disabled{opacity:.4}
.ov-sec{position:relative;padding:22px 20px 8px;display:flex;justify-content:space-between;align-items:baseline;font-size:12px}
.ov-sec span{font-weight:600;letter-spacing:1px;color:#B9C1BD} .ov-sec i{font-style:normal;color:#8FE0B4} .ov-sec i.bad{color:#FFD08A} .ov-crit .ov-sec i.bad{color:#FF9A9C}
.ov-list{position:relative;padding:0 16px;display:flex;flex-direction:column;gap:8px}
.ov-sys{border-radius:20px;overflow:hidden;background:rgba(255,255,255,.075)}
.ov-sys.lv-warn{background:rgba(90,60,15,.55);border-color:rgba(240,166,75,.6)}
.ov-sys.lv-crit{background:rgba(140,26,19,.6);border-color:rgba(229,72,77,.7)}
.ov-sys-h{width:100%;display:flex;align-items:center;gap:12px;padding:12px 14px;text-align:left;min-height:62px;border:0;background:none;color:#fff}
.ov-si{width:38px;height:38px;border-radius:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0;background:rgba(255,255,255,.08);color:#E8D2A8}
.ov-si svg,.ov-cv svg,.ov-enter svg,.ov-trust svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ov-si.g{color:var(--accent)}
.lv-warn .ov-si{color:#FFC46B} .lv-crit .ov-si{color:#FF9A9C}
.ov-st{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.ov-st b{font-size:15.5px;font-weight:600} .ov-st small{font-size:12.5px;color:#B9C1BD;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ov-pill{display:flex;align-items:center;gap:6px;height:26px;padding:0 10px;border-radius:13px;font-size:12px;font-weight:600;white-space:nowrap;flex-shrink:0}
.ov-pill.ok,.ov-pill.off,.ov-pill.none{padding:0 2px} .ov-pill.ok{color:var(--ok)} .ov-pill.off,.ov-pill.none{color:#6F7774}
.ov-pill.warn{background:rgba(240,166,75,.2);color:#FFD08A} .ov-pill.crit{background:#E5484D;color:#fff}
.ov-dot{width:9px;height:9px;border-radius:5px;background:currentColor}
.ov-pill.warn .ov-dot,.ov-pill.crit .ov-dot{width:7px;height:7px}
.ov-cv{color:#8A938F;display:flex;transition:transform .25s} .ov-sys.open .ov-cv{transform:rotate(180deg)}
.ov-sys-b{padding:0 14px 14px 64px;animation:fade .2s ease-out}
.ov-note{font-size:13px;line-height:1.45;color:#C9D0CC;padding:2px 0 10px}
.ov-ln{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-top:1px solid rgba(255,255,255,.07);font-size:14px;color:#E4E8E5}
.ov-ln i{font-style:normal;color:#B9C1BD;font-size:13px;white-space:nowrap}
.ov-ln i.ok{color:#9FE3BE} .ov-ln i.warn{color:#FFC46B} .ov-ln i.crit{color:#FF9A9C;font-weight:700} .ov-ln i.add{color:var(--accent);font-weight:600}
.ov-ln .ov-mute{color:#AEB6B2} .ov-ln.link span,.ov-ln.link i{color:var(--accent);font-weight:600}
.ov-sos{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:2px 0 8px;padding:12px 14px;border-radius:14px;background:#E5484D;color:#fff;font-size:14px;font-weight:700}
.ov-warnbox{display:block;margin:2px 0 8px;padding:12px 14px;border-radius:14px;background:rgba(240,166,75,.16);border:1px solid rgba(240,166,75,.45);font-size:13.5px;line-height:1.45;color:#F3DDB8}
.ov-warnbox b{color:#fff} .ov-warnbox .g{color:var(--accent);font-weight:600}
.ov-more{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:20px;border:1px dashed rgba(255,255,255,.18);background:rgba(255,255,255,.03);color:#fff}
.ov-enter{position:relative;margin:14px 16px 0;display:flex;align-items:center;gap:14px;padding:10px 16px 10px 10px;border-radius:22px;background:rgba(226,182,114,.16);border-color:rgba(226,182,114,.45);color:var(--accent)}
.ov-enter img{width:92px;height:56px;object-fit:contain}
.ov-enter span{flex:1;display:flex;flex-direction:column;gap:2px} .ov-enter b{font-size:17px;color:#fff} .ov-enter small{font-size:12.5px;color:#D9C3A0}
.ov-trust{position:relative;padding:18px 22px 0;display:flex;gap:12px;align-items:flex-start;font-size:12.5px;line-height:1.45;color:#AEB6B2}
.ov-trust svg{flex-shrink:0;width:18px;height:18px}
.ov .nav{background:rgba(16,20,19,.7)}
@media (prefers-reduced-motion: reduce){.ov-ldot.on,.ov-crit .ov-hi{animation:none}}

/* тепло на главном: режимы — главное, «держим» — обычным текстом, нажатие — круглый термостат */
.ov-heat-top{display:flex;align-items:center;gap:10px;width:100%;padding:8px 6px 4px 8px;border:0;background:none;color:#fff;font:inherit;text-align:left;border-radius:16px}
.ov-heat-top:active{background:rgba(255,255,255,.05)}
.ov-ht{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.ov-ht b{font-size:15px;font-weight:600}.ov-ht small{font-size:13px;color:#B9C1BD;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ov-ht i{font-style:normal;color:#fff;font-weight:600}
.ov-set{display:flex;align-items:center;gap:2px;font-size:13px;font-weight:600;color:var(--accent);white-space:nowrap}
.ov-set svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ov-heat .ov-modes{gap:8px}
.ov-heat .ov-mode{height:auto;min-height:56px;flex-direction:row;justify-content:flex-start;gap:8px;padding:8px 10px;border-radius:16px;text-align:left}
.ov-mode .mi{width:30px;height:30px;border-radius:15px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.07);color:#C9D0CC;flex-shrink:0}
.ov-mode .mi svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ov-mode .mt{display:flex;flex-direction:column;font-size:13px;font-weight:600;line-height:1.15;min-width:0}
.ov-mode .mt small{font-size:11.5px;font-weight:500;color:#B9C1BD}
.ov-heat .ov-mode.on{background:linear-gradient(180deg,rgba(226,182,114,.32),rgba(226,182,114,.16));border-color:rgba(226,182,114,.8)}
.ov-mode.on .mi{background:var(--accent);color:#1A140A}.ov-mode.on .mt small{color:#F1DDB8}
/* свайп между разделами */
@keyframes slideL{from{transform:translateX(28%);opacity:0}to{transform:none;opacity:1}}
@keyframes slideR{from{transform:translateX(-28%);opacity:0}to{transform:none;opacity:1}}
.slide-l{animation:slideL .26s cubic-bezier(.2,.7,.2,1)}.slide-r{animation:slideR .26s cubic-bezier(.2,.7,.2,1)}
@media (prefers-reduced-motion: reduce){.slide-l,.slide-r{animation:none}}

.screen{touch-action:pan-y}
.swipe-nb{position:absolute;inset:0;z-index:2;will-change:transform}
.swiping{will-change:transform;backface-visibility:hidden}

/* ---------- «Помощь»: инструкция дома ---------- */
.hp .hp-pad{padding:0 16px}
.hp-search{margin:16px 16px 0;height:48px;border-radius:16px;display:flex;align-items:center;gap:10px;padding:0 14px;color:#8A938F}
.hp-search svg,.hp-ic svg,.hp-eng-btn svg,.hp-ph svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.hp-search input{flex:1;min-width:0;background:none;border:0;outline:0;color:#fff;font:inherit;font-size:15px}
.hp-search input::placeholder{color:#8A938F}
.hp-call{margin-top:12px;display:flex;align-items:center;gap:12px;min-height:62px;padding:8px 14px 8px 10px;border-radius:18px;background:var(--accent);color:#1A140A}
.hp-call .hp-ic{background:rgba(26,20,10,.12);color:#1A140A}.hp-call .hp-t small{color:#4A3A1E}.hp-call .chev{stroke:#1A140A}
.hp-call.off{background:rgba(226,182,114,.18);color:#fff}.hp-call.off .hp-ic{color:var(--accent);background:rgba(226,182,114,.16)}.hp-call.off .hp-t small{color:#D9C3A0}
.hp-ic{width:38px;height:38px;border-radius:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0;background:rgba(226,182,114,.16);color:var(--accent)}
.hp-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.hp-t b{font-size:15px;font-weight:600}.hp-t small{font-size:12.5px;color:#AEB6B2;line-height:1.3}
.hp-eng{margin:12px 16px 0;border-radius:22px;padding:14px 16px;display:flex;flex-direction:column;gap:8px}
.hp-eng-top{display:flex;align-items:center;gap:12px}
.hp-ava{width:56px;height:56px;border-radius:28px;object-fit:cover;flex-shrink:0;border:2px solid rgba(226,182,114,.6)}
.hp-ava-i{display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#E2B672,#9C7A45);color:#1A140A;font-family:"Cormorant Garamond",Georgia,serif;font-size:28px;font-weight:600}
.hp-eng-l{font-size:11px;font-weight:700;letter-spacing:1.2px;color:var(--accent)}.hp-eng-top b{display:block;font-size:17px}.hp-eng-top small{display:block;font-size:12.5px;color:#AEB6B2}
.hp-eng-note{font-size:13.5px;line-height:1.45;color:#C9D0CC}
.hp-eng-acts{display:flex;gap:8px}.hp-eng-btn{flex:1;height:42px;border-radius:14px;display:flex;align-items:center;justify-content:center;gap:6px;background:rgba(226,182,114,.16);border:1px solid rgba(226,182,114,.45);color:var(--accent);font-size:14px;font-weight:600}
.hp-sec{padding:22px 20px 10px;font-size:12px;font-weight:600;letter-spacing:1px;color:#AEB6B2}
.hp-chips{padding:0 16px;display:flex;flex-wrap:wrap;gap:8px}
.hp-chip{height:38px;padding:0 14px;border-radius:19px;display:flex;align-items:center;font-size:14px;white-space:nowrap}
.hp-chip.danger{background:rgba(229,72,77,.16);border-color:rgba(229,72,77,.45);color:#FFB3B5}
.hp-grid{padding:0 16px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.hp-tile{display:flex;align-items:center;gap:10px;min-height:64px;padding:10px 12px;border-radius:18px}
.hp-tile .hp-t b{font-size:14px;line-height:1.2}
.hp-list{padding:0 16px;display:flex;flex-direction:column;gap:8px}
.hp-row{display:flex;align-items:center;gap:12px;min-height:60px;padding:8px 14px 8px 10px;border-radius:18px}
.hp-row .chev,.hp-call .chev{width:16px;height:16px;fill:none;stroke:#8A938F;stroke-width:2.2;flex-shrink:0}
.hp-row.soon{opacity:.6}
.hp-box{margin:0 16px;border-radius:18px;padding:2px 14px}
.hp-ln{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 0;font-size:14px;color:#E4E8E5}
.hp-ln + .hp-ln{border-top:1px solid rgba(255,255,255,.08)}
.hp-ln i{font-style:normal;color:#AEB6B2;font-size:13px;text-align:right}.hp-ln i.g{color:var(--accent);font-weight:600}
.hp-live{margin:16px 16px 0;border-radius:16px;padding:12px 14px;display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600}
.hp-intro{padding:16px 20px 0;font-size:15px;line-height:1.5;color:#C9D0CC}
.hp-steps{margin:16px 16px 0;border-radius:22px;padding:16px;display:flex;flex-direction:column;gap:14px}
.hp-step{display:flex;gap:12px;align-items:flex-start}
.hp-num{width:28px;height:28px;border-radius:14px;background:var(--accent);color:#1A140A;font-size:14px;font-weight:800;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.hp-step p{margin:0;padding-top:3px;font-size:15px;line-height:1.45;color:#E4E8E5}.hp-step p b{color:#fff}
.hp-photos{padding:12px 16px 0;display:flex;flex-direction:column;gap:10px}
.hp-photo{width:100%;border-radius:18px;display:block}
.hp-ph{height:140px;border-radius:18px;border:1.5px dashed rgba(226,182,114,.5);background:rgba(226,182,114,.05);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#D9C3A0;font-size:12.5px;text-align:center}
.hp-ph b{color:var(--accent);font-size:13.5px}
.hp-warn{margin:14px 16px 0;padding:14px 16px;border-radius:18px;background:rgba(140,26,19,.35);border:1px solid rgba(229,72,77,.45);display:flex;gap:12px;font-size:14px;line-height:1.45;color:#FFD3D3}
.hp-warn b{color:#FF9A9C;font-size:18px;font-weight:800}
.hp-tip{margin:10px 16px 0;padding:14px 16px;border-radius:18px;display:flex;gap:12px;font-size:14px;line-height:1.45;color:#C9D0CC}
.hp-tip b{color:var(--accent);font-weight:800}

/* ---------- 28.10: подробный график, сезонные дела, подача/обратка ---------- */
button.ov-t,button.tile{font:inherit;color:inherit;text-align:left;cursor:pointer;display:block}
button.tile{display:flex;flex-direction:column}
.pd{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:8px;vertical-align:1px}
.pd.sup{background:#F07A45;box-shadow:0 0 0 3px rgba(240,122,69,.18)} .pd.ret{background:#4F8FD6;box-shadow:0 0 0 3px rgba(79,143,214,.2)}
.lbl-pr{gap:3px}
.lbl-pr .pr{display:flex;align-items:baseline;justify-content:flex-end;gap:8px;white-space:nowrap}
.lbl-pr .pr span{font-size:12px;color:#C9D0CC}
.lbl-pr .pr b{font-size:21px;font-weight:600;line-height:1.05;min-width:54px;text-align:right}
.lbl-pr .pr:nth-child(2) b{color:#FFB08A} .lbl-pr .pr:nth-child(3) b{color:#A9C8F0}
.lbl-s{font-size:11.5px;color:var(--ink3)}
/* график */
.dchart{touch-action:pan-y;-webkit-user-select:none;user-select:none;overflow:visible}
.dchart text{font-family:Onest,system-ui,sans-serif}
.dc-grid{stroke:rgba(255,255,255,.07)} .dc-y{font-size:10px;fill:#8A938F}
.dc-day{stroke:rgba(255,255,255,.16);stroke-dasharray:2 3} .dc-band{fill:rgba(255,255,255,.035)}
.dc-d{font-size:10.5px;font-weight:600;fill:#C3CAC6} .dc-d.now{fill:var(--accent)}
.dc-h{font-size:10px;fill:#8A938F} .dc-tick{stroke:rgba(255,255,255,.25)}
.dc-line{fill:none;stroke:var(--accent);stroke-width:2.2;stroke-linejoin:round;stroke-linecap:round}
.dc-range{fill:rgba(226,182,114,.16)}
.dc-mm{fill:#0F1413;stroke:#C3CAC6;stroke-width:1.5}
.dc-ring{fill:rgba(226,182,114,.22)} .dc-now{fill:var(--accent);stroke:#fff;stroke-width:2}
.dc-sp{stroke:rgba(143,224,180,.55);stroke-dasharray:4 4} .dc-spt{font-size:10px;fill:#8FE0B4}
.dc-bub rect{fill:rgba(226,182,114,.95)} .dc-bub text{font-size:11.5px;font-weight:700;fill:#1A140A}
.dc-bub{transition:opacity .15s}
.dc-scrub line{stroke:rgba(255,255,255,.6);stroke-width:1} .dc-scrub circle{fill:var(--accent);stroke:#fff;stroke-width:2}
.dc-scrub rect{fill:rgba(20,25,24,.95);stroke:rgba(255,255,255,.18)}
.dc-scrub .a{font-size:12.5px;font-weight:700;fill:#fff} .dc-scrub .b{font-size:10.5px;fill:#AEB6B2}
.csheet{gap:12px;max-height:calc(100% - var(--st) - 24px);overflow-y:auto}
.cs-now{display:flex;align-items:baseline;gap:10px;padding:0 2px}
.cs-now b{font-size:40px;font-weight:300;letter-spacing:-1px;line-height:1} .cs-now span{font-size:13.5px;color:var(--ink3)}
.cs-hint{font-size:12px;color:#8A938F;text-align:center}
/* сезонные дела */
.ov-win.lv-warn{border-color:rgba(240,166,75,.45);background:linear-gradient(180deg,rgba(240,166,75,.13),rgba(240,166,75,.05))}
.ov-win .ov-si{color:#BFE0FF}
.ov-sys-b.wt-b{padding:0 12px 10px 14px}
.wt-b .ov-note{padding:2px 2px 10px}
.wt-bar{height:4px;border-radius:2px;background:rgba(255,255,255,.08);margin:0 2px 6px;overflow:hidden}
.wt-bar i{display:block;height:100%;border-radius:2px;background:linear-gradient(90deg,#5CC48D,#8FE0B4);transition:width .4s ease}
.wt-list{display:flex;flex-direction:column}
.wt{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:12px;padding:10px 2px;border-top:1px solid rgba(255,255,255,.07);cursor:pointer;-webkit-tap-highlight-color:transparent}
.wt:active{opacity:.7}
.wt-ic{width:34px;height:34px;flex-shrink:0;border-radius:11px;display:flex;align-items:center;justify-content:center;background:rgba(191,224,255,.09);color:#BFE0FF}
.wt-ic svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.wt-t{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}
.wt-t b{font-size:14px;font-weight:600;line-height:1.25} .wt-t small{font-size:12px;color:#AEB6B2;line-height:1.3}
.wt-chk{width:22px;height:22px;flex-shrink:0;border-radius:50%;border:1.5px solid rgba(255,255,255,.3);display:flex;align-items:center;justify-content:center;color:#0D1110}
.wt-chk svg{width:12px;height:12px;stroke-width:3.4}
.wt.done .wt-chk{background:var(--ok);border-color:var(--ok)}
.wt.done .wt-ic{background:rgba(92,196,141,.12);color:#8FE0B4}
.wt.done .wt-t b{color:#AEB6B2} .wt.done .wt-t small{color:#8FE0B4}
.wt:disabled{cursor:default}
/* режимы: значок сверху, текст под ним — «Комфорт» помещается на любом iPhone */
.ov-heat .ov-mode{flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:5px;padding:9px 4px 8px;min-height:74px}
.ov-heat .ov-mode .mt{align-items:center;font-size:13.5px}
.ov-heat .ov-mode .mi{width:28px;height:28px}
