:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#f2f6ff;background:#08111e;font-synthesis:none;--ink:#f2f6ff;--muted:#a5b7ce;--line:#344a63;--surface:#142337;--surface2:#192c43;--orange:#ffb32c;--cyan:#3acfff;--green:#61e5a8}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-width:320px;min-height:100vh;background:radial-gradient(circle at 85% 0,#1b304d 0,transparent 38%),#08111e}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}[hidden]{display:none!important}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.icon-library{position:absolute;width:0;height:0;overflow:hidden}h1,h2,h3,p{margin-top:0}.app-shell{max-width:1120px;min-height:100vh;margin:0 auto;padding:0 18px 118px}.scene{height:306px;position:relative;isolation:isolate;overflow:hidden;border-radius:0 0 26px 26px;background:#203654 url('/sher001/app/sheregesh-winter-v1.png') center 46%/cover}.scene:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,18,37,.86),rgba(5,18,37,.43) 46%,rgba(5,18,37,.22)),linear-gradient(0deg,#0a1627 0,transparent 45%);z-index:-1}.topbar{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:26px 28px}.identity{display:flex;align-items:center;gap:14px}.mountain-mark{width:53px;height:41px;stroke:#e4f0ff;stroke-width:1.6}.house-title{display:block;font-size:22px;font-weight:760;line-height:1.12;letter-spacing:-.025em}.location{display:block;margin-top:3px;color:#c5d7ef;font-size:14px}.top-actions{display:flex;align-items:center;gap:12px}.connection{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid #7996af80;border-radius:99px;background:#10243ba6;color:#d2f8e5;white-space:nowrap;font-size:12px}.connection i{display:block;width:7px;height:7px;border-radius:50%;background:#5ce4a4;box-shadow:0 0 9px #5ce4a4}.connection.offline{color:#ffd1ad;border-color:#bc805a80}.connection.offline i{background:#f3a773;box-shadow:none}.logout-button{border:1px solid #96abc183;background:#10243ba6;border-radius:10px;padding:8px 10px;color:#e7f1ff;font-size:12px}.scene-info{position:absolute;left:30px;bottom:96px;display:grid;gap:13px}.brand,.kicker{display:block;color:#a8c7e9;font-weight:720;font-size:11px;letter-spacing:.16em;text-transform:uppercase}.outside-line{display:flex;align-items:center;gap:9px}.outside-line svg{width:29px;height:29px;color:#e7f4ff}.outside-line strong{font-size:27px}.outside-line span{font-size:12px;color:#c5d7e9}.view{position:relative}.hero-card,.panel,.room-card{border:1px solid #6f8aa262;border-radius:18px;background:linear-gradient(145deg,rgba(29,47,69,.97),rgba(17,30,48,.98));box-shadow:0 16px 36px #0005}.hero-card{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(150px,.85fr);align-items:center;gap:16px;margin:-82px 16px 24px;padding:16px 20px;backdrop-filter:blur(14px)}.gauge-wrap{position:relative;width:min(100%,260px);margin:auto;aspect-ratio:260/180}.gauge{width:100%;height:100%;overflow:visible}.gauge-track,.gauge-fill{fill:none;stroke-width:18;stroke-linecap:round}.gauge-track{stroke:#30445b}.gauge-fill{stroke:url(#gauge-gradient)}#gauge-dot{fill:#f8faff;stroke:#fbc47b;stroke-width:3;filter:drop-shadow(0 0 5px #ffbd73)}.gauge-center{position:absolute;left:0;right:0;top:37%;display:grid;justify-items:center;text-align:center;gap:2px}.gauge-title{display:flex;align-items:center;gap:5px;color:#e8f0fc;font-size:12px}.gauge-title svg{width:17px;height:17px}.gauge-center strong{font-size:clamp(31px,5.2vw,51px);line-height:1.08;letter-spacing:-.045em}.gauge-source{font-size:11px;color:#c1d0e2;max-width:155px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.target-control{display:grid;justify-items:center;align-content:center;gap:12px;text-align:center}.target-label{font-size:13px;color:#d7e3f4}.target-stepper{display:flex;align-items:center;justify-content:center;border:1px solid #677d95a6;border-radius:12px;background:#2a3a51;overflow:hidden}.target-stepper button{border:0;background:transparent;color:var(--ink);width:43px;height:45px;font-size:25px;line-height:1}.target-stepper button:hover:not(:disabled){background:#51617a}.target-stepper strong{display:grid;place-items:center;min-width:82px;border-left:1px solid #63758b77;border-right:1px solid #63758b77;height:45px;font-size:23px}.accent-button{border:1px solid #ffd386;border-radius:11px;padding:10px 18px;background:linear-gradient(135deg,#ffc23e,#f69a20);box-shadow:0 5px 18px #f7a32746;color:#1d2634;font-weight:750}.accent-button:hover:not(:disabled){filter:brightness(1.08)}.target-control .accent-button{min-width:146px}.feedback{color:#bbdcf0;font-size:12px;line-height:1.4;min-height:16px;margin:0}.message{margin:14px 16px;padding:12px 14px;border-radius:12px;border:1px solid #be704a;background:#442c2a;color:#ffdfcb}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:16px;margin:27px 16px 14px}.section-heading h1{font-size:24px;margin:5px 0 0}.section-heading h2{font-size:19px;margin:0}.link-button{border:0;background:none;color:#e5edf8;padding:7px 0;text-align:left;font-size:13px;white-space:nowrap}.link-button:hover{text-decoration:underline}.floor-list{margin:0 16px;padding:15px;border:1px solid #526b83a0;border-radius:17px;background:linear-gradient(145deg,#1c2d44,#112036)}.floor-section+.floor-section{margin-top:18px}.floor-section h2{display:flex;align-items:center;gap:12px;font-size:14px;font-weight:710;margin:0 0 10px;color:#d6e5f4}.floor-section h2:after{content:"";flex:1;height:1px;background:#71869e8a}.room-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.room-card{position:relative;min-width:0;padding:14px 15px 13px;border-left:4px solid var(--cyan);box-shadow:0 5px 15px #0002}.room-card:nth-child(odd){border-left-color:var(--orange)}.room-card h3{font-size:14px;font-weight:680;margin:0 0 11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.room-card .temperature{font-size:25px;font-weight:760;letter-spacing:-.035em}.room-card .room-meta{display:flex;justify-content:space-between;gap:6px;margin-top:5px;color:#b5c9da;font-size:12px}.room-card.stale{border-left-color:#66788c;color:#bcc7d4}.room-card.stale .room-meta{color:#aab8c8}.summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:14px 16px}.panel{padding:20px}.panel h2{font-size:19px;margin:2px 0 12px}.panel-heading{display:flex;align-items:center;gap:11px}.panel-heading h2{margin:1px 0 0}.panel-icon{display:grid;place-items:center;width:42px;height:42px;border:1px solid #e9b46676;border-radius:10px;color:#ffc263}.panel-icon svg{width:26px;height:26px}.status-chip{margin-left:auto;padding:6px 9px;border-radius:50px;border:1px solid #4ba77d8c;color:#a4f1c7;font-size:12px;white-space:nowrap}.status-chip.offline{border-color:#b27b65;color:#ffbea2}.sila-values{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:22px}.sila-values span{display:block;color:#a9bdd2;font-size:12px}.sila-values strong{display:block;font-size:22px;margin-top:3px}.panel-foot{border-top:1px solid #536c8380;padding-top:12px;color:#aac3d7;font-size:12px;margin:18px 0 0}.overview-panel h2{margin:4px 0 22px}.overview-row{display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid #455b7080;padding:11px 0;font-size:13px}.overview-row span{color:#aabdd0}.overview-row strong{text-align:right;font-weight:630}.overview-panel .link-button{margin-top:15px;color:#ffca6b}.page-heading{margin:28px 16px 24px}.page-heading h1{font-size:clamp(28px,4vw,38px);margin:6px 0}.page-heading p,.subtle{color:#aebfd2;font-size:13px;line-height:1.55}.detail-floor{margin:0 16px 16px;padding:17px;border:1px solid #526b83a0;border-radius:17px;background:#142237}.detail-floor .room-card{padding:22px}.detail-floor .room-card .temperature{font-size:36px}.range-switch{display:inline-flex;gap:4px;margin:0 16px 18px;padding:4px;border:1px solid #506982;border-radius:12px;background:#14243a}.range-button{border:0;border-radius:8px;padding:8px 15px;background:transparent;color:#bed0e2;font-size:13px}.range-button.active{background:#364b64;color:#fff}.chart-panel{margin:0 16px 15px}.chart-panel h2{margin:4px 0}.chart-legend{display:flex;gap:18px;margin:11px 0;font-size:12px;color:#cad8e8}.chart-legend span:before{content:"";display:inline-block;width:13px;height:3px;border-radius:3px;vertical-align:middle;margin-right:6px;background:var(--cyan)}.legend-target:before{background:var(--orange)!important}.legend-supply:before{background:#ffbd65!important}.legend-return:before{background:#68d6d8!important}.chart{display:block;width:100%;height:auto;min-height:175px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:0 16px}.wide-panel{grid-column:1/-1}.field{display:grid;gap:8px;color:#c7d7e9;font-size:13px;margin:18px 0}.field select,.login-form input:not([type=checkbox]){width:100%;padding:11px 12px;border:1px solid #67809a;border-radius:10px;background:#0f1d31;color:#f2f6ff}.secondary-button,.quiet-button{border:1px solid #627e99;border-radius:10px;padding:10px 15px;background:#31445d;color:#f2f6ff;font-size:13px}.quiet-button{margin-left:8px;background:transparent}.panel .feedback{margin-top:11px}.switch-row{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:22px 0;font-weight:650;font-size:14px}.switch-row input,.remember-row input{accent-color:#ffb32c;width:20px;height:20px}.events{display:grid;gap:2px;max-height:280px;overflow:auto}.event{display:flex;justify-content:space-between;gap:14px;padding:11px 0;border-bottom:1px solid #465d7480}.event:last-child{border:0}.event strong{display:block;font-size:13px}.event small{display:block;color:#9fb3c9;margin-top:4px}.event button{border:0;background:none;color:#ffca78}.event.unread{border-left:3px solid var(--orange);padding-left:10px}.login-form{display:grid;gap:14px;max-width:420px}.login-form label:not(.remember-row){display:grid;gap:7px;color:#cbd9e8;font-size:13px}.login-form .remember-row{display:flex;align-items:center;gap:9px;font-size:13px;color:#c5d2e4}.password-panel .login-form{margin-top:18px}.bottom-nav{position:fixed;z-index:10;left:50%;bottom:0;transform:translateX(-50%);display:grid;grid-template-columns:repeat(4,1fr);width:min(100%,640px);padding:8px 10px calc(8px + env(safe-area-inset-bottom));border:1px solid #7890a36b;border-bottom:0;border-radius:20px 20px 0 0;background:#16253bdc;box-shadow:0 -12px 35px #0008;backdrop-filter:blur(22px)}.nav-button{display:grid;justify-items:center;gap:4px;border:0;border-radius:11px;padding:5px 3px;background:none;color:#c6d4e7;font-size:11px}.nav-button svg{width:25px;height:25px}.nav-button.active{color:var(--orange)}.nav-button:hover{background:#6f839b27}.gate{position:relative;max-width:420px;margin:10vh auto;padding:30px;border:1px solid #7890a384;border-radius:20px;background:linear-gradient(155deg,#1a2e47ee,#101c30f4);box-shadow:0 25px 65px #0009}.gate:before{content:"";position:fixed;z-index:-1;inset:0;background:linear-gradient(#081526a8,#081526b8),url('/sher001/app/sheregesh-winter-v1.png') center/cover}.gate-mark{width:62px;height:46px;color:#e2efff;margin-bottom:18px}.gate h1{font-size:28px;margin:7px 0 9px}.gate>p{color:#b5c7da;font-size:14px;line-height:1.5;margin-bottom:24px}.gate .accent-button{width:100%}.gate #login-error{margin:0}.error,.feedback.error{color:#ffc8ad}:focus-visible{outline:2px solid #ffbd55;outline-offset:3px}
@media(max-width:740px){.app-shell{padding:0 0 110px}.scene{height:285px;border-radius:0 0 23px 23px}.topbar{padding:22px 19px}.scene-info{left:21px;bottom:96px}.connection{font-size:11px}.logout-button{font-size:11px}.summary-grid,.settings-grid{grid-template-columns:1fr}.wide-panel{grid-column:auto}.hero-card{margin:-79px 15px 22px}.detail-floor .room-card{padding:16px}.settings-grid{margin:0 15px}.chart-panel{margin-left:15px;margin-right:15px}}
@media(max-width:430px){.scene{height:268px;background-position:35% 50%}.topbar{padding:18px 16px}.identity{gap:8px}.mountain-mark{width:42px;height:34px}.house-title{font-size:19px}.location{font-size:12px}.top-actions{gap:6px}.connection{max-width:111px;white-space:normal;padding:6px 8px;line-height:1.15}.logout-button{padding:7px}.scene-info{left:18px;bottom:90px}.hero-card{grid-template-columns:minmax(0,1.1fr) minmax(118px,.9fr);gap:2px;padding:12px 10px}.gauge-title{font-size:10px}.gauge-title svg{display:none}.gauge-source{font-size:10px;max-width:110px}.target-label{font-size:11px}.target-stepper button{width:32px;height:38px;font-size:21px}.target-stepper strong{min-width:66px;height:38px;font-size:18px}.target-control .accent-button{min-width:125px;padding:8px}.target-control{gap:8px}.target-control .feedback{font-size:10px}.section-heading{margin-left:15px;margin-right:15px}.floor-list{margin:0 15px;padding:10px}.room-grid{gap:8px}.room-card{padding:11px 10px}.room-card h3{font-size:12px}.room-card .temperature{font-size:22px}.room-card .room-meta{font-size:10px;display:block}.summary-grid{margin:12px 15px}.panel{padding:17px}.gate{margin:9vh 14px}}
@media(max-width:355px){.top-actions .connection{max-width:85px}.house-title{font-size:17px}.hero-card{grid-template-columns:1fr}.gauge-wrap{width:210px}.target-control{margin-top:-10px}.target-control .feedback{font-size:11px}.scene{height:240px}.scene-info{bottom:70px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation-duration:.01ms!important;transition-duration:.01ms!important}}
.app-shell:not([data-view="home"]) .scene{height:220px}
.app-shell:not([data-view="home"]) .scene-info{bottom:28px}
body:has(.gate:not([hidden])){background:linear-gradient(#081526a8,#081526b8),url('/sher001/app/sheregesh-winter-v1.png') center/cover fixed}
.gate:before{display:none}
@media(max-width:740px){.app-shell:not([data-view="home"]) .scene{height:195px}}
