:root{--ink:#102c46;--muted:#6b7f91;--paper:#f4f8fb;--line:#e0eaf0;--green:#007b82;--lime:#d9f4f1;--orange:#007d88;--white:#fff;--sidebar:#ffffff;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);font-size:14px;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--paper)}button,input,select{font:inherit}button,a,input,select{outline-offset:4px}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button,a{ -webkit-tap-highlight-color:transparent}button{border:0}.btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;background:var(--green);color:white;border-radius:9px;padding:13px 20px;font-weight:600;text-decoration:none;min-height:44px;white-space:nowrap}.btn:hover{filter:brightness(1.08)}.btn.secondary{background:white;color:var(--ink);border:1px solid var(--line)}.btn.quiet{background:transparent;color:var(--muted);padding:8px 10px}.btn.warm{background:var(--orange)}.icon{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h1,h2,h3,p{margin:0}h1{font-size:34px;font-weight:600;letter-spacing:-1.2px;line-height:1.2}h2{font-size:22px;letter-spacing:-.5px;font-weight:600}h3{font-size:15px;font-weight:600}p{line-height:1.65}small,.muted{color:var(--muted)}.eyebrow{text-transform:uppercase;letter-spacing:1.5px;font-size:10px;font-weight:700}.brand{display:flex;align-items:center;gap:10px;font-size:26px;letter-spacing:-1px;font-weight:650}.brandmark{width:38px;height:38px;background:#d9f4f1;color:var(--green);border-radius:12px;display:grid;place-items:center}.brandmark .icon{width:24px;height:24px}.shell{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:224px;background:var(--sidebar);color:#102c46;display:flex;flex-direction:column;padding:32px 20px;z-index:10}.sidebar .brand{padding:0 10px;margin-bottom:48px}.navitem{display:flex;align-items:center;gap:12px;width:100%;padding:14px;border-radius:8px;background:transparent;text-align:left;color:#62788d;margin-bottom:7px;font-weight:500}.navitem.active{background:#e2f5f3;color:#007b82}.navitem:hover{background:#eff8f8}.nav-count{margin-left:auto;font-size:11px;border:1px solid #b7d4d8;border-radius:4px;padding:1px 6px}.sidebar-note{margin-top:auto;background:#eef9f8;border:1px solid #d7eeec;border-radius:12px;padding:15px;color:#477779;font-size:12px;line-height:1.65}.sidebar-note .status-dot{margin-right:6px}.account{display:flex;gap:10px;align-items:center;margin-top:22px;padding:0 5px}.avatar{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#d9f4f1;color:var(--green);font-weight:600}.account-email{max-width:115px;overflow:hidden;text-overflow:ellipsis;font-size:11px;color:#70879a}.logout{margin-left:auto;background:none;color:#6f8597;padding:5px}.main{grid-column:2;min-width:0}.topbar{height:78px;border-bottom:1px solid var(--line);padding:0 42px;display:flex;align-items:center;justify-content:space-between;background:#ffffff80}.breadcrumb{font-size:12px;color:var(--muted);display:flex;gap:10px;align-items:center}.local-badge{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px}.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#00a79e}.status-dot.offline{background:#a4b2bf}.content{padding:40px 42px 110px;max-width:1520px;margin:0 auto}.page-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:32px}.page-heading p{margin-top:9px;color:var(--muted)}.tag{font-size:10px;display:inline-flex;padding:5px 8px;gap:5px;align-items:center;border-radius:5px;background:#e0f5f1;color:#007b78;font-weight:600}.tag.grey{color:var(--muted);background:#eef3f7}.welcome{background:#e6f5f5;border:1px solid #d1e9e9;border-radius:14px;display:flex;align-items:center;justify-content:space-between;gap:25px;padding:32px 36px;margin-bottom:30px;position:relative;overflow:hidden}.welcome h2{font-size:26px;max-width:420px;margin:10px 0}.welcome p{color:#567a86;max-width:440px}.welcome .btn{margin-top:22px}.welcome-art{min-width:235px;transform:rotate(-4deg);margin-right:10px}.mini-panel{background:#082b4c;border:8px solid #224867;border-radius:16px;width:230px;aspect-ratio:1.7;box-shadow:0 18px 30px #092b4c22;padding:16px;display:grid;grid-template-columns:repeat(3,1fr);gap:8px;color:#d6f4f3}.mini-panel>div{background:#16516a;border-radius:6px;display:grid;place-items:center}.mini-panel .icon{width:23px;height:23px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin:26px 0 16px}.section-heading h2{font-size:18px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.surface{background:white;border:1px solid var(--line);border-radius:12px;padding:24px}.empty{border:1px dashed #c9dde5;border-radius:12px;padding:35px;text-align:center;color:var(--muted);background:#ffffff70}.empty h3{color:var(--ink);margin:10px 0 6px}.empty .btn{margin-top:17px}.device-row{display:flex;align-items:center;gap:16px}.device-icon{width:54px;height:44px;display:grid;place-items:center;background:#eaf5f6;border-radius:9px;color:#277d89}.device-icon .icon{width:28px;height:28px}.device-row p{font-size:12px;margin-top:4px}.device-meta{display:flex;justify-content:space-between;align-items:center;padding-top:18px;margin-top:18px;border-top:1px solid var(--line);font-size:12px}.profile-card h3{margin-bottom:6px}.profile-card p{color:var(--muted);font-size:12px}.profile-card .btn{margin-top:20px}.editor-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:30px;align-items:start}.editor-intro{background:white;border:1px solid var(--line);border-radius:10px;padding:18px 20px;display:flex;align-items:center;gap:16px;margin-bottom:26px}.editor-intro .field{flex:1}.field{display:flex;flex-direction:column;gap:8px;text-align:left}label{font-size:12px;font-weight:600}.field input,.field select{width:100%;min-width:0;padding:12px 13px;background:white;border:1px solid #cbdde5;border-radius:7px;color:var(--ink);min-height:43px}.field input:focus,.field select:focus{border-color:#00a7a0;outline:2px solid #d7f2f0}.field small{font-size:11px;line-height:1.5}.category{font-size:12px;font-weight:600;margin-bottom:13px;display:flex;gap:10px;align-items:center}.category:after{content:"";height:1px;flex:1;background:var(--line)}.plugin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:26px}.plugin{position:relative;background:white;border:1px solid var(--line);border-radius:10px;padding:18px;display:block;cursor:pointer;min-height:144px;transition:border-color .15s,box-shadow .15s}.plugin:hover{border-color:#8fc9cb;box-shadow:0 3px 12px #102c4608}.plugin.selected{border-color:#63bfc0;background:#f6fdfc}.plugin input{position:absolute;opacity:0;width:1px;height:1px}.plugin:has(input:focus-visible){outline:3px solid #6e8b5e;outline-offset:3px}.plugin-top{display:flex;align-items:center;gap:10px;margin-bottom:11px}.plugin-icon{width:33px;height:33px;border-radius:8px;background:#eef5f8;display:grid;place-items:center;color:#4e7d90}.plugin.selected .plugin-icon{background:#def5f1;color:#008585}.plugin .toggle{margin-left:auto;width:30px;height:18px;background:#dce7ed;border-radius:20px;padding:3px;transition:background .15s}.plugin .toggle:after{content:"";display:block;background:white;width:12px;height:12px;border-radius:50%;box-shadow:0 1px 3px #0002}.plugin.selected .toggle{background:var(--green)}.plugin.selected .toggle:after{transform:translateX(12px)}.plugin p{color:var(--muted);font-size:11px;font-weight:400;line-height:1.55}.plugin h3{font-size:13px}.plugin .required{font-size:9px;color:var(--muted);font-weight:500;margin-top:9px}.preview{position:sticky;top:28px}.preview-card{background:#e5f2f5;border:1px solid #cfe5e9;border-radius:12px;padding:22px 18px}.preview-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.preview-head .eyebrow{font-size:9px;color:#47798a}.preview-head span{font-size:10px;color:#6c8998}.screen{background:#082b4c;border:7px solid #284a67;border-radius:13px;padding:13px 10px;box-shadow:0 10px 20px #0b325b22;min-height:170px}.screen-title{display:flex;justify-content:space-between;color:#e0f6f6;font-size:9px;margin-bottom:12px}.screen-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.screen-tile{color:#d7f6f3;background:#154862;border:1px solid #236279;border-radius:5px;padding:8px 5px;min-height:53px;overflow:hidden}.screen-tile span{font-size:6px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.screen-tile strong{font-size:11px;display:block;margin-top:8px}.screen-foot{display:flex;justify-content:center;margin-top:10px;gap:3px}.screen-foot i{width:3px;height:3px;background:#598ea1;border-radius:50%}.screen-foot i:first-child{background:#4bd0c4}.screen-stand{width:64px;height:18px;background:#a3b8c7;margin:0 auto;border-radius:0 0 8px 8px}.preview-caption{text-align:center;font-size:10px;line-height:1.6;color:#678799;margin-top:16px}.selection-summary{padding:20px 0 0}.selection-summary h3{font-size:13px;display:flex;justify-content:space-between}.selection-summary p{font-size:11px;color:var(--muted);margin-top:8px}.preview-note{display:flex;gap:9px;font-size:11px;color:var(--muted);padding:20px 4px;line-height:1.65}.preview-note .icon{width:17px;height:17px}.connection-settings{background:white;border:1px solid var(--line);border-radius:10px;padding:20px;margin-top:6px}.connection-settings summary{cursor:pointer;font-weight:600;display:flex;gap:10px;align-items:center}.connection-settings>p{font-size:12px;color:var(--muted);margin:12px 0 18px}.form-grid{display:grid;grid-template-columns:1fr 100px;gap:14px}.form-grid .full{grid-column:1/-1}.actionbar{position:fixed;bottom:0;left:224px;right:0;border-top:1px solid var(--line);background:#fffffff2;backdrop-filter:blur(8px);padding:17px 42px;display:flex;align-items:center;justify-content:space-between;gap:15px;z-index:9}.actionbar-text{font-size:12px}.actionbar-text small{display:block;font-size:10px;margin-top:3px}.actions{display:flex;gap:10px}.step-list{display:grid;gap:14px;margin-top:25px}.step{display:flex;align-items:center;gap:15px;color:var(--muted);font-size:13px}.step-number{border:1px solid var(--line);width:29px;height:29px;border-radius:50%;display:grid;place-items:center;font-size:11px}.step.active{color:var(--green);font-weight:600}.step.active .step-number{background:var(--green);border-color:var(--green);color:white}.step.done .step-number{background:var(--lime);color:var(--green)}.job-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:19px 0;border-bottom:1px solid var(--line)}.job-row:last-child{border:0}.job-row p{font-size:12px;color:var(--muted);margin-top:5px}.job-row small{display:block;margin-top:4px}.status-queued,.status-building,.status-downloading,.status-verifying{color:#836826;background:#f7f0da}.status-failed{background:#fbe8e0;color:#a14e32}.status-installed,.status-ready{background:#def3ed;color:#17786e}.spin{animation:spin 1.2s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}dialog{padding:32px;border:1px solid var(--line);border-radius:16px;width:min(540px,calc(100vw - 30px));max-height:90vh;color:var(--ink);box-shadow:0 25px 90px #092b4c25}dialog::backdrop{background:#092b4c70;backdrop-filter:blur(3px)}.modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.modal-header h2{font-size:23px}.modal-body>p{color:var(--muted);font-size:13px;margin-bottom:24px}.modal-body .field{margin-bottom:17px}.modal-body .btn{width:100%;margin-top:8px}.modal-body .choice{width:100%;margin-top:14px;background:white;border:1px solid var(--line);border-radius:10px;padding:18px;text-align:left;display:flex;gap:13px;color:var(--ink)}.choice:hover{border-color:#8da381}.choice small{display:block;font-size:11px;line-height:1.6;margin-top:5px}.pair-code{font-size:30px!important;letter-spacing:12px;text-align:center}.hint{padding:14px;border-radius:8px;background:#edf7f8;font-size:12px;color:#4f7886;line-height:1.6;margin:15px 0}.error{color:#ad4f35;font-size:12px;line-height:1.6;margin:12px 0}.auth-page{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-story{background:#e5f3f6;padding:50px 60px;display:flex;flex-direction:column;justify-content:space-between;min-height:100vh}.auth-story .brand{color:var(--green)}.auth-story h1{font-size:52px;max-width:460px;letter-spacing:-2.5px;line-height:1.1;margin:35px 0 18px}.auth-story p{color:#54758b;max-width:360px;font-size:15px}.auth-scene{position:relative;display:flex;justify-content:center;padding:50px 0}.auth-scene .mini-panel{width:330px;border-width:11px;transform:rotate(-5deg);aspect-ratio:1.65;padding:22px;gap:12px}.auth-foot{font-size:11px;color:#5c7f91;display:flex;gap:7px;align-items:center}.auth-form-wrap{display:flex;align-items:center;justify-content:center;padding:40px}.auth-form{width:100%;max-width:355px}.auth-form .eyebrow{color:var(--orange);margin-bottom:14px}.auth-form h2{font-size:29px;margin-bottom:12px}.auth-form>p{color:var(--muted);font-size:13px;margin-bottom:28px}.auth-form .field{margin-bottom:18px}.auth-form .btn{width:100%;margin-top:9px}.auth-switch{margin-top:22px;text-align:center;font-size:12px;color:var(--muted)}.text-link{border:0;background:none;color:var(--green);font-weight:600;padding:0;font-size:inherit;text-decoration:underline;text-underline-offset:3px}#toast{position:fixed;bottom:100px;left:50%;transform:translate(-50%,20px);background:var(--green);color:white;padding:14px 22px;border-radius:10px;z-index:99;box-shadow:0 8px 35px #082b4c33;opacity:0;pointer-events:none;transition:.2s;font-size:13px;max-width:90vw}#toast.visible{opacity:1;transform:translate(-50%,0)}.loading{display:grid;place-items:center;height:100vh;color:var(--muted)}.help-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.help-grid p{font-size:13px;color:var(--muted);margin-top:10px}.last-saved{font-size:11px;color:var(--muted)}@media(min-width:1450px){.editor-grid{grid-template-columns:minmax(0,1fr) 350px;gap:40px}.plugin-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.screen{min-height:200px}.screen-tile{min-height:65px}}@media(max-width:1100px){.sidebar{width:185px;padding:28px 14px}.shell{grid-template-columns:185px minmax(0,1fr)}.actionbar{left:185px;padding:16px 25px}.topbar{padding:0 25px}.content{padding:30px 25px 115px}.editor-grid{grid-template-columns:minmax(0,1fr) 250px;gap:20px}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.welcome-art{display:none}.plugin{padding:14px}.plugin-top{gap:7px}.auth-story{padding:40px}.auth-story h1{font-size:43px}}@media(max-width:820px){.editor-grid{grid-template-columns:1fr}.preview{position:static;max-width:380px;width:100%;margin:0 auto 30px;grid-row:1}.preview-card{padding:15px}.preview-note{display:none}.screen{min-height:170px}.plugin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sidebar{width:72px;align-items:center;padding:25px 10px}.sidebar .brand{padding:0;margin-bottom:35px}.sidebar .brand>span,.navitem>span,.sidebar-note,.account-email,.account .logout,.sidebar .nav-count{display:none}.navitem{padding:14px}.sidebar .brandmark{width:36px;height:36px}.shell{grid-template-columns:72px minmax(0,1fr)}.main{grid-column:2}.actionbar{left:72px}.account{padding:0;margin-top:auto}.auth-page{grid-template-columns:1fr}.auth-story{min-height:0;padding:25px 30px}.auth-story h1{font-size:30px;max-width:none;margin:22px 0 10px}.auth-story>div>p,.auth-scene,.auth-foot{display:none}.auth-story .brand{font-size:23px}.auth-form-wrap{padding:40px 24px}.page-heading{align-items:flex-start;flex-wrap:wrap}h1{font-size:29px}}@media(max-width:520px){.content{padding:25px 17px 150px}.topbar{height:58px;padding:0 17px}.local-badge{font-size:0}.grid,.help-grid{grid-template-columns:1fr}.plugin-grid{gap:9px}.plugin{padding:12px;min-height:160px}.plugin-top{flex-wrap:wrap}.plugin-top h3{order:3;width:100%}.plugin p{font-size:10px}.plugin-icon{width:29px;height:29px}.actionbar{padding:12px 17px;flex-wrap:wrap}.actions{width:100%}.actions .btn{flex:1;padding:11px;font-size:11px}.actionbar-text{font-size:11px}.welcome{padding:25px}.welcome h2{font-size:24px}.page-heading p{font-size:12px}.editor-intro{padding:15px}.section-heading h2{font-size:16px}.btn{font-size:12px}.screen-tile strong{font-size:12px}}

.navitem{font-size:12px}.navitem>span:first-of-type{white-space:nowrap}.avatar{flex-shrink:0}.account>div:nth-child(2){min-width:0}.account-email{max-width:108px}
@media(max-width:520px){.actions{display:grid;grid-template-columns:1fr}.actionbar{gap:9px}.actionbar .btn{min-height:38px;padding:9px}.content{padding-bottom:190px}.preview{grid-row:auto}.plugin-grid{grid-template-columns:1fr}.plugin{min-height:122px}.plugin-top{flex-wrap:nowrap}.plugin-top h3{order:initial;width:auto}.plugin p{font-size:11px}.plugin .toggle{flex-shrink:0}.preview-head span{font-size:9px}.screen-tile strong{font-size:10px}.screen-tile{padding:7px 4px}}

/* HouseNimble: original logo, with a compact house mark on narrow screens. */
.brand{display:block;line-height:0;width:100%;letter-spacing:normal}
.brand-logo{display:block;width:100%;height:auto;overflow:hidden}
.brand-symbol{display:none;width:40px;height:38px;overflow:hidden}
.sidebar{border-right:1px solid var(--line)}
.sidebar .brand{padding:0;margin-bottom:46px;width:184px;min-height:40px;display:flex;align-items:center}
.auth-story .brand{width:280px;max-width:100%}
.auth-story{background:radial-gradient(ellipse at 15% 85%,#c5eeeb 0,transparent 55%),linear-gradient(145deg,#e9f6f8,#eef3fa)}
.auth-form .eyebrow{letter-spacing:1.15px;line-height:1.6}
.nav-count{border-color:#bedbdf}.sidebar-note strong{color:#17536a}
.welcome{background:linear-gradient(110deg,#e3f4f2,#eaf2fa)}
.btn{transition:background .15s,box-shadow .15s}.btn:focus-visible{outline:3px solid #00aaa7}
@media(max-width:1100px){.sidebar .brand{width:156px}}
@media(max-width:820px){.sidebar .brand{width:42px;min-height:38px;margin-bottom:35px}.sidebar .brand-logo{display:none}.sidebar .brand-symbol{display:block}.auth-story .brand{width:240px}}

.mqtt-builder{margin:28px 0;padding:24px;background:linear-gradient(140deg,#effaf7,#f3f7fc);border:1px solid #cce3e3;border-radius:22px}.mqtt-builder>.section-heading{margin-top:0}.mqtt-builder p{font-size:13px;line-height:1.7;color:var(--muted)}.mqtt-ideas{display:flex;flex-wrap:wrap;gap:4px;margin:16px 0}.mqtt-widget-form{margin-bottom:16px;padding:20px}.mqtt-widget-form .section-heading{margin:0 0 15px}.mqtt-widget-form h3{display:flex;align-items:center;gap:10px}.mqtt-widget-form .field{min-width:0}.mqtt-widget-form input,.mqtt-widget-form select{width:100%;min-width:0}.mqtt-widget-form>small{display:block;margin-top:14px;line-height:1.6}#mqtt-results{max-height:45vh;overflow:auto;margin:18px 0}#mqtt-results .choice strong,#mqtt-results .choice small{overflow-wrap:anywhere}@media(max-width:600px){.mqtt-builder{padding:15px}.mqtt-builder>.section-heading{align-items:flex-start;gap:15px;flex-direction:column}.mqtt-widget-form{padding:14px}}
.mqtt-advanced{margin-top:16px;border-top:1px solid #e4edef;padding-top:14px}.mqtt-advanced summary{cursor:pointer;font-size:12px;color:#376374}.mqtt-advanced[open] summary{margin-bottom:16px}.mqtt-advanced small{font-size:11px;line-height:1.6;color:#637b89}.mqtt-numeric-fields{margin-top:16px}.mqtt-status-fields{margin-top:16px}[hidden]{display:none!important}
.mqtt-widget-form .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}@media(max-width:600px){.mqtt-widget-form .form-grid{grid-template-columns:1fr}}

/* Firmware progress follows build milestones rather than elapsed time. */
.job-row>div:first-child{flex:1;min-width:0}
.build-progress{margin:16px 0;max-width:560px;min-width:0}
.build-progress-label{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:8px;font-size:12px;color:var(--ink)}
.build-progress-label small{white-space:nowrap;color:var(--muted)}
.build-progress progress{display:block;appearance:none;width:100%;height:10px;border:0;border-radius:20px;overflow:hidden;background:var(--line);accent-color:var(--green)}
.build-progress progress::-webkit-progress-bar{background:var(--line);border-radius:20px}
.build-progress progress::-webkit-progress-value{background:var(--green);border-radius:20px;transition:width .4s}
.build-progress progress::-moz-progress-bar{background:var(--green);border-radius:20px}
.build-progress progress.is-building{animation:build-pulse 2s ease-in-out infinite}
.build-progress>small{display:block;margin-top:8px;font-size:11px;line-height:1.5}
@keyframes build-pulse{50%{opacity:.6}}
@media(prefers-reduced-motion:reduce){.build-progress progress.is-building{animation:none}}
@media(max-width:600px){.build-progress-label{align-items:flex-start}.job-row>div:first-child{width:100%}}
