:root{color-scheme:light dark;--page: #f9f9f7;--surface: #fcfcfb;--surface-2: #f0efec;--ink: #0b0b0b;--ink-2: #52514e;--muted: #898781;--grid: #e1e0d9;--axis: #c3c2b7;--border: rgba(11,11,11,.1);--accent: #2a78d6;--temp: #eb6834;--hum: #2a78d6;--good: #0ca30c;--critical: #d03b3b;--warning: #fab219;--radius: 14px;--nav-h: 56px}@media(prefers-color-scheme:dark){:root{--page: #0d0d0d;--surface: #1a1a19;--surface-2: #262625;--ink: #ffffff;--ink-2: #c3c2b7;--muted: #898781;--grid: #2c2c2a;--axis: #383835;--border: rgba(255,255,255,.1);--accent: #3987e5;--temp: #d95926;--hum: #3987e5}}*{box-sizing:border-box}html,body{margin:0;height:100%}body{background:var(--page);color:var(--ink);font-family:system-ui,-apple-system,Segoe UI,sans-serif;font-size:16px;line-height:1.4;-webkit-tap-highlight-color:transparent;overscroll-behavior-y:none}#app{min-height:100%;display:flex;flex-direction:column}a{color:var(--accent);text-decoration:none}h1,h2,h3{margin:0 0 .5rem;font-weight:650;letter-spacing:-.01em}h1{font-size:1.35rem}h2{font-size:1.1rem}h3{font-size:1rem;color:var(--ink-2)}p{margin:.4rem 0}small,.muted{color:var(--muted);font-size:.85rem}.tabular{font-variant-numeric:tabular-nums}main{flex:1;width:100%;max-width:1100px;margin:0 auto;padding:calc(env(safe-area-inset-top) + 12px) 14px calc(var(--nav-h) + env(safe-area-inset-bottom) + 16px)}.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--muted);margin-right:6px;vertical-align:middle}.dot.on{background:var(--good)}nav.bottom{position:fixed;left:0;right:0;bottom:0;height:calc(var(--nav-h) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:var(--surface);border-top:1px solid var(--border);display:flex;justify-content:space-around;z-index:10}nav.bottom a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:var(--muted);font-size:.72rem}nav.bottom a.active{color:var(--ink)}nav.bottom svg{width:24px;height:24px}@media(min-width:820px){:root{--nav-h: 0px}main{padding-top:20px;padding-bottom:32px}nav.bottom{position:sticky;top:0;bottom:auto;height:52px;padding:0;border-top:0;border-bottom:1px solid var(--border);justify-content:center;gap:8px}nav.bottom a{flex:0 0 auto;flex-direction:row;gap:8px;padding:0 16px;font-size:.95rem}nav.bottom svg{width:20px;height:20px}}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:14px;margin-bottom:12px}.row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.row.between{justify-content:space-between}.grid2{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}button,.btn{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid var(--border);background:var(--surface-2);color:var(--ink);border-radius:10px;padding:9px 14px;font:inherit;font-size:.95rem;cursor:pointer;min-height:40px}button.primary{background:var(--accent);border-color:transparent;color:#fff}button.danger{color:var(--critical)}button.small{padding:5px 10px;min-height:32px;font-size:.85rem}button:disabled{opacity:.5;cursor:default}button.active{outline:2px solid var(--accent);outline-offset:-2px}.seg{display:inline-flex;border:1px solid var(--border);border-radius:10px;overflow:hidden}.seg button{border:0;border-radius:0;background:transparent;min-height:36px}.seg button.active{background:var(--accent);color:#fff;outline:0}input,select,textarea{font:inherit;color:var(--ink);background:var(--surface-2);border:1px solid var(--border);border-radius:10px;padding:9px 12px;min-height:40px;max-width:100%}input:focus,select:focus,textarea:focus,button:focus-visible{outline:2px solid var(--accent);outline-offset:1px}label.field{display:flex;flex-direction:column;gap:4px;font-size:.85rem;color:var(--ink-2)}textarea{width:100%;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.8rem}code,.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.85em}.token{word-break:break-all;padding:10px;background:var(--surface-2);border-radius:10px}.error{color:var(--critical)}.ok{color:var(--good)}hr{border:0;border-top:1px solid var(--border);margin:12px 0}table{width:100%;border-collapse:collapse;font-size:.9rem}td,th{text-align:left;padding:6px 4px;border-bottom:1px solid var(--grid);vertical-align:middle}th{color:var(--muted);font-weight:500;font-size:.8rem}.plan{width:100%;height:auto;touch-action:manipulation;display:block}.plan .room{cursor:pointer;stroke:var(--ink-2);stroke-width:.04;stroke-linejoin:round;transition:fill .4s}.plan .room.nosensor{fill:var(--surface-2);stroke-dasharray:.12 .08}.plan .room:hover{stroke:var(--ink);stroke-width:.06}.plan .wall{stroke:var(--ink-2);stroke-width:.1;stroke-linecap:round}.plan text{fill:var(--ink);pointer-events:none;font-family:inherit}.plan .t-name{font-size:.32px;fill:var(--ink-2)}.plan .t-temp{font-size:.52px;font-weight:650}.plan .t-hum{font-size:.32px;fill:var(--ink-2)}.plan .stale text{fill:var(--muted)}.legend{display:flex;align-items:center;gap:8px;font-size:.8rem;color:var(--muted);margin-top:8px}.legend .bar{flex:1;max-width:220px;height:8px;border-radius:4px}.tile{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:12px;display:block;color:inherit}.tile .big{font-size:1.6rem;font-weight:650;letter-spacing:-.02em}.tile.stale{opacity:.6}.chart{position:relative}.chart .u-legend{display:none}.readout{display:flex;gap:14px;font-size:.9rem;color:var(--ink-2);min-height:1.4em;margin-bottom:4px}.readout b{color:var(--ink);font-weight:600}.u-select{background:#80808026}.editor-canvas{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);touch-action:none;width:100%;height:60vh;max-height:640px;display:block;-webkit-user-select:none;user-select:none}.editor-canvas .gridline{stroke:var(--grid);stroke-width:.01}.editor-canvas .gridline.major{stroke:var(--axis);stroke-width:.015}.editor-canvas .room{fill:color-mix(in oklab,var(--accent) 18%,transparent);stroke:var(--accent);stroke-width:.04}.editor-canvas .room.sel{fill:color-mix(in oklab,var(--temp) 25%,transparent);stroke:var(--temp)}.editor-canvas .wall{stroke:var(--ink-2);stroke-width:.1;stroke-linecap:round}.editor-canvas .wall.sel{stroke:var(--temp)}.editor-canvas .draft{fill:none;stroke:var(--temp);stroke-width:.03;stroke-dasharray:.1 .06}.editor-canvas .vertex{fill:var(--surface);stroke:var(--temp);stroke-width:.03}.editor-canvas text{font-size:.28px;fill:var(--ink);pointer-events:none}.toolbar{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}.center{min-height:70vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:12px;padding:20px}.center .logo{width:72px;height:72px;border-radius:18px}.uplot,.uplot *,.uplot *:before,.uplot *:after{box-sizing:border-box}.uplot{font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";line-height:1.5;width:min-content}.u-title{text-align:center;font-size:18px;font-weight:700}.u-wrap{position:relative;-webkit-user-select:none;user-select:none}.u-over,.u-under{position:absolute}.u-under{overflow:hidden}.uplot canvas{display:block;position:relative;width:100%;height:100%}.u-axis{position:absolute}.u-legend{font-size:14px;margin:auto;text-align:center}.u-inline{display:block}.u-inline *{display:inline-block}.u-inline tr{margin-right:16px}.u-legend th{font-weight:600}.u-legend th>*{vertical-align:middle;display:inline-block}.u-legend .u-marker{width:1em;height:1em;margin-right:4px;background-clip:padding-box!important}.u-inline.u-live th:after{content:":";vertical-align:middle}.u-inline:not(.u-live) .u-value{display:none}.u-series>*{padding:4px}.u-series th{cursor:pointer}.u-legend .u-off>*{opacity:.3}.u-select{background:#00000012;position:absolute;pointer-events:none}.u-cursor-x,.u-cursor-y{position:absolute;left:0;top:0;pointer-events:none;will-change:transform}.u-hz .u-cursor-x,.u-vt .u-cursor-y{height:100%;border-right:1px dashed #607D8B}.u-hz .u-cursor-y,.u-vt .u-cursor-x{width:100%;border-bottom:1px dashed #607D8B}.u-cursor-pt{position:absolute;top:0;left:0;border-radius:50%;border:0 solid;pointer-events:none;will-change:transform;background-clip:padding-box!important}.u-axis.u-off,.u-select.u-off,.u-cursor-x.u-off,.u-cursor-y.u-off,.u-cursor-pt.u-off{display:none}
