html{-webkit-tap-highlight-color:transparent}
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
.switch-drawing{display:block;width:150px;height:128px;margin:8px auto 18px;stroke:var(--muted);stroke-width:1.5}.switch-drawing .switch-highlight{fill:#67dbe133;stroke:var(--cyan);stroke-width:2}.device-identity>.switch-drawing{width:72px;height:72px;margin:0}.wireless-target-heading{display:flex;align-items:center;gap:16px;margin:12px 0 22px}.wireless-target-heading>.switch-drawing{width:76px;height:76px;flex:0 0 76px;margin:0}.wireless-target-heading .sub{margin:0}.wireless-target-row{display:flex;align-items:center;gap:10px;padding:16px;border-bottom:1px solid #ffffff18}.wireless-target-row>label{display:flex;align-items:center;gap:12px;justify-content:space-between;flex:1;font-size:13px;cursor:pointer}.wireless-target-row>.pill{order:-1;font-size:9px}.reset-search{min-height:280px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;font-size:13px}.reset-search .search-spinner{width:27px;height:27px}.reset-instructions{text-align:center}.button-detection-options{max-height:40vh;overflow:auto}.button-detection-options .secondary{margin-top:7px;padding:11px;font-size:11px}.simulator-row{display:flex;align-items:center;gap:5px;margin-top:10px}.simulator-row>span{font-size:11px;min-width:27px}.simulator-row .secondary{padding:10px 4px}
.glass:has(>.summary-color){position:relative}.glass>.summary-color{display:block;position:absolute;right:51px;top:50%;transform:translateY(-50%);width:12px;height:12px;border-radius:50%;pointer-events:none}.room-banner .room-thumbnail{width:60px;height:44px;object-fit:cover;border-radius:7px}
.header-actions{display:flex;gap:8px}.centered{display:block;margin:8px auto 0}.feature-empty{text-align:center;padding:45px 10px}.feature-empty .sub{margin-top:12px}.room-banner{display:flex;align-items:center;gap:12px;padding:17px;background:linear-gradient(125deg,#69bcc32b,#657abf25);min-height:70px;font-size:13px}.room-banner svg{width:30px;height:30px;color:var(--muted)}.picked-device{padding:15px 17px;border-top:1px solid #ffffff18}.picked-heading{display:flex;justify-content:space-between;align-items:center;font-size:13px}.picker-controls{display:flex;align-items:center;gap:12px;margin-top:14px}.picker-controls>span{min-width:37px;font-size:11px;color:var(--muted)}.picker-controls .iconbtn{flex:0 0 36px}.control-on{color:var(--cyan)!important;background:#67dbe119!important;border-color:#67dbe144!important}.busy-feedback{display:grid;place-items:center;padding:20px}.busy-feedback .search-spinner{width:29px;height:29px}.scene-list-item{display:flex;align-items:center}.scene-list-item .row{flex:1}.reorder-buttons{display:flex;flex-direction:column;padding-left:10px}.reorder-buttons button{font-size:15px;width:26px;height:25px;color:var(--muted)}.color-dot{width:11px;height:11px;border-radius:50%;flex-shrink:0}.color-options{display:flex;flex-wrap:wrap;gap:14px;justify-content:center;padding:16px}.color-options button{background:var(--swatch);width:42px;height:42px;border-radius:50%;color:#163145;display:grid;place-items:center}.color-options button[aria-pressed=true]{outline:2px solid var(--text);outline-offset:4px}.summary-color{display:none}.event-detail{padding:12px 18px 18px}.event-detail label{font-size:12px;color:var(--muted)}.event-detail select{margin-top:10px}.event-options input[type=radio]{width:20px!important;padding:0!important}.event-options .glass:has(input:checked){border-color:#67dbe166}.scene-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.scene-tile{padding:22px 15px;text-align:left;min-height:94px;margin:0;border-top:2px solid var(--scene-color)}.scene-tile small{display:block;color:var(--muted);margin-top:9px;font-size:10px}.room-entry{width:100%;display:flex;align-items:center;justify-content:space-between;padding-right:18px}.room-entry .room-banner{flex:1;background:none;text-align:left}.room-group-controls{padding:0 18px 18px;margin-top:0}.settings-shell{height:100%}.settings-drawer{position:absolute;inset:0 0 0 auto;width:85%;display:flex;flex-direction:column;background:linear-gradient(145deg,#273e5b,#19283f);border-left:1px solid #ffffff30;border-radius:25px 0 0 25px;box-shadow:-15px 0 40px #0003}.settings-drawer .topbar{justify-content:flex-start;gap:10px;padding:14px}.settings-drawer .content{padding:8px 13px 20px}.settings-drawer .glass{border-radius:14px}.settings-drawer .row{padding:16px 13px}.light-theme .settings-drawer{background:linear-gradient(145deg,#e6f5fa,#dce9f4)}.invite-code{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:18px}.invite-code code{font-size:12px;letter-spacing:2px;color:var(--cyan);overflow-wrap:anywhere}.filter-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.filter-options .glass{margin:0;gap:10px;font-size:11px}.room-photo{position:relative;overflow:hidden;border-radius:18px;margin-bottom:20px}.room-photo>.room-banner{height:160px;justify-content:center;flex-direction:column}.room-photo img{width:100%;height:160px;object-fit:cover;display:block}.camera-input{position:absolute;right:12px;top:12px;background:#234a68!important;cursor:pointer}.camera-input input{position:absolute;inset:0;opacity:0;cursor:pointer}.studio{max-height:90vh;overflow:auto;scrollbar-width:thin}.scene-list-item:not(:last-child){border-bottom:1px solid #ffffff18}
.project-topbar .iconbtn{flex:0 0 36px}.project-home .iconbtn{flex-shrink:0}
.project-loading{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;min-height:180px;color:var(--text);font-size:13px}.project-loading .search-spinner{width:27px;height:27px;border-width:2px}
.permission-icon{align-self:flex-start;color:var(--muted);margin-top:1px}.permission-copy{flex:1;min-width:0}.import-complete{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.import-complete-mark{display:grid;place-items:center;width:112px;height:112px;border-radius:50%;background:#57d6bf;color:#103e46;margin-bottom:22px;box-shadow:0 0 60px #57d6bf25}.import-complete-mark svg{width:62px;height:62px;stroke-width:3}

.project-search-field{position:relative}.project-search .project-search-field input{padding-right:52px!important}.project-search-icon{position:absolute;right:17px;top:50%;transform:translateY(-50%);width:22px;height:22px;stroke:var(--muted);stroke-width:1.7;pointer-events:none}.project-name-line{display:flex;align-items:center;gap:10px;min-width:0}.project-name{min-width:0;overflow-wrap:anywhere}
.project-refresh{width:44px;height:44px;flex:0 0 44px;display:grid;place-items:center;color:var(--text);border-radius:50%;margin:-6px -7px -6px 0}.project-refresh svg{width:27px;height:27px;stroke-width:1.6}.project-refresh:hover{background:#8bc8e514}.project-refresh:disabled{opacity:1}.project-refresh.refreshing svg{animation:system-search .65s linear infinite}@media(prefers-reduced-motion:reduce){.project-refresh.refreshing svg{animation:none}}
.project-topbar{gap:16px}.project-home{display:flex;align-items:center;gap:12px;min-width:0;text-align:left}.project-home span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}.project-home svg{flex-shrink:0}.project-empty{text-align:center;padding-top:0}.settings-guide{display:block;width:100%;height:175px;margin:0 0 25px;stroke:var(--muted);stroke-width:1.4;stroke-dasharray:4 5}.project-empty h2{font-size:23px;font-weight:600}.project-drawer-list{padding:16px 12px}.no-controllable{color:var(--muted);font-size:11px;line-height:1.6;padding:16px;margin:0}.project-search input{border:0!important;border-bottom:1px solid #ffffff18!important;border-radius:0!important;padding:18px!important}.project-value{font-size:10px;color:var(--cyan)}.project-group{font-size:11px;color:var(--muted);padding:12px 4px}.project-list-row{display:flex;align-items:center;border-radius:12px;margin-bottom:8px;position:relative}.project-select{flex:1;min-width:0;text-align:left;overflow-wrap:anywhere;padding:18px;font-size:13px}.project-select small{display:block;margin-top:5px;color:var(--muted);font-size:10px}.project-more{width:48px;height:48px;font-size:25px;color:var(--muted);flex-shrink:0}.project-sheet-overlay{position:absolute;inset:0;z-index:20;display:flex;align-items:flex-end}.project-sheet-scrim{position:absolute;inset:0;background:#040b1e88;backdrop-filter:blur(3px)}.project-sheet{position:relative;max-height:90%;overflow:auto;width:100%;padding:25px 23px 22px;border-radius:26px 26px 0 0;border:1px solid #bce8ff40;background:linear-gradient(150deg,#263f5f,#17253d);box-shadow:0 -10px 40px #0003}.project-sheet h3{margin:0 0 20px;overflow-wrap:anywhere}.light-theme .project-sheet{background:linear-gradient(150deg,#edf8fc,#dae8f6)}
.commissioning-footer{padding:0 23px 22px;flex-shrink:0}.commissioning-footer .fine{margin:0}.device-identity{display:flex;align-items:center;gap:16px;margin:8px 0 24px}.device-identity .sub{margin:6px 0 0}.device-product{display:grid;place-items:center;width:62px;height:70px;border-radius:14px;background:linear-gradient(135deg,#84e5e54d,#64a9d52a);border:1px solid #a4ecf055}.device-product svg{width:32px;height:32px}.output-heading{display:flex;align-items:center;justify-content:space-between;padding:16px 17px;font-size:12px;color:var(--muted);border-bottom:1px solid #ffffff12}.device-choice{display:flex;align-items:center;justify-content:space-between;padding:19px;gap:12px;cursor:pointer}.device-choice strong{display:block;font-size:13px;font-weight:500}.device-choice small{display:block;font-size:11px;line-height:1.5;color:var(--muted);margin-top:8px}.device-choice input[type=radio]{width:20px!important;height:20px;padding:0!important;flex-shrink:0;accent-color:#67dbe1}.device-choice:has(input:checked){border-color:#67dbe1}.install-timeline{margin-top:30px}.install-timeline .step{padding:22px 10px}.install-timeline .complete{background:#73ded133;color:#a7f8e0}.device-modal{position:absolute;inset:0;z-index:10;background:#05102099;backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:24px}.device-modal section{width:100%;padding:24px;border-radius:22px;border:1px solid #ffffff40;background:#213953;box-shadow:0 20px 60px #0005}.device-modal h3{margin-bottom:18px}.device-modal .textbtn{display:block;margin:8px auto 0}.min-level{display:flex;align-items:center;justify-content:space-between;padding:16px}.min-level output{font-size:17px}.light-theme .device-modal section{background:#e8f4fa}
.row .arrow{display:grid;place-items:center;width:24px;height:28px;flex:0 0 24px}.row .arrow svg{width:24px;height:24px;stroke-width:1.6;color:#afc7dd}.system-drawer>.row{min-height:68px;padding-top:22px}.checkrow input[type=radio]{width:20px!important;height:20px;flex:0 0 20px;padding:0!important;accent-color:#67dbe1}.phone.light-theme{--text:#17364c;--muted:#4d6b80;--cyan:#087f95;background:radial-gradient(ellipse at 95% 4%,#abeaf4,transparent 50%),linear-gradient(155deg,#edf7fb,#dce6f5 55%,#d8f1f3);color:var(--text)}.light-theme .glass{background:#ffffff80;border-color:#ffffffd0}.light-theme .system-drawer{background:linear-gradient(150deg,#edf8fcf5,#dae8f6f5)}.light-theme .drawer-empty h3{color:var(--text)}.light-theme .row svg,.light-theme .row .arrow svg{color:#4d6b80}.light-theme input:not([type=range]),.light-theme select{border-color:#52748b44;background:#ffffff60}.light-theme select option{background:#edf7fb;color:#17364c}.light-theme .textbtn{color:#087f95}
#app{position:relative}.system-shell{position:relative;height:100%;overflow:hidden}.system-empty{text-align:center;padding:90px 30px 30px}.system-empty .primary{margin-top:24px}.system-illustration{display:grid;place-items:center;width:112px;height:112px;margin:20px auto 32px;border-radius:50%;background:radial-gradient(circle at 30% 25%,#97edf443,#83a8ee10);border:1px solid #b7e8f52a;box-shadow:0 0 50px #56c8e815}.system-illustration svg{width:50px;height:50px;color:#a1e4ec}.drawer-scrim{position:absolute;inset:0;width:100%;height:100%;background:#02081777;backdrop-filter:blur(4px)}.system-drawer{position:absolute;inset:0 auto 0 0;width:85%;display:flex;flex-direction:column;background:linear-gradient(150deg,#263f5ff5,#17223cf5);border-right:1px solid #c6eaff35;border-radius:0 25px 25px 0;box-shadow:15px 0 45px #0004;animation:drawer-enter .25s ease-out;overflow:hidden}.drawer-heading{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;color:var(--muted);font-size:12px}.system-drawer>.row{border-bottom:1px solid #ffffff18}.drawer-list{flex:1;overflow:auto;display:flex;flex-direction:column}.drawer-empty{margin:auto;text-align:center;padding:24px;color:var(--muted);font-size:12px;line-height:1.7}.drawer-empty h3{color:#eef7ff;font-size:17px;margin-bottom:6px}.drawer-account{border-top:1px solid #ffffff18;margin:0 16px 12px}.drawer-account .row{padding-left:0;padding-right:0}.search-spinner{width:16px;height:16px;flex-shrink:0;border:2px solid #b5e7ec33;border-top-color:var(--cyan);border-radius:50%;animation:system-search 1s linear infinite}@keyframes drawer-enter{from{transform:translateX(-100%)}to{transform:translateX(0)}}@keyframes system-search{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.system-drawer,.search-spinner{animation:none}}
.role-card{display:block;position:relative;padding:22px 19px;cursor:pointer}.role-card input[type=radio]{position:absolute;width:1px;height:1px;opacity:0}.role-card:focus-within{outline:2px solid var(--cyan);outline-offset:3px}.role-card-heading{display:flex;align-items:center;gap:13px;font-size:17px}.role-card-heading svg{width:27px;height:27px;color:#c1edf2}.role-radio{margin-left:auto;border:1px solid #b5deea88;width:21px;height:21px;border-radius:50%;padding:4px;flex-shrink:0}.role-card.selected{border-color:#89e4e9;background:linear-gradient(130deg,#8adeec22,#b5ccff0d)}.role-card.selected .role-radio{border-color:var(--cyan)}.role-card.selected .role-radio:after{content:'';display:block;background:var(--cyan);border-radius:50%;width:100%;height:100%}.role-description{display:block;margin-top:16px;font-size:13px;line-height:1.7;color:var(--muted)}.role-terms{margin:22px 8px 0;line-height:1.9;font-size:11px}.role-terms button{padding:0;text-decoration:underline;text-underline-offset:3px;color:#d5eff4;font:inherit}
.password-hint{position:absolute;right:14px;top:50%;transform:translateY(-50%);font-size:10px;color:var(--muted);pointer-events:none}.password-field.has-value .password-hint,.password-field input:not(:placeholder-shown)~.password-hint{display:none}.password-eye{position:absolute;right:40px;top:50%;transform:translateY(-50%);width:32px;height:34px;padding:6px;color:#c9dbea}.password-eye[hidden]{display:none}.password-eye svg{width:19px;height:19px}.password-eye .eye-slash{display:none}.password-eye[aria-pressed=true] .eye-slash{display:block}.password-field.has-value .inline-label,.password-field input:not(:placeholder-shown)+.inline-label{right:78px}.input-wrap.password-field.has-value input,.input-wrap.password-field input:not(:placeholder-shown){padding-right:172px!important}
.password-field .password-hint{position:static;transform:none;font-size:11px}.password-field input:not(:placeholder-shown)+.inline-label .password-hint{display:none}.password-field .password-eye{right:7px}.password-field .clear-input{right:40px}.confirmation-field.has-value .inline-label,.confirmation-field input:not(:placeholder-shown)+.inline-label{visibility:hidden}.input-wrap.confirmation-field.has-value input,.input-wrap.confirmation-field input:not(:placeholder-shown){padding-right:82px!important}
.account-page-title{font-family:Manrope,sans-serif;font-size:16px;font-weight:700;margin:2px 0 20px;line-height:1.5}
.nfc-tap-illustration{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:180px;color:var(--cyan)}
.nfc-tap-illustration>svg{width:150px;height:120px;stroke-width:1.6}
.nfc-tap-illustration .search-spinner{width:40px;height:40px}
.nfc-device-label{text-align:center;font-size:13px;color:var(--muted)}
.nfc-output{padding:18px}
.nfc-output h3{margin-bottom:18px}
.nfc-output label{display:block;font-size:12px;color:var(--muted);margin:14px 0}
.nfc-output input,.nfc-output select{margin-top:8px}
.nfc-number-row{display:flex;gap:12px}
.nfc-number-field{flex:1;min-width:0}
.nfc-simulator{border:1px dashed var(--line);padding:14px;border-radius:14px;margin-top:20px}
.nfc-simulator .section{margin:0 0 12px;font-size:10px}
.nfc-simulator input:not([type=checkbox]){margin-top:10px}
.nfc-simulator label{display:flex;align-items:center;gap:9px;font-size:11px;color:var(--muted);margin-top:12px}
.nfc-error{font-size:13px;line-height:1.6;padding:14px;border:1px solid #f5ae8544;border-radius:12px;background:#f5ae8512;color:var(--text)}
.nfc-success{display:grid;place-items:center;color:var(--cyan);margin:24px auto;width:72px;height:72px;border:1px solid var(--cyan);border-radius:50%}
.nfc-success svg{width:38px;height:38px}
.nfc-point-label{padding:20px;font-size:14px}
.nfc-point-label small{display:block;margin-top:7px;color:var(--muted);font-size:11px}
.nfc-prepared-points{padding:0 17px;font-size:13px;color:var(--muted)}
.nfc-prepared-actions{display:flex;justify-content:space-between;padding:0 5px 6px}
.nfc-prepared-actions .textbtn{min-height:44px;font-size:11px}
.signal-scan-content>h2{display:flex;align-items:center;justify-content:space-between;gap:8px}
.signal-scan-content #scanSelectAll{flex-shrink:0}
.signal-scan-content #scanBatchActions{height:82px;min-height:82px;flex:0 0 82px}
.signal-scan-content .scan-batch-actions{display:flow-root;height:82px}
.locale-picker .locale-value{color:var(--cyan);font-size:12px;text-align:right}
.locale-options{--locale-scroll-thumb:rgba(121,231,234,.45);--locale-scroll-hover:rgba(121,231,234,.75);max-height:220px;overflow-y:auto;overscroll-behavior:contain;border-top:1px solid var(--line);scrollbar-width:thin;scrollbar-color:var(--locale-scroll-thumb) transparent;scrollbar-gutter:stable}
.locale-options::-webkit-scrollbar{width:6px}
.locale-options::-webkit-scrollbar-track{background:transparent;margin-block:10px}
.locale-options::-webkit-scrollbar-thumb{background:var(--locale-scroll-thumb);border-radius:999px;min-height:32px}
.locale-options::-webkit-scrollbar-thumb:hover{background:var(--locale-scroll-hover)}
.locale-options::-webkit-scrollbar-button{display:none;width:0;height:0}
.locale-options::-webkit-scrollbar-corner{background:transparent}
.light-theme .locale-options{--locale-scroll-thumb:rgba(42,139,155,.45);--locale-scroll-hover:rgba(42,139,155,.75)}
@supports selector(::-webkit-scrollbar){.locale-options{scrollbar-width:auto;scrollbar-color:auto}}
.locale-options .checkrow{cursor:pointer;gap:16px;min-height:48px}
.phone .locale-options input.locale-radio{appearance:none;-webkit-appearance:none;width:20px;height:20px;flex:0 0 20px;padding:0;margin:0;border:1.5px solid var(--muted);border-radius:50%;background:transparent}
.phone .locale-options input.locale-radio:checked{border-color:var(--cyan);background:radial-gradient(circle,var(--cyan) 0 5px,transparent 5.5px)}
.phone .locale-options input.locale-radio:focus-visible{outline:2px solid var(--cyan);outline-offset:4px}
.account-role-options .account-role-option{display:grid;grid-template-columns:minmax(0,1fr) 20px;gap:16px;padding:20px;cursor:pointer;border:1px solid var(--line)}
.account-role-options .account-role-option:has(input:checked){border-color:var(--cyan)}
.account-role-heading{display:flex;align-items:center;gap:12px;font-size:15px;line-height:1.5}
.account-role-heading svg{width:25px;height:25px;flex:0 0 25px}
.account-role-description{grid-column:1/-1;color:var(--muted);font-size:12px;line-height:1.7}
.phone .checkrow input[type=radio][name=accountChoice]:is([value=User],[value=Installer],.account-theme-radio){appearance:none;-webkit-appearance:none;width:20px;height:20px;flex:0 0 20px;padding:0;margin:0;border:1.5px solid var(--muted);border-radius:50%;background:transparent;cursor:pointer}
.phone .checkrow input[type=radio][name=accountChoice]:is([value=User],[value=Installer],.account-theme-radio):checked{border-color:var(--cyan);background:radial-gradient(circle,var(--cyan) 0 5px,transparent 5.5px)}
.phone .checkrow input[type=radio][name=accountChoice]:is([value=User],[value=Installer],.account-theme-radio):focus-visible{outline:2px solid var(--cyan);outline-offset:4px}
.auth-content .primary,.auth-content .secondary,#authSubmit,.primary.account-save{display:block;width:min(100%,230px);min-height:48px;margin:18px auto 0;border-radius:28px;letter-spacing:.6px;text-transform:uppercase}
.auth-content .primary:not(:disabled),#authSubmit:not(:disabled),.primary.account-save:not(:disabled){background:var(--entry-action-bg);color:var(--entry-action-text);box-shadow:var(--entry-action-shadow)}
.auth-content .secondary{background:transparent;border:1px solid #d4efff66;color:var(--text);font-weight:600;box-shadow:none}
.auth-content .welcome .primary,#authSubmit,.primary.account-save{width:min(100%,280px);min-height:54px;font-size:14px;box-shadow:0 8px 28px #0003}
#authSubmit:disabled,.primary.account-save:disabled{box-shadow:none}
.auth-content .welcome .secondary{width:min(100%,280px);margin-top:14px;border:0}
.auth-content .welcome .sub{margin-bottom:36px}
.auth-content .auth-fields{border:1px solid var(--line);border-radius:14px;background:#d4eaff0a;overflow:hidden}
.auth-content .auth-fields .field{margin:0}
.auth-content .auth-fields .field+.field{border-top:1px solid var(--line)}
.auth-content .auth-fields input{border:0;background:transparent;border-radius:0;min-height:56px}
.auth-content .auth-fields .input-wrap:focus-within{box-shadow:inset 0 0 0 1px #79e7ea88;border-radius:0}
.auth-forgot{display:block;margin:16px auto 0;min-height:44px;color:var(--muted);text-align:center;letter-spacing:.6px;text-transform:uppercase}
.role-options.compact-roles .role-card:focus-within{outline:none;box-shadow:none}.role-options.compact-roles .role-card.selected{background:transparent;border-color:#ffffff12}.role-options.compact-roles .role-card input:focus-visible~.role-radio{outline:2px solid var(--cyan);outline-offset:4px}.role-options.compact-roles .role-icon svg{width:24px;height:24px;stroke-width:1.5}
.compact-roles .role-card{display:flex;align-items:center;gap:12px;padding:19px 17px;margin:0;border-bottom:1px solid #ffffff12}.compact-roles .role-card:last-child{border-bottom:0}.compact-roles .role-icon{display:flex;color:#bad5eb}.compact-roles .role-icon svg{width:22px;height:22px}.compact-roles .role-copy{flex:1;min-width:0}.compact-roles .role-name{font-size:13px}.compact-roles .role-description{font-size:10px;margin-top:5px;line-height:1.6}.compact-roles .role-card.selected{background:#8adeec0d}.compact-roles .role-card:focus-within{outline-offset:-3px}.compact-roles .role-radio{width:19px;height:19px}
.password-field.has-value .inline-label,.password-field input:not(:placeholder-shown)+.inline-label{visibility:hidden}.input-wrap.password-field.has-value input,.input-wrap.password-field input:not(:placeholder-shown){padding-right:82px!important}
.inline-account .inline-label{position:absolute;left:15px;top:50%;transform:translateY(-50%);margin:0;font-size:13px;color:var(--muted);pointer-events:none;transition:font-size .16s,color .16s}.inline-account.has-value .inline-label,.inline-account input:not(:placeholder-shown)+.inline-label{left:auto;right:45px;font-size:10px;color:#9cb6ce}.input-wrap.inline-account.has-value input,.input-wrap.inline-account input:not(:placeholder-shown){padding-right:124px!important}.inline-account:focus-within{border-radius:12px;box-shadow:0 0 0 1px #79e7ea55}
.input-wrap{position:relative}.input-wrap input{padding-right:48px!important}.clear-input{position:absolute;right:7px;top:50%;transform:translateY(-50%);width:34px;height:34px;border-radius:50%;color:#c9dbea;font-size:22px;line-height:1}.clear-input:hover{background:#ffffff15}.clear-input[hidden]{display:none}.primary:disabled{background:#78949e;color:#203e50;box-shadow:none;opacity:.45;cursor:not-allowed}
:root{--glass:.12;--text:#f5f9ff;--muted:#aec3dc;--cyan:#67e5ed;--line:#ffffff24}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:#060d21;color:var(--text);font-family:'DM Sans',sans-serif;display:flex;align-items:center;justify-content:center;gap:110px;padding:40px;background-image:radial-gradient(ellipse at 78% 15%,#0d4a7060,transparent 45%),radial-gradient(ellipse at 48% 85%,#40308a45,transparent 50%)}button,input,select{font:inherit}button{cursor:pointer;color:inherit;border:0;background:none}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--cyan);outline-offset:3px}button:disabled{opacity:.35;cursor:default}.studio{width:330px}.eyebrow{color:#6dc9d5;font-size:11px;letter-spacing:3px}h1{font-family:Manrope,sans-serif;font-size:44px;font-weight:500;line-height:1.25;letter-spacing:-2px;margin:24px 0}.studio p{color:var(--muted);font-size:14px;line-height:1.8}.studio-card{margin-top:32px;border:1px solid var(--line);border-radius:20px;padding:22px;background:#ffffff04}.studio label{display:block;font-size:10px;letter-spacing:2px;text-transform:uppercase;color:#829bb7;margin:20px 0 12px}.studio label:first-child{margin-top:0}.seg{display:flex;background:#ffffff08;border-radius:10px;padding:4px}.seg button{flex:1;padding:9px;border-radius:8px;font-size:12px}.seg button.active{background:#ffffff18;color:var(--cyan)}.studio-link{width:100%;display:flex;justify-content:space-between;padding:11px 0;border-bottom:1px solid #ffffff0c;font-size:13px}.studio small{font-size:11px;color:#829bb7}.note{font-size:11px!important;margin-top:25px}.reset{color:#829bb7;font-size:11px;padding:0}.phone{width:390px;height:812px;flex-shrink:0;border-radius:48px;border:1px solid #ffffff45;box-shadow:0 0 0 7px #10182b,0 0 0 8px #ffffff15,0 35px 90px #0009;position:relative;overflow:hidden;background:radial-gradient(ellipse at 95% 4%,#329cba88,transparent 45%),radial-gradient(ellipse at 0% 70%,#55419d80,transparent 55%),linear-gradient(155deg,#102b46,#101a36 55%,#102d44)}.phone:before{content:'';position:absolute;width:480px;height:250px;left:-120px;top:390px;border:25px solid #65e5f32a;filter:blur(25px);border-radius:50%;transform:rotate(-35deg);pointer-events:none}.status{height:52px;padding:20px 28px 0;display:flex;justify-content:space-between;font-size:12px;position:relative}#app{position:relative;height:734px;display:flex;flex-direction:column}.topbar{display:flex;align-items:center;justify-content:space-between;padding:12px 23px;height:62px;flex-shrink:0}.topbar .title{font-family:Manrope;font-size:16px;font-weight:700}.iconbtn{width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:#ffffff08;border:1px solid #ffffff10}svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.content{padding:10px 23px 24px;overflow:auto;flex:1;scrollbar-width:none}.content::-webkit-scrollbar{display:none}h2{font-family:Manrope;font-weight:500;font-size:29px;letter-spacing:-1px;margin:8px 0 8px}h3{font-size:17px;font-weight:500;margin:0}.sub{font-size:12px;color:var(--muted);line-height:1.7;margin:0 0 24px}.section{display:flex;justify-content:space-between;align-items:center;margin:26px 0 13px;font-size:11px;letter-spacing:1.5px;color:var(--muted);text-transform:uppercase}.glass{background:linear-gradient(130deg,rgba(188,222,255,var(--glass)),rgba(195,209,255,.055));border:1px solid #ffffff25;border-top-color:#ffffff45;border-radius:21px;box-shadow:0 8px 24px #02091c15,inset 0 1px 0 #ffffff08;backdrop-filter:blur(18px);margin-bottom:15px;overflow:hidden}.roomhead{width:100%;display:flex;gap:12px;align-items:center;padding:18px}.roomhead .details{flex:1;text-align:left}.details small{display:block;color:var(--muted);font-size:10px;margin-top:5px}.roomhead svg{color:#b1d5e8}.device{margin:0 17px;padding:17px 0;border-top:1px solid #ffffff16}.devrow{display:flex;gap:12px;align-items:center}.devrow .details{flex:1;font-size:13px}.device.on svg{color:var(--cyan)}.toggle{width:43px;height:25px;border-radius:30px;background:#ffffff18;padding:3px;display:flex;align-items:center;flex-shrink:0}.toggle:after{content:'';width:19px;height:19px;background:#c4cedd;border-radius:50%;transition:.2s}.toggle.on{background:#6ce4e4}.toggle.on:after{transform:translateX(18px);background:white;box-shadow:0 1px 5px #053b5b55}.sliderline{display:flex;align-items:center;gap:13px;margin:18px 0 0 33px}.sliderline span{font-size:11px;color:#d2e4f0;min-width:34px;text-align:right}input[type=range]{width:100%;height:4px;accent-color:#79e7ea;cursor:pointer}nav{display:flex;justify-content:center;gap:8px;padding:12px 23px 14px;border-top:1px solid #ffffff15;background:#0c19353d}nav button{width:140px;padding:11px;border-radius:14px;display:flex;align-items:center;justify-content:center;gap:9px;color:var(--muted);font-size:12px}nav button.active{background:#c5e8ff16;color:#88f0ed;border:1px solid #ffffff18}.pill{font-size:10px;display:inline-flex;align-items:center;gap:6px;background:#8bebe512;border:1px solid #8bebe522;border-radius:20px;padding:6px 10px;color:#9cebea}.dot{height:5px;width:5px;border-radius:50%;background:#75e9c6}.welcome{display:flex;flex-direction:column;justify-content:center;min-height:530px;text-align:center}.brand{font-family:Manrope;font-size:45px;letter-spacing:5px;font-weight:500;margin:18px 0}.sunmark{width:90px;height:90px;border:1px solid #a3effb55;border-radius:50%;margin:0 auto;background:radial-gradient(circle,#87edf533,#ffffff03);box-shadow:0 0 65px #34c9e344;display:grid;place-items:center}.sunmark svg{width:40px;height:40px}.primary,.secondary{width:100%;border-radius:14px;padding:15px;font-size:13px;margin-top:12px}.primary{display:block;width:min(100%,var(--entry-action-width));min-height:54px;margin:18px auto 0;border-radius:999px;padding:15px;font-size:14px;letter-spacing:.6px;text-transform:uppercase;background:var(--entry-action-bg);color:var(--entry-action-text);font-weight:700;box-shadow:var(--entry-action-shadow)}.secondary{background:#ffffff0b;border:1px solid #ffffff30}.row{width:100%;display:flex;align-items:center;gap:12px;text-align:left;padding:17px;border-bottom:1px solid #ffffff12;font-size:13px}.row:last-child{border:0}.row .details{flex:1}.row svg{color:#bad5eb;width:18px}.arrow{color:#8da8c4}.field{margin:18px 0}.field label{font-size:11px;color:var(--muted);display:block;margin-bottom:9px}input:not([type=range]):not([type=checkbox]),select{width:100%;background:#d4eaff0a;border:1px solid #ffffff26;border-radius:12px;padding:14px;color:var(--text);outline:none}select option{background:#172840}input::placeholder{color:#7894b1}.scene{display:flex;align-items:center;gap:15px;padding:19px;width:100%;text-align:left}.scene .orb{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:#7ee6eb20;color:#a5eff4}.scene .details{flex:1}.scene .edit{padding:9px;color:var(--muted)}.checkrow{display:flex;justify-content:space-between;align-items:center;padding:16px;border-bottom:1px solid #ffffff15;font-size:13px}input[type=checkbox]{accent-color:#67dbe1;width:18px;height:18px}.days{display:flex;gap:5px;margin:15px 0}.days button{width:38px;height:38px;border-radius:50%;border:1px solid #ffffff25;font-size:11px}.days button.on{background:#71dce2;color:#103348}.empty{text-align:center;padding:30px 10px;color:var(--muted);font-size:13px;line-height:1.7}.radar{width:140px;height:140px;margin:25px auto;border-radius:50%;border:1px solid #96e8ec25;box-shadow:0 0 0 25px #83dbe908,0 0 0 50px #83dbe905;display:grid;place-items:center;position:relative}.radar:after{content:'';position:absolute;inset:10px;border-radius:50%;border-top:1px solid #91eff0;animation:spin 3s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.step{display:flex;gap:16px;padding:20px 10px;align-items:center;font-size:13px}.step b{width:28px;height:28px;display:grid;place-items:center;border-radius:50%;border:1px solid #ffffff28;color:#84dedf}.home-indicator{position:absolute;bottom:9px;height:4px;width:110px;background:#d5e4ed99;border-radius:4px;left:calc(50% - 55px)}#toast{position:absolute;bottom:100px;left:24px;right:24px;background:#c6f5f0;color:#14394b;border-radius:14px;padding:14px;text-align:center;font-size:12px;opacity:0;pointer-events:none;transition:.2s;box-shadow:0 10px 40px #0004}#toast.show{opacity:1}.fine{font-size:10px;color:var(--muted);line-height:1.8;text-align:center;margin-top:20px}.textbtn{color:#9be7ee;font-size:12px;padding:12px}.badge{font-size:10px;color:#9ce5e5}.backtext{font-size:12px;color:var(--muted)}@media(max-width:850px){body{gap:30px;padding:24px}.studio{width:250px}h1{font-size:32px}}@media(max-width:650px){body{padding:0;display:block;background:#10213b}.studio{display:none}.phone{width:100%;height:100dvh;border:0;border-radius:0;box-shadow:none}#app{height:calc(100dvh - 78px)}}
.room-banner.room-illustrated{position:relative;isolation:isolate;min-height:112px;overflow:hidden;background:linear-gradient(120deg,#244559,#447986);padding:20px;align-items:center;justify-content:flex-start;text-align:left}
.room-banner.room-illustrated:after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#102c48c9,transparent 78%);z-index:-1;pointer-events:none}
.room-banner.room-illustrated>.room-art,.room-banner.room-illustrated>.room-thumbnail{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;z-index:-2;border-radius:0;pointer-events:none}
.room-banner.room-illustrated>span{position:relative;max-width:45%;font-size:15px;font-weight:600;color:#f4fbff;text-shadow:0 2px 8px #10243a99;overflow-wrap:anywhere}
.room-entry:has(.room-illustrated){position:relative;padding-right:0;overflow:hidden}
.room-entry .room-illustrated{width:100%;padding-right:36px}
.room-entry:has(.room-illustrated)>.arrow{position:absolute;right:16px;color:#edfaff;text-shadow:0 1px 6px #10243a}
.room-photo>.room-banner.room-illustrated{height:180px;min-height:180px;justify-content:flex-start;flex-direction:row;align-items:flex-end}
.room-photo>.room-banner.room-illustrated>span{max-width:70%}
.light-theme .room-banner.room-illustrated{background:linear-gradient(120deg,#496e81,#83b4b8)}
.room-entry .room-banner.room-illustrated{background:linear-gradient(120deg,#244559,#447986)}

.room-banner.room-photographic:after{background:linear-gradient(90deg,rgba(9,27,43,.72),rgba(9,27,43,.2) 65%,rgba(9,27,43,.08))}.room-banner.room-photographic>.room-thumbnail{object-position:center 55%}.room-banner.room-photographic>span{max-width:65%}

/* Compact room templates and home controls; detail-page covers stay unchanged. */
.row.room-template-row{padding:10px 14px 10px 10px;gap:14px;min-height:78px}
.room-template-image{width:68px;height:56px;object-fit:cover;object-position:65% 55%;border-radius:10px;flex-shrink:0;background:#35576b}
.room-template-row .arrow{font-size:25px;line-height:1}
.home-room-card{display:flex;align-items:stretch;height:104px;min-height:104px;margin-bottom:12px;border-radius:17px}
.home-room-image{display:block;width:92px;flex:0 0 92px;object-fit:cover;object-position:65% 55%;background:#35576b}
.home-room-body{flex:1;min-width:0;padding:12px 14px}
.home-room-entry{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;min-height:28px;font-size:14px;font-weight:600}
.home-room-entry>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.home-room-entry .arrow{font-size:23px;font-weight:400}
.home-room-body .room-group-controls{padding:0;margin:9px 0 0;gap:12px}
.home-room-body .room-group-controls .iconbtn{width:36px;height:36px;flex-basis:36px}
.home-room-body input[type=range]{min-width:0;flex:1}
@media(max-width:360px){.home-room-image{width:78px;flex-basis:78px}.home-room-body{padding:10px}.room-template-image{width:60px}}

.row.room-template-row>.home-room-image{width:68px;height:56px;flex:0 0 68px;border-radius:10px}
.room-detail-scroll{height:100%;overflow-y:auto;scrollbar-width:none}.room-detail-hero{position:relative;isolation:isolate;min-height:228px;display:flex;flex-direction:column;padding:70px 20px 14px;gap:12px}.room-detail-cover{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:60% 55%;z-index:-2}.room-detail-hero:after{content:'';position:absolute;inset:0;background:linear-gradient(#102b4445,transparent 40%,#102b4466);z-index:-1}.room-detail-toolbar{display:grid;grid-template-columns:42px minmax(0,1fr) 42px;align-items:center;gap:12px}.room-detail-toolbar .iconbtn{width:42px;height:42px;background:#f7fcfff0;color:#25445a;box-shadow:0 3px 14px #15233120}.room-detail-toolbar h2{min-width:0;margin:0;color:white;font-size:21px;line-height:1.2;text-align:center;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;text-shadow:0 2px 12px #173349aa}.room-toolbar-spacer{width:42px;height:42px}.room-master{display:flex;align-items:center;gap:16px;min-height:72px;padding:14px 16px;margin:auto 0 0;background:#e8f5ffe8;color:#23445a;box-shadow:0 6px 24px #142b4330;border-color:#fff9}.room-master .iconbtn{background:white;color:#54788c;width:42px;height:42px;flex:0 0 42px}.room-master input{min-width:0;flex:1}.room-master .badge{color:#286578;min-width:30px}.room-detail-panel{position:relative;border-radius:26px 26px 0 0;margin-top:-14px;padding:20px;background:#172c43;min-height:280px}.light-theme .room-detail-panel{background:#eff5f8}.room-type-tabs{display:flex;gap:18px;overflow-x:auto;margin-bottom:18px;border-bottom:1px solid #8fa6b544}.room-type-tabs button{padding:10px 2px 12px;white-space:nowrap;font-size:12px;color:var(--muted);border-bottom:3px solid transparent}.room-type-tabs button[aria-selected=true]{border-color:var(--cyan);color:var(--text)}.room-device-card .row{min-height:54px;padding:12px 16px}.room-device-card .textbtn{padding:4px}.room-device-controls{display:flex;align-items:center;gap:16px;padding:16px}.room-device-controls .iconbtn{flex:0 0 40px;width:40px;height:40px}.room-device-controls .sub{margin:0}.room-device-controls input{min-width:0;flex:1}

/* Neutral daylight grading for preset photography only. Uploaded photos retain their colors. */
.room-image-filters{position:absolute;pointer-events:none;overflow:hidden}
img.room-template-image[src^="assets/rooms/"],img.home-room-image[src^="assets/rooms/"],img.room-thumbnail[src^="assets/rooms/"],img.room-detail-cover[src^="assets/rooms/"]{filter:url(#room-neutral-daylight) saturate(.76) brightness(1.03)}

.room-master input.room-brightness-slider,.room-device-controls input.room-brightness-slider{appearance:none;-webkit-appearance:none;display:block;flex:1 1 0;width:0;min-width:60px;height:28px;padding:0;border:0;border-radius:0;background:transparent;cursor:pointer;opacity:1}
.room-brightness-slider::-webkit-slider-runnable-track{height:6px;border-radius:10px;background:#8faeb36b}
.room-brightness-slider::-webkit-slider-thumb{-webkit-appearance:none;width:24px;height:24px;margin-top:-9px;border:2px solid #e9ffff;border-radius:50%;background:#8ee6e8;box-shadow:0 2px 8px #0b233c40}
.room-brightness-slider::-moz-range-track{height:6px;border-radius:10px;background:#8faeb36b}
.room-brightness-slider::-moz-range-thumb{width:20px;height:20px;border:2px solid #e9ffff;border-radius:50%;background:#8ee6e8;box-shadow:0 2px 8px #0b233c40}
.room-master input.room-brightness-slider:disabled,.room-device-controls input.room-brightness-slider:disabled{opacity:.45;cursor:not-allowed}

.room-detail-scroll{--room-collapse:0;overscroll-behavior:contain;scroll-behavior:auto}
.room-toolbar-sticky{position:sticky;top:0;height:0;z-index:5;overflow:visible}
.room-toolbar-sticky .room-detail-toolbar{padding:14px 20px;pointer-events:none}
.room-toolbar-sticky .iconbtn{pointer-events:auto}
.room-detail-hero{height:228px;min-height:228px;box-sizing:border-box;position:sticky;top:-140px;z-index:1}
.room-detail-hero .room-master{opacity:calc(1 - var(--room-collapse));transform:translateY(calc(var(--room-collapse) * -10px))}
.room-detail-panel{z-index:2;min-height:calc(100% - 214px);padding-top:0}
.room-type-tabs{position:sticky;top:88px;z-index:4;background:#172c43;padding-top:12px;margin-top:0;min-height:52px;box-sizing:border-box}
.light-theme .room-type-tabs{background:#eff5f8}
.room-detail-panel>[role=tabpanel]{padding-top:16px}
.room-climate-controls{display:flex;align-items:center;gap:12px;padding:18px 16px}
.room-climate-controls .details{flex:1;font-size:13px}
.room-climate-controls .iconbtn{font-size:22px}
@media(prefers-reduced-motion:reduce){.room-detail-hero .room-master{transform:none}}

/* One native scroll surface; its clipped viewport and panel stop below the photo. */
.room-detail-shell{position:relative;height:100%;min-height:0;overflow:hidden;isolation:isolate;--room-collapse:0;--room-panel-top:214px}
.room-detail-shell .room-toolbar-sticky{position:absolute;inset:0 0 auto;height:0;z-index:5}
.room-detail-shell .room-detail-hero{position:absolute;inset:0 0 auto;top:0;height:228px;min-height:228px;z-index:0}
.room-detail-shell .room-panel-backdrop{position:absolute;top:var(--room-panel-top);left:0;right:0;bottom:0;border-radius:26px 26px 0 0;background:#172c43;z-index:1;pointer-events:none}
.light-theme .room-detail-shell .room-panel-backdrop{background:#eff5f8}
.room-detail-shell .room-detail-scroll{--room-collapse:inherit;position:absolute;inset:0;height:100%;overflow-y:auto;overflow-x:hidden;box-sizing:border-box;padding-top:214px;z-index:2;clip-path:inset(var(--room-panel-top) 0 0 round 26px 26px 0 0);overscroll-behavior:contain}
.room-detail-shell .room-detail-panel{position:relative;min-height:calc(100% - 88px);margin:0;padding:0 20px 24px;border-radius:0;background:transparent;z-index:auto}
.room-detail-shell .room-type-tabs{position:sticky;top:88px;margin:0 0 18px;padding:12px 0 0;z-index:3;background:#172c43}
.light-theme .room-detail-shell .room-type-tabs{background:#eff5f8}
.room-detail-shell .room-detail-hero .room-master{opacity:calc(1 - var(--room-collapse))}

.room-detail-shell .room-type-tabs{top:-126px}

.room-detail-shell .room-type-tabs{gap:12px}
.room-detail-shell .room-type-tabs button{display:grid;place-items:center;flex:0 0 64px;min-height:48px;padding:7px 12px 11px}
.room-type-tabs button svg{width:27px;height:27px;stroke-width:1.5}
.room-type-tabs button[aria-selected=false]{opacity:.65}
.room-type-tabs button:focus-visible{outline:2px solid var(--cyan);outline-offset:-3px;border-radius:6px}

.home-room-image-link{display:block;position:relative;flex:0 0 92px;width:92px;align-self:stretch;padding:0;overflow:hidden;cursor:pointer}.home-room-image-link .home-room-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.home-room-image-link:focus-visible{outline:2px solid var(--cyan);outline-offset:-3px;border-radius:12px 0 0 12px}@media(max-width:360px){.home-room-image-link{width:78px;flex-basis:78px}}

/* Shared brightness control for home, room master and individual devices. */
.home-room-body input.room-brightness-slider,.room-master input.room-brightness-slider,.room-device-controls input.room-brightness-slider{--range-color:#79e7ea;--range-rest:#8faeb36b;appearance:none;-webkit-appearance:none;display:block;flex:1 1 0;width:0;min-width:60px;height:28px;padding:0;border:0;background:transparent;cursor:pointer}
input.room-brightness-slider::-webkit-slider-runnable-track{height:4px;border-radius:8px;background:linear-gradient(to right,var(--range-color) 0 var(--range-fill,0%),var(--range-rest) var(--range-fill,0%) 100%)}
input.room-brightness-slider::-webkit-slider-thumb{-webkit-appearance:none;width:16px;height:16px;margin-top:-6px;border:0;border-radius:50%;background:var(--range-color);box-shadow:0 1px 4px #0b233c30}
input.room-brightness-slider::-moz-range-track{height:4px;border-radius:8px;background:var(--range-rest)}
input.room-brightness-slider::-moz-range-progress{height:4px;border-radius:8px;background:var(--range-color)}
input.room-brightness-slider::-moz-range-thumb{width:16px;height:16px;border:0;border-radius:50%;background:var(--range-color);box-shadow:0 1px 4px #0b233c30}
input.room-brightness-slider:disabled{--range-color:#9aaeb8;cursor:not-allowed}

.nearby-project-row{display:flex;align-items:center;margin:4px 8px;border-radius:12px;border:1px solid transparent}.nearby-project-row .project-select{display:flex;align-items:center;gap:10px;padding:16px 10px;min-width:0;flex:1}.nearby-project-row .project-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-selected-mark{display:inline-block;width:6px;height:6px;flex:0 0 6px;border-radius:50%;background:var(--cyan)}.project-ble{display:inline-flex;color:#8fb5c9;flex-shrink:0}.project-ble svg{width:21px;height:21px}.project-name-line{gap:9px}.mesh-status{display:inline-flex;align-items:center;gap:7px;letter-spacing:0;text-transform:none;font-size:11px}.mesh-status svg{width:15px;height:15px}.mesh-status.connected{color:#8de4d3}.mesh-status.searching,.mesh-status.connecting{color:#a6dbe8}.mesh-status .search-spinner{width:12px;height:12px}.mesh-status.disconnected{color:#efb6ae}.mesh-status.disconnected .dot{background:#df8c7f}

.topbar.project-compact-header{justify-content:flex-start;gap:11px;height:68px;padding:10px 23px}
.project-compact-header>.iconbtn{flex:0 0 36px}
.project-heading{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;flex:1;min-width:0}
.project-heading>.title{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.25}
.project-heading .mesh-status{font-size:10px;line-height:14px;gap:5px;font-weight:400}
.project-heading .mesh-status svg{width:12px;height:12px}
.project-heading .mesh-status .search-spinner{width:10px;height:10px}
.project-header-spacer{flex:0 0 36px}
.project-home-content{padding-top:8px}

.project-list-row .project-select{display:flex;align-items:center;gap:10px;padding-right:10px}.project-list-copy{flex:1;min-width:0}.project-list-copy>.project-name,.project-list-copy>small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.project-list-row .project-selected-mark,.project-list-row .project-ble{flex-shrink:0}

.customer-project-content{position:relative;isolation:isolate}
.customer-project-content .customer-search-sticky{position:sticky;top:0;z-index:5;background:#233d55;border-color:#ffffff30;box-shadow:0 5px 14px #10223733;margin-bottom:0;border-radius:14px}
.customer-search-sticky .project-search-field input{border-bottom:0!important}
.customer-project-content .project-sorting{margin-top:0;border-radius:0 0 14px 14px;margin-bottom:15px;border-top:0}
.customer-project-content .project-sorting .row{padding:14px 17px}
.light-theme .customer-project-content .customer-search-sticky{background:#edf7fa;border-color:#b9d1dc;box-shadow:0 5px 14px #506b7b16}

/* Search and sorting read as one card before the search row pins. */
.customer-project-content .customer-search-sticky{border-radius:14px 14px 0 0;box-shadow:none;border-bottom:1px solid #ffffff12;background:#233d55}
.customer-project-content .project-sorting{background:#233d55;border:1px solid #ffffff30;border-top:0;box-shadow:none;border-radius:0 0 14px 14px;backdrop-filter:none}
.customer-project-content .project-sorting .row{min-height:48px}
.customer-project-content.search-pinned .customer-search-sticky{border-radius:14px;border-bottom-color:#ffffff30;box-shadow:0 5px 14px #10223733}
.light-theme .customer-project-content .customer-search-sticky{background:#edf7fa;box-shadow:none;border-color:#b9d1dc;border-bottom-color:#b9d1dc80}
.light-theme .customer-project-content .project-sorting{background:#edf7fa;border-color:#b9d1dc}
.light-theme .customer-project-content.search-pinned .customer-search-sticky{box-shadow:0 5px 14px #506b7b16}

/* Scrolling rows are clipped in updateCustomerScroll; no painted backdrop is needed. */
.customer-project-header{position:relative;z-index:6;flex-shrink:0}
.customer-project-header>.title{position:absolute;left:50%;transform:translateX(-50%);max-width:calc(100% - 150px);text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;opacity:0;pointer-events:none}
.customer-project-content{overflow-x:hidden;overflow-y:auto}
.customer-project-content #projectResults{position:relative;z-index:0}

/* Keep an 18px visual gap between the master control and expanded device panel. */
.room-detail-shell .room-detail-hero{padding-bottom:32px}

.device-search-feedback{text-align:center;padding:46px 4px 20px}.device-search-feedback .radar{margin:35px auto 62px}.device-search-feedback h3{margin:0 0 10px}.device-search-feedback .sub{margin:0 auto;max-width:240px}
/* Category title follows the native content scroll in both room flows. */
.topbar.category-topbar{display:grid;grid-template-columns:42px minmax(0,1fr) 42px;align-items:center;flex-shrink:0}
.category-nav-title{opacity:0;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:16px}
.category-content{min-height:0;overflow-y:auto;--category-title-opacity:1}
.category-content>h2{opacity:var(--category-title-opacity)}
.room-sort-row{touch-action:none;user-select:none;-webkit-user-select:none;min-height:60px;cursor:grab}
.room-sort-row .sort-grip{font-size:16px;color:var(--muted);opacity:.65}
.room-sort-row.sorting{position:relative;z-index:2;background:#68dbe340;box-shadow:0 5px 20px #102b4433;cursor:grabbing}
.room-sort-row:focus-visible{outline:2px solid var(--cyan);outline-offset:-2px}
.room-sort-row>.arrow{display:grid;place-items:center;flex:0 0 24px;width:24px;height:28px;font-size:28px;line-height:1}
.room-sort-row:first-child{border-top-left-radius:20px;border-top-right-radius:20px}
.room-sort-row:last-child{border-bottom-left-radius:20px;border-bottom-right-radius:20px}
.device-editor-tabs{display:flex;overflow-x:auto;gap:20px;border-bottom:1px solid var(--line);margin-bottom:20px}
.device-editor-tabs button{flex-shrink:0;padding:12px 2px;font-size:13px;color:var(--muted);border-bottom:3px solid transparent}
.device-editor-tabs button[aria-selected=true]{color:var(--text);border-bottom-color:var(--cyan)}
[id^=device-panel-]>.glass>.field{margin:18px 16px}
.room-sort-row.sorting{outline:2px solid var(--cyan);outline-offset:-2px;background:#68dbe360}
.room-device-type-tabs button{display:grid;place-items:center;min-width:54px;min-height:48px}
.room-device-type-tabs button svg{width:27px;height:27px}
.phone .arrow{display:inline-flex;align-items:center;justify-content:center;width:24px;height:28px;flex:0 0 24px;line-height:1;color:var(--muted)}
.phone .arrow svg{display:block;width:24px;height:24px;flex-shrink:0;stroke:currentColor;stroke-width:1.8;fill:none}
.room-delete-info{display:flex;justify-content:center;margin:0 0 18px}
.room-delete-info svg{width:42px;height:42px}
.primary.room-delete-confirm{background:#c94132;color:white}
.room-choice-indicator{display:grid;place-items:center;width:19px;height:19px;flex:0 0 19px;border:1px solid var(--muted);border-radius:50%}
.room-choice-indicator.selected{border-color:var(--cyan);background:var(--cyan);color:#fff}
.room-choice-indicator svg{width:13px;height:13px;stroke:currentColor}
.category-content>.room-device-type-tabs{position:sticky;top:0;z-index:5}
.device-editor-content{min-height:0;--device-heading-opacity:1}
.device-editor-content>.device-identity{opacity:var(--device-heading-opacity)}
.device-editor-content>.device-editor-tabs{position:sticky;top:0;z-index:5}
.category-content>.room-device-type-tabs,.device-editor-content>.device-editor-tabs{top:0;margin-left:-23px;margin-right:-23px;padding:10px 23px 0;margin-top:-10px;background-color:#102b46;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}
.light-theme .category-content>.room-device-type-tabs,.light-theme .device-editor-content>.device-editor-tabs{background-color:#edf7fb}
/* No exposed scroll gutter above the sticky tabs; preserve initial heading spacing. */
.category-content:has(>.room-device-type-tabs),.device-editor-content{padding-top:0}
.category-content:has(>.room-device-type-tabs)>h2,.device-editor-content>.device-identity{margin-top:18px}
.primary.account-delete{border-radius:999px;background:#d9434f;color:#fff;border:1px solid rgba(255,147,155,.4);box-shadow:0 6px 20px rgba(180,35,49,.18)}
.primary.account-delete:hover:not(:disabled){background:#c73542}
.primary.account-delete:disabled{opacity:.4;cursor:not-allowed}

/* Shared sizing and colours for account and system entry actions. */
:root{--entry-action-width:280px;--entry-action-bg:#9ed5dc;--entry-action-text:#173c50;--entry-action-shadow:0 4px 14px #041b2926}
.auth-content .welcome .primary,#authSubmit,#accountNext,#createAccountButton,.primary.account-save,.primary.system-form-action,.primary.account-delete,.account-action{display:block;width:min(100%,var(--entry-action-width));min-height:54px;margin:18px auto 0;border-radius:999px;font-size:14px;letter-spacing:.6px;text-transform:uppercase}
.auth-content .welcome .primary,#authSubmit,#accountNext,#createAccountButton,.primary.account-save,.primary.system-form-action,.primary.account-action{background:var(--entry-action-bg);color:var(--entry-action-text);box-shadow:var(--entry-action-shadow)}
#authSubmit:disabled,#accountNext:disabled,#createAccountButton:disabled,.primary.account-save:disabled,.primary.system-form-action:disabled{background:#78949e;color:#203e50;opacity:.45;box-shadow:none}
.auth-content .welcome .secondary,.secondary.account-action{background:transparent;border:0;color:var(--text);box-shadow:none}

.room-sort-row .pill.identifying{background:var(--cyan);color:#173c50}

.device-search-wait{min-height:390px;display:flex;flex-direction:column}.device-search-wait .reset-search{flex:1}.device-search-hint{text-align:center;max-width:250px;margin:24px auto 12px;color:var(--muted);font-size:12px;line-height:1.6}.device-search-hint svg{color:var(--cyan);width:20px;height:20px}.device-search-hint p{margin:8px 0}

/* Full-size secondary actions share the main action footprint. */
.commissioning-footer .secondary,.content>.secondary,.content>form>.secondary,.device-modal .secondary{display:block;width:min(100%,var(--entry-action-width));min-height:54px;margin:18px auto 0;border-radius:999px;font-size:14px;letter-spacing:.6px;text-transform:uppercase;background:transparent;border:0;color:var(--text);box-shadow:none}

/* Load/light-source selection: transparent radio rings. */
.phone .device-choice input[type=radio][name=outputKind]{appearance:none;-webkit-appearance:none;margin:0;border:1.5px solid var(--muted);border-radius:50%;background:transparent;cursor:pointer}
.phone .device-choice input[type=radio][name=outputKind]:checked{border-color:var(--cyan);background:radial-gradient(circle,var(--cyan) 0 5px,transparent 5.5px)}
.phone .device-choice input[type=radio][name=outputKind]:focus-visible{outline:2px solid var(--cyan);outline-offset:4px}

button.identify-active{animation:identify-button-blink .7s ease-in-out 2}
@keyframes identify-button-blink{50%{background:var(--cyan);color:#173c50;border-color:var(--cyan)}}
button[onclick="identifyDeviceFeedback(this)"]{transition:background .15s,color .15s}
@media(prefers-reduced-motion:reduce){button.identify-active{animation:none;background:var(--cyan);color:#173c50;border-color:var(--cyan)}}

.scene-rename{display:inline-grid;width:40px;height:40px;margin-left:8px;vertical-align:middle}.scene-rename svg{width:24px;height:24px}.phone input.scene-circle-choice[type=checkbox]{appearance:none;-webkit-appearance:none;width:20px;height:20px;flex:0 0 20px;margin:0;padding:0;border:1.5px solid var(--muted);border-radius:50%;background:transparent;cursor:pointer}.phone input.scene-circle-choice[type=checkbox]:checked{border-color:var(--cyan);background:radial-gradient(circle,var(--cyan) 0 5px,transparent 5.5px)}.phone input.scene-circle-choice[type=checkbox]:focus-visible{outline:2px solid var(--cyan);outline-offset:4px}

.scene-rename{background:transparent;border:0;box-shadow:none;color:var(--cyan)}
.picker-content{overflow-anchor:none}.picker-expansion{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .25s ease,opacity .2s ease}.picker-expansion.expanded{grid-template-rows:1fr;opacity:1}.picker-expansion-inner{min-height:0;overflow:hidden}.picker-expansion-inner>.picker-controls{margin-bottom:14px}@media(prefers-reduced-motion:reduce){.picker-expansion{transition:none}}

.picker-room-header{position:relative;display:block;width:100%;padding:0;text-align:left}.picker-room-header .room-banner.room-illustrated{height:72px;min-height:72px;padding:12px 45px 12px 16px}.picker-room-chevron{position:absolute;right:15px;top:50%;transform:translateY(-50%);color:#f4fbff}.picker-room-chevron svg{width:20px;height:20px;transition:transform .22s ease}.picker-room-header[aria-expanded=true] .picker-room-chevron svg{transform:rotate(90deg)}.picker-room-body{display:grid;grid-template-rows:0fr;transition:grid-template-rows .25s ease}.picker-room-body.expanded{grid-template-rows:1fr}.picker-room-inner{min-height:0;overflow:hidden}@media(prefers-reduced-motion:reduce){.picker-room-body,.picker-room-chevron svg{transition:none}}

.scene-grid{row-gap:12px;column-gap:12px}.scene-grid>.scene-tile{margin:0;min-width:0}


.home-scene-name{display:flex;align-items:center;gap:9px;min-width:0}.home-scene-name>span:last-child{min-width:0;overflow-wrap:anywhere}.home-scene-dot{width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:var(--scene-color,var(--cyan))}

.schedule-title-row{display:flex;align-items:center;justify-content:space-between;gap:14px}.schedule-title-row .iconbtn{flex-shrink:0}.schedule-settings{background:transparent;border:0;display:grid;place-items:center;width:42px;height:42px;color:var(--cyan)}.schedule-list-heading{display:flex;align-items:center;gap:8px}.schedule-list-heading strong{font-weight:500;flex:1;min-width:0;overflow-wrap:anywhere}.schedule-count{color:var(--cyan);font-size:11px;white-space:nowrap}.schedule-list-entry .details small{line-height:1.6;margin-top:10px}.schedule-wheel-pair{display:flex;gap:15px;padding:18px}.schedule-wheel-pair label{flex:1;min-width:0;font-size:12px;color:var(--muted)}.schedule-wheel-pair select,.schedule-wheel{margin-top:10px;scrollbar-width:thin;scrollbar-color:var(--cyan) transparent}.schedule-test-detail{display:block;margin-top:6px;font-size:11px;color:var(--muted);line-height:1.6}.night-level{padding:20px;display:flex;align-items:center;gap:16px}.phone .event-options input[type=radio]{appearance:none;-webkit-appearance:none;border:1.5px solid var(--muted);border-radius:50%;background:transparent}.phone .event-options input[type=radio]:checked{border-color:var(--cyan);background:radial-gradient(circle,var(--cyan) 0 5px,transparent 5.5px)}

.schedule-settings>span{font-size:28px;line-height:1}.sun-offset output{display:block;text-align:center;margin:14px 0 8px;color:var(--cyan);font-size:13px}.sun-offset-track{position:relative;margin:0 8px}.sun-offset-center{position:absolute;left:50%;top:8px;height:16px;width:1px;background:var(--muted);pointer-events:none}.sun-offset input.sun-offset-slider{appearance:none;-webkit-appearance:none;display:block;width:100%;height:32px;margin:0;padding:0;background:transparent;position:relative;cursor:pointer}.sun-offset-slider::-webkit-slider-runnable-track{height:4px;border-radius:8px;background:linear-gradient(to right,#8faeb36b 0 var(--offset-start),var(--cyan) var(--offset-start) var(--offset-end),#8faeb36b var(--offset-end) 100%)}.sun-offset-slider::-moz-range-track{height:4px;border-radius:8px;background:linear-gradient(to right,#8faeb36b 0 var(--offset-start),var(--cyan) var(--offset-start) var(--offset-end),#8faeb36b var(--offset-end) 100%)}.sun-offset-slider::-webkit-slider-thumb{-webkit-appearance:none;width:16px;height:16px;margin-top:-6px;border:0;border-radius:50%;background:var(--cyan);box-shadow:0 1px 4px #0b233c30}.sun-offset-slider::-moz-range-thumb{width:16px;height:16px;border:0;border-radius:50%;background:var(--cyan);box-shadow:0 1px 4px #0b233c30}.sun-offset-labels{display:grid;grid-template-columns:1fr auto 1fr;gap:6px;font-size:10px;color:var(--muted);margin-top:4px}.sun-offset-labels>span:last-child{text-align:right}.sun-offset-labels>span:nth-child(2){text-align:center}

.event-expansion{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .28s ease,opacity .2s ease}.event-expansion.expanded{grid-template-rows:1fr;opacity:1}.event-expansion-inner{min-height:0;overflow:hidden}.event-options{overflow-anchor:none}.schedule-time-picker{padding:10px 24px 20px}.time-wheel-labels{display:grid;grid-template-columns:1fr 1fr;text-align:center;color:var(--muted);font-size:11px;letter-spacing:.5px;margin-bottom:8px}.time-wheel-columns{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:24px}.time-wheel{height:120px;padding:40px 0;overflow-y:auto;overscroll-behavior:contain;scroll-snap-type:y mandatory;scrollbar-width:none;position:relative;z-index:1;mask-image:linear-gradient(transparent,#000 30%,#000 70%,transparent)}.time-wheel::-webkit-scrollbar{display:none}.time-wheel-value{display:block;height:40px;width:100%;padding:0;scroll-snap-align:center;font-size:22px;line-height:40px;font-variant-numeric:tabular-nums;color:var(--muted);opacity:.55}.time-wheel-value.selected{color:var(--cyan);opacity:1;font-weight:600}.time-wheel-selection{position:absolute;left:0;right:0;top:40px;height:40px;border-top:1px solid #67e5ed44;border-bottom:1px solid #67e5ed44;background:#67e5ed0a;pointer-events:none}.time-wheel-colon{position:absolute;left:50%;top:40px;transform:translateX(-50%);line-height:40px;font-size:22px;color:var(--cyan);pointer-events:none}@media(prefers-reduced-motion:reduce){.event-expansion{transition:none}}

.time-wheel-value,.time-wheel-colon{font-size:18px}.schedule-today{display:block;font-size:11px;color:var(--muted);line-height:1.5;margin-top:4px}.schedule-offset-today{text-align:center;font-size:11px;color:var(--muted);margin:12px 0 0}

.location-day-art{position:relative;isolation:isolate;width:210px;height:210px;margin:24px auto;border-radius:50%;overflow:hidden;background:linear-gradient(#8dcbd6,#406b92);animation:location-sky 10s ease-in-out infinite alternate}.location-day-sun{position:absolute;left:75px;top:35px;width:55px;height:55px;border-radius:50%;background:#f5e6aa;box-shadow:0 0 25px #f5e6aa55}.location-day-moon{position:absolute;left:91px;top:24px;width:55px;height:55px;border-radius:50%;background:#3d6083;animation:location-moon 10s ease-in-out infinite alternate}.location-hill{position:absolute;left:-20px;bottom:-60px;width:230px;height:140px;border-radius:50%;background:#6ba9b5;transform:rotate(18deg)}.location-hill.second{left:65px;bottom:-70px;background:#487f92;transform:rotate(-25deg)}.location-facts{max-width:250px;margin:auto}.location-facts p{display:flex;gap:14px;align-items:center;font-size:12px}.location-facts svg{color:var(--muted)}.schedule-warning,.clock-result.failed{color:#efb65c}.clock-room summary{position:relative;list-style:none;cursor:pointer}.clock-room summary::-webkit-details-marker{display:none}.clock-room summary>.room-banner{height:65px;min-height:65px}.clock-room summary>span{position:absolute;right:16px;top:23px;color:white}.clock-result{text-align:right;font-size:10px;max-width:45%;color:var(--cyan)}.clock-result small{display:block;margin-top:5px}.clock-device-row:disabled{opacity:1;cursor:default}.clock-device-row .details{min-width:0;overflow-wrap:anywhere}@keyframes location-sky{to{background:#29435f}}@keyframes location-moon{from{opacity:0}to{opacity:1}}@media(prefers-reduced-motion:reduce){.location-day-art,.location-day-moon{animation:none}.location-day-moon{opacity:0}}

.topbar.clock-troubleshooting-header{grid-template-columns:42px minmax(0,1fr) auto;gap:8px}.clock-search-again{white-space:nowrap;min-width:max-content;padding:10px 0 10px 12px}.clock-troubleshooting-content{min-height:0;overflow-y:auto;overflow-x:hidden;touch-action:pan-y;overscroll-behavior:contain;overflow-anchor:none}



.clock-result.checking{display:flex;align-items:center;justify-content:flex-end;min-width:20px;flex-shrink:0}.clock-result.checking>.search-spinner{display:block;width:18px;height:18px;min-width:18px;flex:0 0 18px;aspect-ratio:1;border-radius:50%;border:2px solid #67e5ed33;border-top-color:var(--cyan);animation:system-search .8s linear infinite}

.detect-panel{padding:4px 0 16px}.detect-panel-frame{display:flex;gap:7px;width:148px;padding:10px;margin:12px auto;border:1px solid var(--line);border-radius:14px;background:#9ed5dc0a;box-shadow:0 6px 18px #06142530}.detect-panel-frame.single{width:92px}.detect-rocker{flex:1;display:flex;flex-direction:column;border:1px solid #9ed5dc55;border-radius:7px;overflow:hidden}.detect-rocker button{display:grid;place-items:center;width:100%;height:56px;color:var(--muted);font-size:20px;transition:background .15s,color .15s}.detect-rocker button+button{border-top:1px solid #9ed5dc22}@media (hover:hover){.detect-rocker button:hover{background:#67e5ed33;color:var(--cyan)}}.detect-rocker button:active{color:var(--cyan)}.phone input.scene-circle-choice[type=radio]{appearance:none;-webkit-appearance:none;width:20px;height:20px;padding:0;margin:0;border:1.5px solid var(--muted);border-radius:50%;background:transparent;flex:0 0 20px;cursor:pointer}.phone input.scene-circle-choice[type=radio]:checked{border-color:var(--cyan);background:radial-gradient(circle,var(--cyan) 0 5px,transparent 5.5px)}

.button-listening{display:flex;align-items:center;justify-content:center;gap:10px;margin:18px 0 24px;color:var(--muted);font-size:12px}.button-listening .search-spinner{display:block;flex:0 0 18px;width:18px;height:18px}.external-button-panel{max-height:320px;overflow-y:auto;scrollbar-width:thin;margin-top:12px}.external-button-panel:empty{display:none}.external-double-press{display:flex;flex-wrap:wrap;justify-content:center}.external-double-press .textbtn{font-size:10px;padding:7px}

.night-time-section h4{margin:14px 18px 0;font-size:13px;font-weight:500;color:var(--text)}.night-time-section .schedule-time-picker{padding-top:12px;padding-bottom:14px}

/* Shared night hours editor */
.night-hours-module{overflow:hidden}.night-hours-module .night-time-section+ .night-time-section{border-top:1px solid #ffffff16}.night-hours-module .night-time-section h4{color:var(--cyan);font-size:14px;margin:18px 18px 4px}.night-period-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding:0 12px}.night-period-pair h5{text-align:center;margin:8px 0 0;font-size:12px;font-weight:500;color:var(--text)}.night-period-pair .schedule-time-picker{padding:8px 4px 14px}.night-period-pair .time-wheel-columns{gap:12px}

.fade-time-control{padding:24px}.fade-time-control output{display:block;text-align:center;color:var(--cyan);font-size:20px;margin-bottom:22px}.fade-time-control input{width:100%}.fade-time-scale{display:flex;justify-content:space-between;margin-top:12px;font-size:12px;color:var(--muted)}

.schedule-delete-entry{color:#f28e97}.schedule-delete-copy{overflow-wrap:anywhere}.schedule-delete-copy strong{color:var(--text);font-weight:600}.schedule-delete-cancel{min-height:44px;border:0;background:transparent}

.schedule-delete-progress section{width:190px!important;text-align:center}.schedule-delete-progress h3{display:none}.schedule-delete-progress .busy-feedback{gap:18px}.schedule-delete-progress .search-spinner{display:block;flex:none;width:29px;height:29px}.schedule-delete-status{font-size:14px}

.minimum-level-editor{padding:4px 20px 18px}.minimum-level-editor .min-level{padding:12px 0 18px}.minimum-level-editor output{color:var(--cyan);font-variant-numeric:tabular-nums}.minimum-level-editor>.room-brightness-slider{width:100%;display:block}.minimum-level-scale{display:flex;justify-content:space-between;margin-top:12px;color:var(--muted);font-size:11px}

.schedule-inactive-label{color:var(--muted);font-size:10px;font-weight:400;margin-left:6px}

nav.home-icon-nav button{min-height:54px;display:flex;align-items:center;justify-content:center;color:var(--muted)}nav.home-icon-nav button.active{color:var(--cyan)}nav.home-icon-nav button:active svg{transform:scale(.92)}nav.home-icon-nav button svg{width:25px;height:25px;margin:0;flex-shrink:0;overflow:visible}

nav.home-icon-nav button,nav.home-icon-nav button.active{border:0;background:transparent;box-shadow:none}nav.home-icon-nav button:focus-visible{outline:2px solid var(--cyan);outline-offset:2px}
.home-climate-room{margin-bottom:22px}
.home-climate-summary{display:flex;align-items:center;gap:10px;width:100%;height:36px;margin:9px 0 0;padding:0;text-align:left;font-size:12px;overflow:hidden}
.home-climate-summary>span{flex:1;min-width:0}
.home-climate-summary .climate-summary-line{margin:0}
.climate-summary-line>[data-climate-summary],.climate-summary-line small{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.home-climate-summary>svg{width:24px;height:24px;flex-shrink:0;color:var(--cyan)}
.climate-summary-line{display:block;margin:3px 0}
.climate-summary-line small{display:block;margin-top:3px;color:var(--muted);font-size:10px}
.climate-device-card>.row{padding:12px 16px;min-height:54px}
.climate-device-card>.row .iconbtn{font-size:14px;background:none;border:0}
.climate-state-icon{display:flex;color:var(--cyan);flex-shrink:0}
.climate-state-icon svg{width:24px;height:24px}
.climate-actions{display:flex;align-items:center;gap:7px;flex-shrink:0}
.climate-actions .iconbtn{width:32px;height:32px;font-size:18px}
.climate-boost .climate-actions .iconbtn{font-size:11px}
.climate-boost .climate-state-icon{color:#ffbd53}
.climate-mode-menu .climate-actions{width:100%}
.climate-menu-close{margin-left:auto}
.room-climate-controls.climate-mode-menu{padding:18px 16px}
.climate-off-confirm{background:#be442c;color:#fff}
.climate-device-card .room-climate-controls{gap:9px}
.climate-device-card .details small{line-height:1.5}
.home-climate-heading{display:flex;align-items:center;justify-content:space-between;width:100%;padding:12px 2px;font-size:16px;text-align:left}
.home-climate-heading .arrow svg{width:24px;height:24px}
nav.home-icon-nav button{flex:1;min-width:0}

.side-panel-background{position:absolute;inset:0;display:flex;flex-direction:column;overflow:hidden;pointer-events:none}.system-shell>.drawer-scrim{background:rgba(3,10,24,.46);backdrop-filter:none}.system-shell:has(.side-panel-background)>.topbar{visibility:hidden}.settings-opening{animation:settings-slide-in .3s cubic-bezier(.22,.75,.25,1)}@keyframes settings-slide-in{from{transform:translateX(100%)}to{transform:translateX(0)}}@media(prefers-reduced-motion:reduce){.settings-opening{animation:none}}

.sensor-tabs{display:flex;gap:22px;border-bottom:1px solid var(--line);margin-bottom:22px}.sensor-tabs button{padding:12px 0;color:var(--muted);border-bottom:3px solid transparent;font-size:13px}.sensor-tabs button[aria-selected=true]{color:var(--cyan);border-bottom-color:var(--cyan)}

.topbar.scrolling-page-header{position:relative;flex-shrink:0}.scrolling-page-header>.scrolling-page-title{position:absolute;left:50%;transform:translateX(-50%);max-width:calc(100% - 148px);text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none;font-size:16px;opacity:0}.category-content{--category-title-opacity:1}

.replacement-search{min-height:300px;display:flex;flex-direction:column;justify-content:center;text-align:center}.replacement-search .busy-feedback{gap:14px}.replacement-search .search-spinner{display:block;width:28px;height:28px}.replacement-search>.sub{margin-top:60px;font-size:12px}

.topbar .page-close{justify-self:start;min-width:52px;min-height:44px;padding:10px 0;text-align:left;font-size:13px}.topbar.category-topbar:has(.page-close){grid-template-columns:60px minmax(0,1fr) 60px}

/* Keep the captured home layout fixed while only the drawer moves. */
.side-panel-background{display:block;min-width:0;min-height:0}.system-shell.settings-shell{flex:1 0 100%;min-height:0}.settings-shell>.drawer-scrim{backdrop-filter:none}

/* Gateway commissioning uses the shared controls and page transitions. */
.gateway-art{display:flex;justify-content:center;padding:24px 0 32px}.gateway-unit{width:138px;height:138px;border-radius:32px;background:linear-gradient(145deg,rgba(158,213,220,.3),rgba(158,213,220,.08));border:1px solid rgba(158,213,220,.5);box-shadow:0 18px 42px rgba(0,0,0,.16);display:grid;place-items:center;position:relative;transform:rotate(-7deg)}.gateway-unit span{font-size:25px;color:#c9eef1;font-weight:600;letter-spacing:1px}.gateway-unit i{position:absolute;bottom:20px;right:20px;width:9px;height:9px;border:1px solid #9ed5dc;border-radius:50%}.gateway-progress .row{min-height:76px}.gateway-progress svg{width:24px;height:24px;color:#9ed5dc}.gateway-step-active{color:#9ed5dc}.gateway-step-pending{opacity:.4}.gateway-step-dot{width:7px;height:7px;border:1px solid currentColor;border-radius:50%;margin:8px}.gateway-confirmation{text-align:center;padding:24px 16px}.gateway-confirmation h3{margin:18px 0 12px}.gateway-confirmation .import-complete-mark{margin:auto}.gateway-progress .search-spinner,.gateway-confirmation .search-spinner{display:inline-block;width:24px;height:24px;flex-shrink:0}

.gateway-cloud{width:100%;max-width:300px;margin:32px auto 36px;color:#9ed5dc}.gateway-cloud svg{display:block;width:100%;height:auto;aspect-ratio:220 / 142;fill:rgba(158,213,220,.06);stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.gateway-cloud circle{fill:#193b50}.gateway-status-copy{text-align:center;margin-bottom:28px}.gateway-status-copy h3{font-size:20px;margin-bottom:14px}.member-connection{display:inline-flex;align-items:center;gap:6px;color:#9ed5dc;font-size:11px;line-height:1.6;margin-top:6px}.member-connection svg{width:17px;height:17px;flex:none}.mesh-status.remote{color:#8de4d3}

/* Access indicators align beside the Users row chevrons. */
.row .member-connection{display:inline-flex;align-items:center;justify-content:center;flex:0 0 24px;width:24px;height:24px;margin:0;color:#9ed5dc}.row .member-connection svg{width:21px;height:21px;margin:0}.row .member-connection + .arrow{margin-left:2px}

.gateway-delete-action{color:#efb6ae}

/* OTA uses the existing glass surfaces and circular progress language. */
.ota-loading,.ota-complete{min-height:230px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px}.ota-loading .search-spinner{width:32px;height:32px}.ota-complete>svg{width:48px;height:48px;color:#8de4d3}.ota-proximity{width:180px;height:180px;margin:24px auto;border-radius:50%;background:radial-gradient(circle,rgba(103,219,225,.2),rgba(103,219,225,.03));display:grid;place-items:center}.ota-proximity svg{width:65px;height:65px;color:#9ed5dc}.ota-steps{list-style:none;padding:8px 0;margin:16px 0}.ota-steps li{position:relative;display:flex;align-items:center;gap:18px;min-height:78px;color:var(--muted,#a8b8ce)}.ota-steps li:not(:last-child):after{content:"";position:absolute;left:18px;top:57px;bottom:-18px;width:1px;background:rgba(158,213,220,.22)}.ota-step-icon{width:38px;height:38px;border:1px solid rgba(158,213,220,.25);border-radius:50%;display:grid;place-items:center;flex:none}.ota-step-icon svg{width:23px;height:23px}.ota-step-icon .search-spinner{width:22px;height:22px}.ota-steps .complete .ota-step-icon{background:rgba(103,219,225,.2);color:#8de4d3;border-color:#8de4d3}.ota-steps .active{color:#e8f8fc}.ota-notice{text-align:center;font-size:12px;margin:0}.ota-warning{width:20px;height:20px;border:1px solid #efbf72;border-radius:50%;display:inline-grid;place-items:center;color:#efbf72;font-size:13px;font-weight:700;margin-right:8px}

.ota-room-row .home-room-image{position:static;width:48px;height:48px;flex:0 0 48px;object-fit:cover;border-radius:9px}.ota-room-row{gap:12px}.ota-room-count{color:#9ed5dc;font-size:12px;white-space:nowrap}.ota-preparations{padding:20px}.ota-preparations h3{font-size:16px;margin:0 0 12px}.ota-preparations ul{padding-left:18px;color:var(--muted,#a8b8ce);font-size:14px;line-height:1.7}.ota-preparations li+li{margin-top:8px}.ota-batch-device{padding:16px 14px;gap:10px;margin-bottom:12px}.ota-batch-device>.details{min-width:0}.ota-batch-device small{overflow-wrap:anywhere;font-size:10px}.ota-device-status{display:flex;align-items:center;justify-content:flex-end;gap:7px;font-size:12px;flex-shrink:0}.ota-device-status .search-spinner{width:16px;height:16px;flex:none}.ota-device-status.done{color:#8de4d3}.ota-device-status.done svg{width:23px;height:23px}.ota-device-status.waiting{color:#9ed5dc}.ota-device-status.unreachable{color:#a8b8ce}.ota-failure-info{padding:0;min-width:24px;min-height:32px;font-size:19px;color:#9ed5dc}

.ota-approach-title{margin:0 0 32px;line-height:1.4}.ota-approach-title + .glass{margin-top:0}

#app > .ota-progress-scroll{flex:1 1 0;min-height:0;overflow-y:auto;overflow-x:hidden;touch-action:pan-y;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch;padding-bottom:24px}.ota-progress-scroll ~ .commissioning-footer{flex-shrink:0}

.handover-code-card{display:flex;flex-direction:column;align-items:center;gap:20px;padding:26px 18px;margin-top:24px}.handover-code-label{font-size:11px;letter-spacing:1.5px;color:var(--muted,#a8b8ce)}.handover-code-card code{font-size:20px;font-weight:600;letter-spacing:2px;color:var(--text,#e8f8fc);text-align:center;overflow-wrap:anywhere}.handover-code-card .pill{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:8px 18px}.handover-code-card .pill svg{width:16px;height:16px}.handover-guide{list-style:none;padding:0;margin-top:16px}.handover-guide li{padding:20px}.handover-guide li+li{border-top:1px solid #ffffff18}.handover-step-title{display:flex;align-items:center;gap:10px}.handover-step-title h3{margin:0;font-size:15px;font-weight:500}.handover-step-number{display:grid;place-items:center;flex:0 0 23px;width:23px;height:23px;border:1px solid #9ed5dc88;border-radius:50%;font-size:12px;color:#9ed5dc}.handover-guide p{margin:12px 0 0;color:var(--muted,#a8b8ce);font-size:13px;line-height:1.65}

.topbar.category-topbar:has(.member-remove-action){grid-template-columns:72px minmax(0,1fr) 72px}.topbar .member-remove-action{justify-self:end;min-height:44px;padding:10px 8px;margin-right:4px;white-space:nowrap}

.sensor-list-status{flex:none;font-size:13px;line-height:1.4;margin-left:10px;white-space:nowrap}.sensor-list-status.is-active{color:var(--accent,#63dce5)}.sensor-list-status.is-inactive{color:var(--muted,#a9bcd2)}

.panel-config-identity{display:flex;align-items:center;gap:16px;margin:0 0 18px}.panel-config-identity .switch-drawing{width:72px;height:66px;margin:0}.panel-config-identity .sub{margin:0}.panel-speed{display:flex;align-items:center;justify-content:space-between;padding:18px}.panel-speed output{font-size:18px;color:var(--accent,#63dce5)}

/* Align the scheduling menu with the title-row add button below. */
.topbar.category-topbar .schedule-settings{justify-self:end;width:36px;height:36px;padding:0}

.about-filter-button{justify-self:end}
.sun-circle-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 10px;padding:8px 0 20px}.sun-gesture-help{font-size:11px;color:var(--muted);text-align:center;margin:4px 0 12px}.sun-circle-tile{text-align:center;min-width:0;padding:0}.sun-circle{position:relative;display:block;width:100%;height:auto;max-width:104px;aspect-ratio:1;margin:0 auto 6px;border:0;border-radius:50%;padding:3px;background:#9db9cd26;touch-action:pan-y;user-select:none;-webkit-user-select:none;transition:transform .18s,box-shadow .25s;overflow:hidden}.sun-circle.is-on{background:conic-gradient(var(--circle-color) var(--circle-level),#9db9cd26 0);box-shadow:0 0 24px #65dce218}.sun-circle[data-circle-kind].is-pressed::after{content:"";position:absolute;inset:0;border-radius:50%;background:rgba(255,255,255,.16);pointer-events:none}
.sun-circle.is-pressed{transform:scale(.94)}.sun-circle-face{display:flex;width:100%;height:100%;align-items:center;justify-content:center;border:3px solid #172c43;border-radius:50%;overflow:hidden;background:#28465b;color:#b0ccda}.sun-circle.is-on .sun-circle-face{color:var(--circle-color)}.sun-circle-face img,.sun-circle-face .room-thumbnail{width:100%;height:100%;object-fit:cover;border-radius:50%;margin:0}.sun-circle-face>svg{width:36px;height:36px;fill:none;stroke:currentColor;stroke-width:1.5}.sun-circle:not(.is-on) img{filter:brightness(.55) saturate(.6)}.sun-circle-state{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);border-radius:12px;padding:2px 8px;font-size:11px;color:#eafcff;background:#112638c9;white-space:nowrap}.sun-circle-name{font-size:12px;min-height:34px;overflow-wrap:anywhere;color:var(--text);line-height:1.4;display:block;width:100%;padding:0 3px}.sun-circle-name span{color:var(--cyan);margin-left:5px}.sun-adjust{font-size:11px;color:var(--muted);padding:5px 12px}.room-detail-panel>[role=tabpanel]:has(>.sun-circle-tile){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 10px}.sun-control-label{display:flex;align-items:center;justify-content:space-between;font-size:14px;margin:24px 0 16px;color:var(--text)}.sun-control-label output{color:var(--cyan);font-size:13px}.sun-control-scope{font-size:11px;color:var(--muted);margin:10px 0 18px}#circlePanel>input[type=range]{width:100%}#circlePanel .sun-temp{background:linear-gradient(90deg,#eeb777,#e9f6ff,#9acbff)}.sun-panel-power{display:flex;align-items:center;gap:12px;color:var(--cyan);margin:20px auto}.sun-panel-power svg{width:30px;height:30px;stroke:currentColor;fill:none;stroke-width:1.5}.sun-control-label input[type=color]{width:66px;height:42px;padding:3px;background:transparent;border:1px solid #8daebe55;border-radius:12px}.sun-panel-done{display:block;margin:24px auto 0;border-radius:999px!important;width:80%}#xpModal:has(#circlePanel) section{max-height:85%;overflow:auto}.sun-circle:focus-visible,.sun-adjust:focus-visible,.sun-circle-name:focus-visible{outline:2px solid var(--cyan);outline-offset:4px}@media(prefers-reduced-motion:reduce){.sun-circle{transition:none}}

/* Compact direct-control sheet; scoped to Sunlite light controls. */
#xpModal.direct-sheet{container-type:size;display:flex;align-items:flex-end;padding:0;background:#07172770;backdrop-filter:blur(3px)}
#xpModal.direct-sheet:has(#circlePanel) section{width:100%;max-width:none;max-height:calc(100% - 8px);margin:0;padding:0 24px 16px;border-radius:26px 26px 0 0;background:#162e43;color:#edf8ff;overflow:hidden;animation:direct-sheet-enter .23s ease-out}
.light-theme #xpModal.direct-sheet section{background:#eaf5fb;color:#193d52}
#xpModal.direct-sheet section>h3{display:none}
.direct-handle{display:flex;width:100%;height:30px;align-items:center;justify-content:center;touch-action:none}
.direct-handle span{width:36px;height:4px;border-radius:5px;background:#87a7b8aa}
.direct-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 8px;font-size:16px;font-weight:600}
.direct-heading .sun-panel-power{margin:0;padding:6px;color:#8aa5b6}
.direct-heading .sun-panel-power[aria-pressed=true]{color:var(--cyan)}
.direct-heading .sun-panel-power svg{width:26px;height:26px}
.direct-control{display:grid;grid-template-columns:83px minmax(0,1fr);align-items:center;gap:16px;min-height:clamp(40px,7cqh,56px)}
.direct-control label{font-size:11px;line-height:1.5;color:inherit}
.direct-control output{display:block;font-size:13px;font-variant-numeric:tabular-nums;color:var(--cyan)}
:is(#circlePanel.direct-controls,.scene-color-page,.scene-state-controls) .direct-control input[type=range]{appearance:none;-webkit-appearance:none;display:block;width:100%;height:4px;min-height:4px;padding:0;border:0;border-radius:9px;background:var(--direct-track,linear-gradient(to right,var(--cyan) var(--range-fill),#7a9bb755 var(--range-fill)));touch-action:pan-y;cursor:pointer;box-shadow:none}
:is(#circlePanel.direct-controls,.scene-color-page,.scene-state-controls) input[type=range]::-webkit-slider-runnable-track{height:4px;background:transparent;border-radius:9px}
:is(#circlePanel.direct-controls,.scene-color-page,.scene-state-controls) input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:22px;height:22px;margin-top:-9px;border:3px solid #defaff;border-radius:50%;background:#57c8d2;box-shadow:0 2px 6px #08263540}
.direct-spectrum{position:relative;height:clamp(64px,20cqh,144px);margin:12px 0 8px;border-radius:14px;overflow:hidden;background:linear-gradient(to bottom,#fff,transparent),linear-gradient(to right,#f00,#ff0,#0f0,#0ff,#00f,#f0f,#f00);touch-action:none;cursor:crosshair}
.spectrum-cursor{position:absolute;width:20px;height:20px;border:2px solid white;border-radius:50%;transform:translate(-50%,-50%);box-shadow:0 0 0 1px #15395166;pointer-events:none}
.direct-swatches{display:grid;grid-template-columns:repeat(8,1fr);gap:8px}
.direct-swatches button{height:30px;border-radius:8px;background:var(--swatch);border:1px solid #ffffff55}
@keyframes direct-sheet-enter{from{transform:translateY(100%)}to{transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){#xpModal.direct-sheet section{animation:none}}


.sun-circle-state{z-index:auto}
.direct-swatches button{touch-action:none;user-select:none;-webkit-user-select:none;transition:transform .16s,box-shadow .16s}.direct-swatches button.swatch-holding{transform:scale(.9)}.direct-swatches button.swatch-saved{box-shadow:0 0 0 2px var(--cyan);color:white;font-size:20px;text-shadow:0 1px 4px #0009}

/* Drag starts on a circle; the gaps and names remain normal scroll surfaces. */
.sun-circle.gesture-cct{touch-action:none}
.sun-circle.is-adjusting{transform:scale(.97)}
.sun-circle-face img{-webkit-user-drag:none;pointer-events:none}

/* Full-surface gesture feedback, matching the provided Casambi interaction. */
.circle-gesture-overlay{position:absolute;inset:0;z-index:30;pointer-events:none;overflow:hidden;background:#eaf5f785;isolation:isolate}
.circle-gesture-overlay.temperature{background:color-mix(in srgb,var(--gesture-temperature-color) 65%,transparent)}
.gesture-horizontal{position:absolute;left:32px;right:32px;top:var(--gesture-track-y)}
.gesture-horizontal-track{height:4px;border-radius:4px;background:#29485b50;position:relative}
.gesture-horizontal-track>i{display:block;height:100%;width:var(--gesture-fill);background:#f6fdff;border-radius:inherit}
.gesture-horizontal-thumb{position:absolute;left:var(--gesture-fill);top:50%;transform:translate(-50%,-50%);width:10px;height:10px;background:#f7fdff;border-radius:50%;box-shadow:0 1px 5px #193a4c30}
.gesture-value-bubble{position:absolute;left:clamp(0%,var(--gesture-fill),100%);bottom:21px;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:50%;background:#31bcc8;color:#fff;font-size:17px;font-weight:500;font-variant-numeric:tabular-nums;box-shadow:0 3px 14px #164c6220}
.gesture-value-bubble:after{content:'';position:absolute;bottom:-5px;left:23px;border-left:5px solid transparent;border-right:5px solid transparent;border-top:7px solid #31bcc8}
.gesture-vertical{display:none;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:64px;height:min(520px,calc(100% - 64px))}
.vertical .gesture-horizontal{display:none}
.vertical .gesture-vertical{display:block}
.gesture-vertical-track{position:absolute;top:84px;bottom:84px;left:50%;transform:translateX(-50%);width:1px;background:#46647870}
.gesture-endpoint{position:absolute;left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:50%;font-size:13px;font-variant-numeric:tabular-nums;color:#fff;background:#53889bba}
.gesture-warm{top:0}.gesture-cool{bottom:0}
.gesture-temperature-marker{position:absolute;top:var(--gesture-fill);left:0;width:9px;height:9px;transform:translate(-50%,-50%);border-radius:50%;background:#f8fdff;box-shadow:0 0 0 2px #527f9155}
.gesture-temperature-marker strong{position:absolute;right:20px;top:50%;transform:translateY(-50%);font-size:14px;font-weight:500;white-space:nowrap;color:#24445a;text-shadow:0 1px 4px #ffffff80}

/* Keep every cloned home-page child below the drawer and its dimming layer. */
.sun-circle{isolation:isolate}
.system-shell:has(>.side-panel-background){isolation:isolate}
.system-shell>.side-panel-background{z-index:0;isolation:isolate}
.system-shell:has(>.side-panel-background)>.drawer-scrim{z-index:1}
.system-shell:has(>.side-panel-background)>.settings-drawer,
.system-shell:has(>.side-panel-background)>.system-drawer{z-index:2}

.project-device-room{display:block;text-align:center;font-size:10px;color:var(--muted);margin-top:3px}
.project-lights-spacer{width:40px}
.project-lights-content{overflow-y:auto;min-height:0}

/* Six tracks preserve three equal tiles and center incomplete final rows. */
.sun-circle-grid,.room-detail-panel>[role=tabpanel]:has(>.sun-circle-tile){grid-template-columns:repeat(6,minmax(0,1fr))}
.sun-circle-grid>*,.room-detail-panel>[role=tabpanel]>.sun-circle-tile{grid-column:span 2}
.sun-circle-grid>:last-child:nth-child(3n + 1),.room-detail-panel>[role=tabpanel]>.sun-circle-tile:last-child:nth-child(3n + 1){grid-column:3 / span 2}
.sun-circle-grid>:nth-last-child(2):nth-child(3n + 1),.room-detail-panel>[role=tabpanel]>.sun-circle-tile:nth-last-child(2):nth-child(3n + 1){grid-column:2 / span 2}
.sun-circle-grid>:last-child:nth-child(3n + 2),.room-detail-panel>[role=tabpanel]>.sun-circle-tile:last-child:nth-child(3n + 2){grid-column:4 / span 2}

/* Room types share the same bottom-navigation convention as the project. */
.room-detail-shell.has-bottom-types .room-detail-scroll{height:calc(100% - 64px)}
.room-detail-shell .room-bottom-types{position:absolute;inset:auto 0 0;z-index:8;height:64px;min-height:64px;margin:0;display:flex;align-items:center;padding:0 18px;background:#1a3449;border-top:1px solid #aacddd24}
.light-theme .room-detail-shell .room-bottom-types{background:#d4e8f0;border-top-color:#6b94a52b}
.room-bottom-types button{flex:1;min-width:0;height:54px}
.room-layout-switch{display:flex;justify-content:flex-end;gap:4px;padding:12px 0 2px}
.room-layout-switch button{color:var(--muted);font-size:11px;padding:7px 12px;border-radius:20px}
.room-layout-switch button[aria-pressed=true]{background:#58c5d022;color:var(--cyan)}
.room-position-panel{display:block!important}
.room-map-master{display:flex;justify-content:center;padding:0 0 16px}
.room-map-master>.sun-circle-tile{width:104px}
.room-position-canvas{position:relative;width:100%;isolation:isolate;background:#8dc8d30d;border-radius:20px;overflow:hidden;border:1px solid #87b7c830}
.room-floor-plan{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none;opacity:.85}
.room-outline{position:absolute;inset:20px;border:3px solid #83a8b84d;border-radius:4px;pointer-events:none;background-image:radial-gradient(#7aa4b32b .8px,transparent .8px);background-size:18px 18px}
.room-outline:after{content:'';position:absolute;bottom:-3px;left:38%;width:24%;height:4px;background:#d2e9ef}
.room-outline span{position:absolute;top:25%;right:-3px;height:22%;width:3px;background:#61cbd4}
.room-position-device{position:absolute;width:76px;height:100px}
.room-position-device .sun-circle{width:64px;height:64px;max-width:64px;margin:0 auto 3px}
.room-position-device .sun-circle-state{font-size:9px;bottom:7px;padding:1px 5px}
.room-position-device .sun-circle-name{font-size:10px;line-height:1.3;min-height:26px}
.room-position-device .sun-circle-face>svg{width:27px;height:27px}
.layout-info-device,.layout-edit-device{display:flex;flex-direction:column;align-items:center;width:76px;padding:0;gap:4px;color:var(--text);font-size:10px;line-height:1.3;overflow-wrap:anywhere}
.layout-device-icon{display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:50%;border:2px solid #83b6c5;background:#28465b;color:#a1e7ef;box-shadow:0 3px 12px #152c4320}
.light-theme .layout-device-icon{background:#e7f4f8;color:#24859a}
.layout-device-icon svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.5}
.room-layout-editor{min-height:0;overflow:auto;padding-bottom:24px}
.layout-edit-device{touch-action:none;user-select:none;-webkit-user-select:none}
.layout-edit-device.dragging .layout-device-icon{border-color:var(--cyan);box-shadow:0 0 0 4px #65dce244;transform:scale(1.05)}
.room-position-device:has(.dragging){z-index:4}

.layout-edit-types{display:flex;justify-content:center;gap:20px;margin-bottom:12px}
.layout-edit-types:empty{display:none}
.layout-edit-types button{padding:8px;color:var(--muted);border-bottom:2px solid transparent}
.layout-edit-types button[aria-selected=true]{color:var(--cyan);border-color:var(--cyan)}
.layout-edit-types svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.5}

/* The previous large master-control hero is now a compact room header. */
.room-detail-shell.room-layout-compact .room-detail-hero{height:88px;min-height:88px;padding:0}
.room-detail-shell.room-layout-compact .room-panel-backdrop{top:76px}
.room-detail-shell.room-layout-compact .room-detail-scroll{top:76px;bottom:0;height:auto;padding-top:0;clip-path:none;border-radius:26px 26px 0 0}
.room-detail-shell.room-layout-compact.has-bottom-types .room-detail-scroll{bottom:64px;height:auto}
.room-detail-shell.room-layout-compact .room-detail-panel{min-height:100%;padding-top:12px}
.room-grid-return{display:flex;justify-content:flex-end;padding:0 0 8px}
.room-grid-return button{padding:6px 8px;font-size:12px;color:var(--cyan)}

.sun-circle-face>svg.fixture-icon,.layout-device-icon>svg.fixture-icon{stroke-width:1.15;fill:none}

.room-plan-file{display:none}.room-layout-actions{margin:18px 0}.room-layout-editor .room-position-canvas{margin-top:12px}

.room-layout-enable-row{gap:14px}
.room-layout-entry{display:flex;align-items:center;gap:10px;flex:1;min-width:0;text-align:left;padding:0;color:var(--text)}
.room-layout-entry:disabled{opacity:.6;cursor:default}
.room-layout-entry .details{flex:1}
.layout-enable-switch{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border:1px solid #80a8b866;border-radius:50%;background:transparent;color:var(--muted)}
.layout-enable-switch svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.5}
.layout-enable-switch[aria-checked=true]{color:var(--cyan);border-color:var(--cyan);background:#65dce212}

.layout-enable-switch,.layout-enable-switch[aria-checked=true]{border:0;background:transparent}
.layout-enable-switch svg{width:28px;height:28px;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}

.room-layout-enable-row>.toggle{flex-shrink:0}
.room-position-active .room-detail-scroll{overflow:hidden!important}
.room-detail-shell.room-position-active .room-detail-panel{display:flex;flex-direction:column;height:100%;min-height:0;padding-bottom:12px;box-sizing:border-box}
.room-position-active .room-grid-return{flex:0 0 auto}
.room-position-active .room-position-panel{display:flex!important;flex:1;min-height:0;padding-top:0}
.room-layout-viewport{position:relative;flex:1;min-height:0;overflow:hidden;width:100%}
.room-layout-viewport .room-position-canvas{position:absolute;left:50%;top:50%;transform-origin:center;margin:0!important;box-sizing:border-box}
.layout-editor-viewport{height:480px;flex:none}
.layout-device-icon{overflow:hidden}
.layout-device-icon img{width:100%;height:100%;object-fit:cover}

.floor-crop-preview{height:300px;display:flex;align-items:center;justify-content:center;background:#13334c24;border-radius:18px;padding:0;overflow:hidden;margin:18px 0}
#floorCropCanvas{display:block;border:1px solid var(--cyan);box-sizing:content-box;touch-action:none;cursor:grab}
#floorCropCanvas:active{cursor:grabbing}
.floor-crop-zoom{display:flex;align-items:center;gap:16px;margin:16px 0}.floor-crop-zoom label{font-size:12px;color:var(--muted)}.floor-crop-zoom input{flex:1;min-width:0}

.floor-crop-tools{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}
.floor-crop-tools .textbtn{font-size:12px;padding:10px 2px;color:var(--cyan)}
.floor-crop-tools [aria-pressed=true]{background:#64cadc24;border-radius:20px}

#app>.floor-crop-content{display:flex;flex-direction:column;min-height:0;padding-bottom:8px}
.floor-crop-content>h2,.floor-crop-content>.sub,.floor-crop-zoom,.floor-crop-tools{flex-shrink:0}
.floor-crop-content>.sub{margin-bottom:8px}
.floor-crop-content .floor-crop-preview{flex:1 0 180px;height:auto;min-height:180px;margin:8px 0;background:transparent;border-radius:0}
.floor-crop-content .floor-crop-zoom{margin:12px 0 4px}
.floor-crop-tools{display:flex;justify-content:center;gap:32px;margin:4px 0 0}
.floor-crop-tools .textbtn{display:grid;place-items:center;width:44px;height:44px;padding:9px;border-radius:50%}
.floor-crop-tools svg{width:26px;height:26px;stroke-width:1.5}

/* Floor plans fit the viewport; device controls retain a consistent touch size. */
.room-position-device{width:96px;height:118px;transform:scale(var(--layout-node-scale,1));transform-origin:top left}
.room-position-device .sun-circle{width:72px;height:72px;max-width:72px;touch-action:none}
.room-position-device .sun-circle-state{font-size:11px;bottom:10px;padding:2px 6px}
.room-position-device .sun-circle-name{font-size:12px;line-height:1.3;min-height:30px}
.room-position-device .sun-circle-face>svg{width:32px;height:32px}
.room-position-device .layout-info-device,.room-position-device .layout-edit-device{width:96px;font-size:12px}
.room-position-device .layout-device-icon{width:72px;height:72px}
.room-position-device .layout-device-icon svg{width:32px;height:32px}
.room-position-device:has(.is-pressed),.room-position-device:has(.is-adjusting){z-index:5}

/* Give position editing the same width and near-identical height as room control. */
#app>.layout-editor-header{height:76px;padding:12px 20px;flex-shrink:0}
.layout-editor-header .layout-editor-title{font-size:19px;letter-spacing:-.4px;margin:0;text-align:center}
#app>.room-layout-editor{display:flex;flex-direction:column;min-height:0;overflow:hidden;padding:12px 20px}
.room-layout-editor .layout-editor-viewport{height:auto;min-height:0;flex:1}
#app>.layout-editor-footer{height:64px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 20px;border-top:1px solid var(--line)}
.layout-editor-footer .layout-edit-types{margin:0;gap:6px;min-width:0;overflow-x:auto}
.layout-editor-footer .layout-edit-types button{padding:6px;flex-shrink:0}
.layout-editor-footer .layout-edit-types svg{width:23px;height:23px}
.layout-editor-footer .primary{width:100px;min-height:44px;margin:0 0 0 auto;padding:10px 16px;flex-shrink:0;font-size:12px}

.room-position-canvas.hide-device-names .sun-circle-name,
.room-position-canvas.hide-device-names .layout-edit-device>span:last-child,
.room-position-canvas.hide-device-names .layout-info-device>span:last-child{display:none}

.edit-room-content .room-photo{height:100px;margin-bottom:14px}
.edit-room-content .room-photo>.room-banner,.edit-room-content .room-photo img{height:100px;min-height:0;object-fit:cover}
.edit-room-content .glass{margin-bottom:12px}

.thermostat-reading{font-size:19px;line-height:1.3;color:var(--text)}.thermostat-reading small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.room-position-device .thermostat-reading{font-size:16px}.thermostat-current{text-align:center;color:var(--muted);font-size:12px;margin:20px 0}.thermostat-current strong{display:block;font-size:32px;font-weight:500;color:var(--text);margin-top:8px}.thermostat-modes{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:26px 0 12px}.thermostat-modes button{display:flex;flex-direction:column;align-items:center;gap:8px;padding:10px 2px;font-size:10px;color:var(--muted);border-radius:16px}.thermostat-modes button[aria-pressed=true]{color:var(--cyan);background:#67e5ed18}.thermostat-boost{display:flex;align-items:center;justify-content:space-between;font-size:12px}.thermostat-circle{touch-action:pan-y}

.thermostat-modes button{min-height:44px;justify-content:center}.thermostat-modes button svg{width:26px;height:26px}

.scene-circle{border:1px solid var(--scene-color);background:transparent;padding:3px}.scene-circle .sun-circle-face{color:var(--scene-color)}.scene-circle-tile.scene-card-flash{animation:none}.scene-circle-tile.scene-card-flash .scene-circle{animation:scene-circle-pulse .6s ease-out}@keyframes scene-circle-pulse{0%,100%{box-shadow:none;background:transparent}35%{box-shadow:0 0 22px var(--scene-color);background:var(--scene-color)}}.scene-list-symbol{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:50%;background:#ffffff08}.scene-list-symbol svg{width:23px;height:23px}.scene-icon-field{margin-top:18px}.scene-icon-options{display:grid;grid-template-columns:repeat(5,1fr);gap:12px 6px;padding:18px 0}.scene-icon-options button{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:10px;color:var(--muted);padding:10px 2px;border-radius:18px}.scene-icon-options svg{width:28px;height:28px;stroke-width:1.5}.scene-icon-options button[aria-pressed=true]{background:#67e5ed18;color:var(--scene-color)}

.scene-icon-page-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px 12px;padding:12px 0 24px}
.scene-icon-choice{display:flex;flex-direction:column;align-items:center;gap:10px;padding:0;color:var(--muted);font-size:12px}
.scene-icon-preview{display:grid;place-items:center;width:72px;height:72px;border-radius:50%;border:1px solid var(--line);background:#ffffff05;color:var(--scene-color);transition:background .18s,border-color .18s}
.scene-icon-preview svg{width:32px;height:32px;stroke-width:1.5}
.scene-icon-choice[aria-pressed=true]{color:var(--text)}
.scene-icon-choice[aria-pressed=true] .scene-icon-preview{border-color:var(--scene-color);background:#67e5ed12;box-shadow:0 0 0 3px #67e5ed09}

.row .scene-icon-arrow svg{width:24px;height:24px;display:block}.scene-icon-colors{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin:4px 0 20px}.scene-icon-colors button{display:grid;place-items:center;min-height:44px;padding:8px 2px;border-radius:50%;border:1px solid transparent}.scene-icon-colors svg{width:26px;height:26px;stroke-width:1.5}.scene-icon-colors button[aria-pressed=true]{border-color:currentColor;background:#ffffff06}

.scene-custom-color{position:relative;cursor:pointer;margin-top:8px}.scene-custom-color input[type=color]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;padding:0}.scene-custom-color:focus-within{outline:2px solid var(--cyan);outline-offset:3px}

.scene-spectrum{height:160px;position:relative;touch-action:none;overflow:hidden;border-radius:16px 16px 0 0;border:1px solid var(--line);cursor:crosshair}.scene-spectrum canvas{width:100%;height:100%;display:block}.scene-spectrum-marker{position:absolute;width:22px;height:22px;transform:translate(-50%,-50%);border:2px solid white;border-radius:50%;box-shadow:0 0 0 1px #102b4677;pointer-events:none}.scene-palette{display:grid;grid-template-columns:repeat(8,1fr);overflow:hidden;border-radius:0 0 12px 12px;margin-bottom:16px}.scene-palette button{height:30px;background:var(--swatch);border:1px solid #ffffff30}.scene-palette button[aria-pressed=true]{box-shadow:inset 0 0 0 3px #ffffff99}.scene-color-brightness{display:flex;align-items:center;gap:16px;color:var(--muted);font-size:12px;margin-bottom:16px}.scene-color-brightness input{flex:1;min-width:0}.scene-icon-combined{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px 10px;padding:4px 0 20px}.scene-icon-combined .scene-icon-preview{width:60px;height:60px}.scene-icon-combined .scene-icon-choice:not([aria-pressed=true]) .scene-icon-preview{color:var(--muted)}

.scene-color-controls{margin-bottom:22px}.scene-color-page .direct-spectrum{height:144px}

.row .scene-list-symbol svg{color:inherit;stroke:currentColor}

.scene-settings-grid .scene-circle-tile,.room-settings-grid [data-room-name],.room-settings-grid [data-device-id]{touch-action:none;user-select:none;-webkit-user-select:none}.scene-settings-grid.is-sorting .scene-circle{outline:1px dashed #ffffff30;outline-offset:3px}.scene-drag-source{opacity:.22}.scene-drag-ghost{position:fixed;z-index:10000;pointer-events:none;opacity:.95;transform:scale(1.07);filter:drop-shadow(0 8px 16px #0005)}

.linked-scene-grid [aria-checked=true] .scene-circle{box-shadow:0 0 0 3px var(--scene-color),0 0 18px #67e5ed22}.linked-scene-grid [aria-checked=true] .sun-circle-name{color:var(--scene-color)}

.scene-device-grid{padding:16px 12px;gap:18px 10px}.scene-device-tile{position:relative;touch-action:pan-y;user-select:none}.scene-device-tile .sun-circle{pointer-events:none}.scene-device-tile.is-pressed .sun-circle{transform:scale(.94)}.scene-device-check{position:absolute;right:1px;top:0;width:21px;height:21px;border:1px solid var(--muted);border-radius:50%;display:grid;place-items:center;background:#183347}.scene-device-check svg{width:15px;height:15px}.scene-device-tile[aria-pressed=true] .scene-device-check{border-color:var(--cyan);color:var(--cyan)}.scene-device-tile[aria-pressed=false] .sun-circle-face{opacity:.55}.scene-device-tile .sun-circle-state{font-size:9px;padding:2px 4px}.scene-state-color{display:flex;align-items:center;justify-content:space-between;font-size:12px;margin:18px 0}.scene-state-color input[type=color]{width:64px;height:40px;padding:3px}

.scene-selected-master{display:flex;justify-content:center;margin:0 0 20px}.scene-selected-master>.sun-circle-tile{width:104px}.scene-selected-master small{font-size:10px;color:var(--muted)}

.scene-bulk-project{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 20px;font-size:13px}.scene-bulk-project small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.scene-bulk-check{display:grid;place-items:center;width:44px;height:44px;flex:0 0 44px;padding:9px;color:var(--muted)}.scene-bulk-check>span{display:grid;place-items:center;width:24px;height:24px;border:1px solid currentColor;border-radius:50%;background:transparent}.scene-bulk-check svg{width:17px;height:17px}.scene-bulk-check[aria-checked=true],.scene-bulk-check[aria-checked=mixed]{color:var(--cyan)}.scene-room-heading{display:flex;align-items:center;background:#ffffff04}.scene-room-heading>.picker-room-header{flex:1;min-width:0}.scene-room-heading>.scene-bulk-check{margin:0 8px}.scene-room-heading .room-banner{border-radius:0}

.scene-room-heading{position:relative;display:block}.scene-room-heading>.picker-room-header{width:100%}.scene-room-heading>.scene-bulk-check{position:absolute;left:7px;top:50%;transform:translateY(-50%);margin:0;color:#f4fbff}.scene-room-heading>.scene-bulk-check[aria-checked=true],.scene-room-heading>.scene-bulk-check[aria-checked=mixed]{color:var(--cyan)}.scene-room-heading .picker-room-header .room-banner.room-illustrated{padding-left:60px}.scene-room-heading .room-banner.room-illustrated>span{max-width:100%}
.scene-selected-group{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:space-between;width:100%;height:72px;padding:12px 16px;margin-bottom:16px;text-align:left;color:#f4fbff;overflow:hidden}.scene-selected-group>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}.scene-selected-group:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#102c48db,#102c4860)}.scene-group-label{font-size:15px;font-weight:600}.scene-group-label small{display:block;font-size:11px;font-weight:400;margin-top:5px;color:#d0e1ee}.scene-selected-group:disabled{opacity:.5}

.scene-project-heading{position:relative;margin-bottom:16px}.scene-project-heading>.scene-selected-group{margin-bottom:0;padding-left:60px}.scene-project-heading>.scene-bulk-check{position:absolute;left:8px;top:50%;transform:translateY(-50%);color:#f4fbff}.scene-project-heading>.scene-bulk-check[aria-checked=true],.scene-project-heading>.scene-bulk-check[aria-checked=mixed]{color:var(--cyan)}

/* Scene rooms share the saved spatial view and the existing control sheet. */
.scene-room-plan{height:min(520px,calc(100dvh - 220px));min-height:300px;flex:none;margin:12px 0;}
.scene-room-heading .picker-room-header{touch-action:pan-y;user-select:none;-webkit-user-select:none;}
.scene-room-group-count{display:block;margin-top:5px;font-size:12px;font-weight:400;color:var(--muted);}

.scene-room-choice,.scene-device-choice{position:relative}.scene-room-choice>.scene-bulk-check{position:absolute;top:-4px;right:-5px;margin:0;width:32px;height:32px;padding:5px;background:transparent}.scene-room-selection-count{display:block;margin-top:1px;color:var(--muted);font-size:10px}.scene-room-selection-master{width:104px;margin:0 auto 16px}.scene-device-choice>.scene-device-tile{width:100%;display:block}.scene-device-choice>.scene-device-check{right:-4px;top:-4px;width:28px;height:28px;padding:4px}.scene-device-check[aria-checked=true]{color:var(--cyan);border-color:var(--cyan)}

/* Reserve vertical drags only for selected lights that can currently adjust CCT. */
.scene-device-tile.scene-drag-cct,.sun-circle.scene-drag-cct{touch-action:none}

/* Identical floor-plan viewport geometry to the room control screen. */
.scene-position-picker .scene-room-plan{height:auto;min-height:0;flex:1;margin:0}
.scene-map-master .scene-room-selection-count{display:none}
.scene-map-master .sun-circle{width:72px;height:72px}
.scene-map-footer{justify-content:center}
.scene-map-footer .textbtn{width:80%;color:var(--cyan)}

/* Scene inclusion: reveal device deselection only after the first selection. */
.scene-device-choice>.scene-device-check[aria-checked="false"]{display:none}
.scene-room-choice>.scene-bulk-check>span{background:#183347}
.scene-room-choice>.scene-bulk-check[aria-checked="true"]>span,.scene-room-choice>.scene-bulk-check[aria-checked="mixed"]>span{background:var(--cyan);color:#123443;border-color:var(--cyan)}
.light-theme .scene-room-choice>.scene-bulk-check[aria-checked="false"]>span{background:#d4e8f0}

.scene-room-choice>.scene-bulk-check[aria-checked="false"]{display:none}

.scene-device-tile .sun-circle-state:empty,.scene-room-choice .sun-circle-state:empty{display:none}

.scene-map-footer .primary{display:block;width:min(100%,var(--entry-action-width));min-height:54px;margin:0 auto;border-radius:999px;font-size:14px;letter-spacing:.6px;text-transform:uppercase;background:var(--entry-action-bg);color:var(--entry-action-text);box-shadow:var(--entry-action-shadow)}

/* Keep DONE at the same fixed action width as the grid footer. */
.scene-map-footer .primary{flex:0 1 auto;max-width:var(--entry-action-width)}

/* Let the shared map backdrop continue beneath the scene action footer. */
.room-detail-shell.scene-position-picker .scene-map-footer{background:transparent;border-top:0;box-shadow:none}

.room-settings-grid>button{touch-action:none;user-select:none;-webkit-user-select:none}.room-settings-grid .sun-circle{pointer-events:none}.room-settings-grid .sun-circle-face img{filter:none}

.room-fixed-master{position:relative;user-select:none}.room-fixed-lock{position:absolute;right:0;top:0;width:24px;height:24px;display:grid;place-items:center;border-radius:50%;background:#183347;color:var(--muted)}.room-fixed-lock svg{width:15px;height:15px}.light-theme .room-fixed-lock{background:#d4e8f0;color:#47667a}

/* Room settings are layout previews, without a live power-state highlight. */
.room-settings-grid .sun-circle,.room-settings-grid .sun-circle.is-on{background:#9db9cd26;box-shadow:none}
.room-settings-grid .sun-circle-face{color:var(--muted)}

.room-category-grid{padding-top:12px}.room-category-grid .sun-circle{background:#9db9cd26;box-shadow:none;pointer-events:none}.room-category-grid .sun-circle-face img{filter:none}.room-category-grid .sun-circle-face{color:var(--muted)}

.scan-header-actions{display:flex;align-items:center;gap:4px}.scan-header-actions .iconbtn{width:36px;height:36px}.scan-header-actions svg{width:22px;height:22px}.signal-device-row{position:relative}.signal-device-row .row{padding-right:65px}.scan-signal{position:absolute;right:24px;top:50%;transform:translateY(-50%);display:flex;align-items:flex-end;gap:3px;color:var(--cyan);pointer-events:none}.scan-signal i{width:3px;background:currentColor;border-radius:2px}.signal-filter-control label{display:flex;justify-content:space-between;gap:12px;font-size:13px;margin-bottom:20px}.signal-filter-control output{white-space:nowrap;color:var(--cyan)}.signal-filter-control input{width:100%}.signal-filter-scale{display:flex;justify-content:space-between;font-size:11px;color:var(--muted);margin:12px 0 20px}.signal-empty{text-align:center}

.signal-scan-content{display:flex;flex-direction:column;overflow:hidden!important;min-height:0}.signal-scan-content>h2,.signal-scan-content>.sub,.signal-range-panel{flex-shrink:0}.signal-scan-content #signalScanResults{flex:1;min-height:0;overflow-y:auto;padding-top:12px}.signal-range-panel{padding:0 12px 8px}.signal-range-heading{display:flex;align-items:center;justify-content:center;font-size:13px}.signal-range-heading .textbtn{padding:8px 0}.signal-range-values{display:flex;justify-content:space-between;font-size:12px;color:var(--cyan);margin:10px 0 0}.signal-range-track{position:relative;height:40px;touch-action:none;margin:0 12px;--signal-low:0%;--signal-high:100%}.signal-range-rail,.signal-range-fill{position:absolute;top:18.5px;height:3px;border-radius:9px;background:#87a8bb45;left:0;right:0;pointer-events:none}.signal-range-fill{left:var(--signal-low);right:calc(100% - var(--signal-high));background:var(--cyan)}.signal-range-thumb{position:absolute;top:0;width:40px;height:40px;transform:translateX(-50%);padding:0;touch-action:none}.signal-range-thumb:after{content:"";position:absolute;inset:12px;border-radius:50%;background:var(--cyan);border:0;box-shadow:0 1px 4px #0b233c30}.signal-range-thumb[data-signal-bound=lower]{left:var(--signal-low)}.signal-range-thumb[data-signal-bound=upper]{left:var(--signal-high)}.signal-range-thumb:focus-visible{outline:none;z-index:2}.signal-range-thumb:focus-visible:after{outline:2px solid var(--cyan);outline-offset:3px}.signal-range-panel .signal-filter-scale{margin:0;font-size:11px}.signal-range-panel #deviceSignalCount{font-size:11px;color:var(--muted);margin:10px 0 0;text-align:center}

/* Stable signal-distance visualization; directions are illustrative. */
.signal-scan-content #signalScanResults{position:relative;overflow:hidden;padding:0;container-type:size;min-height:220px}.signal-scan-content .signal-range-panel{margin-top:12px;padding-bottom:8px}.signal-radar{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(100cqw,100cqh);aspect-ratio:1;isolation:isolate}.signal-radar-rings{position:absolute;inset:5%;border-radius:50%;background:radial-gradient(circle,#65dce20c,transparent 70%);pointer-events:none}.signal-radar-rings i{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border:1px solid #87c7d222;border-radius:50%;width:100%;height:100%}.signal-radar-rings i:nth-child(2){width:70%;height:70%}.signal-radar-rings i:nth-child(3){width:40%;height:40%}.signal-radar-center{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:42px;height:42px;border-radius:50%;display:grid;place-items:center;color:var(--cyan);background:#65dce219;border:1px solid #65dce23a}.signal-radar-center svg{width:24px;height:24px}.signal-radar-device{position:absolute;transform:translate(-50%,-50%);width:68px;min-height:70px;padding:3px 0;display:flex;align-items:center;flex-direction:column;gap:3px;z-index:2}.signal-device-orb{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#28465b;border:1px solid #8acbdc66;color:var(--cyan);box-shadow:0 2px 10px #0c203e25}.signal-device-orb svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.4}.signal-device-model{font-size:10px;line-height:1.2;color:var(--text)}.signal-radar-device small{font-size:9px;color:var(--muted)}.signal-radar-device:active .signal-device-orb{transform:scale(.9)}.signal-radar-message{position:absolute;bottom:0;left:0;right:0;text-align:center;font-size:11px;line-height:1.5;color:var(--muted);margin:0;padding:5px}.is-searching .signal-radar-rings{animation:signal-radar-pulse 2s ease-in-out infinite}.light-theme .signal-device-orb{background:#d4e8f0;color:#2a8996}.light-theme .signal-radar-rings i{border-color:#438b9b25}@keyframes signal-radar-pulse{50%{opacity:.35}}@media(prefers-reduced-motion:reduce){.is-searching .signal-radar-rings{animation:none}}

#scanBatchActions{flex-shrink:0}.scan-batch-links{display:flex;justify-content:space-between}.scan-batch-links .textbtn{padding:6px;font-size:11px}.scan-batch-actions .primary{margin-bottom:10px}.scan-selected-check{position:absolute;top:0;right:7px;width:18px;height:18px;display:grid;place-items:center;border-radius:50%;background:var(--cyan);color:#14384b}.scan-selected-check svg{width:13px;height:13px}.signal-radar-device.is-selected .signal-device-orb{border:2px solid var(--cyan);box-shadow:0 0 12px #65dce24a}.scan-selected-list{max-height:45dvh;overflow:auto}.scan-selected-list .row{padding:10px 0}.scan-selected-list .textbtn svg{width:18px;height:18px}.batch-config-group{padding:18px;margin-bottom:18px}.batch-config-group h3{font-size:16px;margin:0 0 16px}.batch-config-group label{display:block;font-size:12px;color:var(--muted)}.batch-config-group select,.batch-config-group input:not([type=range]){margin:8px 0}.batch-output{padding:12px 0;border-bottom:1px solid var(--line)}.batch-config-group .batch-min-label{display:flex;justify-content:space-between;margin:12px 0}.batch-output input[type=range]{width:100%}.batch-unit{padding-top:10px}.batch-unit-heading{display:flex;justify-content:space-between;align-items:center}.batch-unit-heading small{font-size:10px;color:var(--muted)}.batch-status{font-size:11px;display:flex;gap:7px;align-items:center;color:var(--cyan)}.batch-status.failed{color:#eb8d8d}.batch-special>.sub{padding:16px 16px 0}.batch-progress-list .details small{font-size:10px}
.signal-radar-device.is-identifying .signal-device-orb{animation:scan-identify-pulse 1s ease-in-out 3}
.signal-radar-device.is-identifying small{color:var(--cyan)}
@keyframes scan-identify-pulse{0%,100%{box-shadow:0 0 0 0 transparent}50%{background:var(--cyan);color:#14384b;box-shadow:0 0 0 7px #65dce230,0 0 20px #65dce270}}
@media(prefers-reduced-motion:reduce){.signal-radar-device.is-identifying .signal-device-orb{animation:none;box-shadow:0 0 0 3px var(--cyan)}}
.room-selection-grid .sun-circle-tile[aria-pressed=true] .sun-circle{background:var(--cyan)}
.batch-name-field{display:flex;align-items:center;gap:12px}
.batch-name-field input{flex:1;min-width:0}
.batch-name-field .pill{flex-shrink:0;min-height:44px;padding:10px 14px}
.batch-type-tabs{display:flex;gap:18px;overflow-x:auto;margin:6px 0 20px;border-bottom:1px solid var(--line);background:transparent}
.batch-type-tabs button{display:flex;align-items:center;gap:7px;flex-shrink:0;padding:12px 2px;font-size:13px;color:var(--muted);border-bottom:3px solid transparent}
.batch-type-tabs button[aria-selected=true]{color:var(--text);border-bottom-color:var(--cyan)}
.batch-pending-dot{width:5px;height:5px;flex-shrink:0;border-radius:50%;background:var(--cyan)}
.channel-name-row{gap:10px}
.channel-name-edit{min-width:0;text-align:left;align-self:stretch;padding:6px 0}
.channel-name-edit small{overflow-wrap:anywhere}
.channel-name-row .channel-identify{flex-shrink:0;min-height:40px;padding:8px 10px}
.channel-name-arrow{display:grid;place-items:center;flex:0 0 32px;min-height:44px}
.channel-name-arrow .arrow svg{width:24px;height:24px}
.nfc-scan-status{display:flex;align-items:center;justify-content:center;gap:10px;min-height:32px;text-align:center;font-size:13px;color:var(--muted)}
.nfc-scan-status .search-spinner{flex-shrink:0}
.nfc-simulator summary{cursor:pointer;color:var(--muted);font-size:11px;padding:4px 0}
.nfc-simulator[open] summary{margin-bottom:14px}
.nfc-scan-overlay{position:absolute;inset:0;z-index:30;display:flex;align-items:flex-end;background:#04101b88}
.nfc-scan-sheet{width:100%;max-height:90%;overflow-y:auto;padding:28px 24px 24px;border-radius:30px 30px 0 0;border:1px solid var(--line);background:#172c43;box-shadow:0 -12px 40px #0003;text-align:center;animation:nfc-sheet-enter .24s ease-out}
.light-theme .nfc-scan-sheet{background:#eff5f8}
.nfc-scan-sheet h3{font-size:20px;font-weight:600;color:var(--muted);margin:0}
.nfc-phone-symbol{width:118px;height:118px;margin:26px auto;color:var(--cyan)}
.nfc-phone-symbol svg{width:100%;height:100%}
.nfc-scan-sheet .sub{margin:0 auto 16px;max-width:300px}
.nfc-scan-sheet .nfc-simulator{text-align:left;margin:16px 0}
.nfc-scan-sheet>.secondary{margin:18px auto 0;display:block;max-width:var(--entry-action-width);min-height:54px;border-radius:999px}
@keyframes nfc-sheet-enter{from{transform:translateY(100%)}to{transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.nfc-scan-sheet{animation:none}}
#nfcDebugPanel select,#nfcDebugPanel input{margin:8px 0}
.nfc-scan-sheet [hidden]{display:none!important}

/* NFC devices retain the room tile layout; a dashed ring marks installation status. */
.sun-circle.nfc-pending-circle{background:transparent;outline:1.5px dashed #427c8d;outline-offset:-1px;box-shadow:none}
.nfc-pending-circle .sun-circle-face{color:var(--muted)}


.nfc-phone-symbol{position:relative}
.nfc-phone-symbol.nfc-reading::after{content:"";position:absolute;inset:-6px;border:3px solid transparent;border-top-color:var(--cyan);border-right-color:var(--cyan);border-radius:50%;animation:nfc-read-spin 1s linear infinite}
@keyframes nfc-read-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.nfc-phone-symbol.nfc-reading::after{animation:none}}

.room-device-settings-grid>.room-sort-row{display:flex;flex-direction:column;align-items:center;gap:8px;padding:0;border:0;background:transparent;border-radius:0;touch-action:pan-y}
.room-device-settings-grid .sun-circle,.room-settings-position .sun-circle{pointer-events:none}
.room-settings-position .room-layout-viewport{height:auto;min-height:0;max-height:none}
.room-settings-position .room-sort-row{display:flex;flex-direction:column;align-items:center;gap:8px;border:0;padding:0;background:transparent;width:100%}

.device-model-heading{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.device-install-status{display:inline-block;font-size:10px;font-weight:400;line-height:1.4;padding:3px 7px;border:1px solid var(--muted);border-radius:999px;color:var(--muted);white-space:nowrap}

.sun-circle-grid.configured-room-devices{padding:18px 10px}
.configured-room-devices .sun-circle{pointer-events:none}

.configured-room-count{display:block;color:var(--muted);font-size:11px;line-height:1.5;margin-top:3px}.configured-room-grid .sun-circle{pointer-events:none}

.configured-room-grid .sun-circle{background:#9db9cd26;box-shadow:none}
.configured-room-grid .sun-circle-face img{filter:none}
.configured-room-grid .sun-circle-tile.is-opening .sun-circle,.room-category-grid .sun-circle-tile.is-opening .sun-circle{background:var(--cyan);box-shadow:0 0 18px #65dce226}

.room-settings-grid .sun-circle-tile.is-opening .sun-circle{background:var(--cyan);box-shadow:0 0 18px #65dce226}

.reset-power-progress{display:block;appearance:none;width:100%;height:6px;margin:28px 0;border:0;border-radius:999px;overflow:hidden;background:#87a8bb45;color:var(--cyan)}.reset-power-progress::-webkit-progress-bar{background:#87a8bb45;border-radius:999px}.reset-power-progress::-webkit-progress-value{background:var(--cyan);border-radius:999px}.reset-power-progress::-moz-progress-bar{background:var(--cyan);border-radius:999px}

.scene-room-image-count{position:absolute;top:10px;left:50%;transform:translateX(-50%);padding:2px 7px;border-radius:999px;background:#102638d9;color:#f5f9ff;font-size:10px;line-height:1.4;white-space:nowrap;pointer-events:none}

.energy-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px}.energy-summary .glass{padding:18px 14px}.energy-summary small{color:var(--muted)}.energy-summary strong{display:block;font-size:24px;margin-top:12px}.energy-trend{padding:18px}.energy-chart{width:100%;height:auto;fill:var(--cyan);stroke:none}.energy-chart-axis{display:flex;justify-content:space-between;color:var(--muted);font-size:11px}

.energy-dashboard{--energy-roof:#244a64;--energy-wall:#496e87;--energy-side:#31566d;--energy-window:#e7d990}
.light-theme .energy-dashboard{--energy-roof:#527083;--energy-wall:#e9f1f3;--energy-side:#bdcfd7;--energy-window:#d6b65b}
.energy-live{position:relative;padding:18px 16px 24px;border-radius:24px;background:radial-gradient(ellipse at 50% 40%,#75d9d61c,transparent 70%);border:1px solid var(--line);margin-bottom:16px}
.energy-live-heading,.energy-trend-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px}
.energy-status{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:5px}.energy-status.online:before{content:"";width:5px;height:5px;border-radius:50%;background:#9bdb87}
.energy-home-scene{position:relative;height:170px;display:flex;align-items:center;justify-content:center}.energy-house{width:220px;height:150px;stroke:none;overflow:visible;filter:drop-shadow(0 12px 16px #051b2920)}
.energy-grid-link{position:absolute;left:5px;top:70px;display:flex;align-items:center;color:var(--muted)}.energy-grid-link>span{display:grid;place-items:center;width:32px;height:32px;border:1px solid var(--line);border-radius:50%;background:#87a8bb10}.energy-grid-link i{width:35px;height:2px;background:#87a8bb45}.energy-grid-link small{position:absolute;top:36px;left:5px;font-size:10px}.energy-grid-link.active{color:var(--cyan)}.energy-grid-link.active i{background:var(--cyan)}
.energy-live-reading{text-align:center}.energy-live-reading>small{color:var(--muted);font-size:12px}.energy-live-reading strong{display:block;font-size:42px;font-weight:500;line-height:1.2;margin:8px 0 0;font-variant-numeric:tabular-nums}.energy-live-reading strong span{font-size:20px;color:var(--muted)}.energy-last-seen{text-align:center;font-size:10px;color:var(--muted);margin:10px 0 0}
.energy-today{display:flex;align-items:center;justify-content:space-between;padding:18px;margin-bottom:16px;font-size:13px}.energy-today strong{font-size:22px;font-weight:500}.energy-today small{font-size:12px;color:var(--muted)}
.energy-trend-heading h3{font-size:16px;margin:0}.energy-trend-heading>span{color:var(--muted);font-size:11px}.energy-period-tabs{display:flex;gap:3px;padding:4px;border-radius:999px;background:#87a8bb12;margin:18px 0 12px}.energy-period-tabs button{flex:1;border-radius:999px;padding:8px 3px;font-size:12px;color:var(--muted)}.energy-period-tabs button[aria-selected=true]{background:var(--cyan);color:#102c3c}.light-theme .energy-period-tabs button[aria-selected=true]{color:white}
.energy-period-nav{display:flex;align-items:center;justify-content:space-between;font-size:12px}.energy-next svg{transform:rotate(180deg)}.energy-period-total{font-size:28px;font-weight:500;margin:18px 0 8px;font-variant-numeric:tabular-nums}.energy-period-total small{font-size:12px;color:var(--muted)}.energy-dashboard .energy-chart{fill:#a9d975}.light-theme .energy-dashboard .energy-chart{fill:#54882d}.energy-dashboard .energy-trend .fine{text-align:left;margin-bottom:0}

.energy-space-tabs{display:flex;gap:22px;overflow-x:auto;max-width:100%;border-bottom:1px solid var(--line);margin:0 0 14px;scrollbar-width:none;background:transparent}
.energy-space-tabs::-webkit-scrollbar{display:none}.energy-space-tabs button{flex:0 0 auto;white-space:nowrap;padding:12px 2px;color:var(--muted);border-bottom:3px solid transparent;font-size:15px}.energy-space-tabs button[aria-selected=true]{color:var(--text);border-bottom-color:var(--cyan)}.energy-space-tabs button:focus-visible{outline:2px solid var(--cyan);outline-offset:-2px}.energy-device-caption{font-size:12px;color:var(--muted);margin:0 0 12px}

.energy-date-picker{width:auto!important;min-width:0;max-width:190px;margin:0!important;padding:9px 10px!important;text-align:center;font-size:13px!important;background:transparent!important;border:none!important;border-radius:12px!important;color:var(--text);color-scheme:dark}.light-theme .energy-date-picker{color-scheme:light}
.energy-supply-scene{width:100%;max-width:340px;height:160px;overflow:visible}.energy-pylon{color:var(--muted)}.energy-supply-track{stroke:var(--cyan);stroke-width:2;opacity:.2}.energy-supply-flow{fill:none;stroke:var(--cyan);stroke-width:3;stroke-linecap:round;stroke-dasharray:4 18;opacity:0}.energy-supply-arrow{fill:none;stroke:var(--cyan);stroke-width:2;opacity:.25}.is-flowing .energy-supply-flow{opacity:1;animation:energy-supply-travel 1.4s linear infinite}.is-flowing .energy-supply-arrow{opacity:1}.energy-grid-label{fill:var(--muted);font-size:10px;font-weight:400;stroke:none}.energy-building{filter:drop-shadow(0 8px 12px #051b2920)}
@keyframes energy-supply-travel{to{stroke-dashoffset:-44}}@media(prefers-reduced-motion:reduce){.is-flowing .energy-supply-flow{animation:none}}

.energy-chart-empty{aspect-ratio:320/140;display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:13px;text-align:center}

.energy-calendar-nav{display:flex;align-items:center;justify-content:space-between;margin:8px 0 16px;gap:6px}.energy-calendar-nav strong{font-size:15px;font-weight:500}.energy-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.energy-calendar-grid small{text-align:center;color:var(--muted);font-size:10px;margin-bottom:6px}.energy-calendar-grid button{min-height:38px;border-radius:12px;font-size:13px;color:var(--text);background:transparent}.energy-calendar-grid button[aria-pressed=true]{background:var(--cyan);color:#102c3c}.energy-calendar-grid button:disabled{opacity:.25}.energy-calendar-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.energy-calendar-options button{min-height:48px}.energy-bar-total{font-size:36px;font-variant-numeric:tabular-nums;margin:24px 0}.energy-bar-total small{font-size:16px;color:var(--muted)}.energy-chart g[role=button]{cursor:pointer}.energy-chart g[role=button]:focus-visible{outline:2px solid var(--cyan)}

.energy-power-heading{display:flex;align-items:center;justify-content:space-between;margin-top:24px;color:var(--muted);font-size:12px}.energy-power-chart{display:block;width:100%;height:auto;cursor:crosshair;overflow:visible;margin-top:8px;fill:none;stroke:none}.energy-power-chart text{fill:var(--muted);font-size:9px;font-weight:400;stroke:none}.energy-power-grid{fill:none;stroke:var(--line);stroke-width:1}.energy-power-line{fill:none;stroke:var(--cyan);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.energy-power-dot{fill:var(--cyan);stroke:none}.energy-power-axis{display:flex;justify-content:space-between;padding-left:9%;color:var(--muted);font-size:10px}.energy-power-empty{aspect-ratio:320/136;display:grid;place-items:center;color:var(--muted);font-size:13px}.energy-power-chart:focus-visible{outline:2px solid var(--cyan);border-radius:8px}

.energy-comparison{font-size:13px;color:var(--muted);margin:16px 0 0}.energy-comparison small{display:block;font-size:10px;margin-top:5px}.energy-insights{margin-top:16px}.energy-budget-progress{padding:0 18px 18px}.energy-budget-progress progress{width:100%;height:5px;accent-color:var(--cyan)}.energy-budget-progress small{display:block;color:var(--muted);font-size:11px;margin-top:8px}.energy-rule-toggle{display:flex;justify-content:space-between;align-items:center;margin:20px 0}.energy-rule-toggle input{width:20px!important;height:20px!important;accent-color:var(--cyan);margin:0!important}.energy-rule-field{display:block;color:var(--muted);font-size:13px;margin:14px 0}.energy-rule-field input,.energy-rule-field select{display:block;width:100%;margin-top:8px}.energy-alerts{margin-top:16px}.energy-alert{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:16px;border-bottom:1px solid var(--line)}.energy-alert:last-child{border-bottom:0}.energy-alert strong{font-size:14px;font-weight:500}.energy-alert p{font-size:12px;margin:7px 0;color:var(--muted)}.energy-alert small{font-size:10px;color:var(--muted)}

.energy-rule-stepper{display:flex;gap:8px;align-items:center;margin-top:8px}.energy-rule-stepper button{flex:0 0 44px;height:44px;border:1px solid var(--line);border-radius:50%;font-size:26px;font-weight:400;color:var(--text);background:transparent}.energy-rule-stepper input{flex:1;min-width:0;width:0;margin:0!important;text-align:center;appearance:textfield;-moz-appearance:textfield}.energy-rule-stepper input::-webkit-inner-spin-button,.energy-rule-stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.energy-duration-label,.energy-duration-bounds{display:flex;justify-content:space-between;align-items:center}.energy-duration-label output{color:var(--text)}.energy-duration-bounds{font-size:11px}.energy-rule-field .energy-duration-slider{padding:0;min-height:32px;accent-color:var(--cyan);background:transparent;border:0;box-shadow:none}

.energy-rule-row{display:flex;align-items:center;gap:12px;padding:16px 18px;border-bottom:1px solid var(--line)}.energy-rule-row:last-child{border-bottom:0}.energy-rule-edit{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:0;background:transparent;color:var(--text);gap:6px}.energy-rule-edit>span{font-size:15px}.energy-rule-edit>small{font-size:12px;color:var(--muted)}.energy-rule-edit:disabled{opacity:.5;cursor:default}.energy-rule-row .energy-rule-toggle{margin:0;min-width:44px;min-height:44px;justify-content:center}.energy-rule-row .energy-rule-toggle input:disabled{opacity:.45;cursor:default}

.configured-room-devices .sun-circle-tile.is-opening .sun-circle{background:var(--cyan);box-shadow:0 0 18px #65dce226}

.room-selection-grid .sun-circle-tile.is-opening .sun-circle{background:var(--cyan);box-shadow:0 0 18px #65dce226}.row.is-opening{background:#65dce21a;color:var(--cyan)}

.energy-area-grid .sun-circle-tile:disabled{opacity:.4;filter:grayscale(1);cursor:default}

.nfc-install-location{margin-bottom:24px}.nfc-install-location p{color:var(--muted);margin:0 0 8px}.nfc-install-location h3{font-size:28px;margin:0 0 12px}.nfc-location-highlight .sun-circle{background:var(--cyan);box-shadow:0 0 0 3px var(--cyan),0 0 24px #65dce255}.nfc-location-highlight .sun-circle-name{color:var(--cyan)}.nfc-location-muted{opacity:.4}

.topbar.category-topbar .nfc-installation-action{justify-self:end;width:36px;height:36px;padding:0}
.nfc-location-heading{font-size:18px;margin:24px 0 16px}.nfc-output-location{margin-bottom:24px}.nfc-location-unset{margin:12px 0}.nfc-output-location .nfc-installation-map{margin-top:12px}

.nfc-installation-summary{text-align:left;margin:24px 0;overflow-wrap:anywhere}
.nfc-installation-summary dl{margin:0}.nfc-installation-summary dl>div{padding:8px 0}
.nfc-installation-summary dt,.nfc-output-caption{font-size:13px;color:var(--muted);margin:0 0 6px}
.nfc-installation-summary dd{margin:0;font-size:18px;line-height:1.45}
.nfc-installation-summary .nfc-installation-name{font-size:22px;font-weight:600}
.nfc-installation-output{margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}
.nfc-installation-sheet>.textbtn{margin:16px auto 0}

.nfc-installation-summary dd:empty{min-height:1.45em}

.nfc-installation-output{position:relative}.nfc-installation-output.has-location{padding-right:48px}
.nfc-installation-output .nfc-location-button{position:absolute;right:0;top:16px;width:36px;height:36px;padding:0}
.nfc-location-header{display:flex;align-items:center;justify-content:space-between;gap:16px;text-align:left;margin-bottom:12px}
.nfc-location-header h3{overflow-wrap:anywhere}.nfc-location-header .iconbtn{flex-shrink:0}
.nfc-location-sheet .nfc-installation-map{text-align:left}

.hcl-room-status{display:block;color:var(--muted);font-size:12px;font-weight:400;margin-top:5px;line-height:1.5}
.hcl-curve{padding:16px 12px 4px;border:1px solid var(--line);border-radius:20px;background:rgba(255,255,255,var(--glass))}
.hcl-curve svg{width:100%;height:auto;aspect-ratio:336 / 148;display:block;color:var(--muted)}.hcl-curve .fine{display:flex;justify-content:center;flex-wrap:wrap;gap:6px;text-align:center;margin:12px 0;font-size:12px}
.hcl-curve polyline{stroke:var(--cyan);stroke-width:2.5;vector-effect:non-scaling-stroke}
.hcl-curve polyline+polyline{stroke:#e8ab69;stroke-width:2;stroke-dasharray:5 4}
.hcl-curve .hcl-temp-key::before,.hcl-curve .hcl-level-key::before{content:"";display:inline-block;width:18px;margin-right:6px;vertical-align:middle;border-top:2px solid currentColor}
.hcl-curve .hcl-level-key::before{border-top-style:dashed}
.topbar .hcl-template-options{width:44px;height:44px;min-width:44px;padding:8px;display:grid;place-items:center}
.hcl-template-options svg{width:28px;height:28px;fill:currentColor;stroke:none}
.hcl-template-card .hcl-template-toggle{cursor:pointer;box-sizing:border-box}
.hcl-template-chevron{display:flex;align-items:center;transition:transform .24s cubic-bezier(.2,.7,.2,1)}
.hcl-template-card[data-expanded=true] .hcl-template-chevron{transform:rotate(90deg)}
.hcl-template-card{box-sizing:border-box;overflow-anchor:none}
.content:has(.hcl-template-card){overflow-anchor:none;scrollbar-gutter:stable}
.hcl-template-expansion{display:grid;grid-template-rows:0fr;opacity:0;transition:grid-template-rows .24s cubic-bezier(.2,.7,.2,1),opacity .2s ease}
.hcl-template-card[data-expanded=true] .hcl-template-expansion{grid-template-rows:1fr;opacity:1}
.hcl-template-expansion-inner{min-height:0;overflow:hidden}
@media(prefers-reduced-motion:reduce){.hcl-template-chevron,.hcl-template-expansion{transition:none}}
.hcl-template-card .hcl-list-chart{display:block;width:calc(100% - 24px);cursor:pointer;color:var(--muted)}
.hcl-list-chart svg{aspect-ratio:336 / 136}
.p3-import-image{display:block;width:100%;height:auto;border-radius:14px;margin:18px 0}
.p3-crop-image{touch-action:none;user-select:none}.p3-crop-image img{-webkit-user-drag:none}.p3-crop-image>span>i{position:absolute;width:24px;height:24px;border:3px solid var(--cyan);background:#fff;border-radius:50%;pointer-events:auto;box-sizing:border-box;transform:translate(-50%,-50%)}.p3-crop-nw{left:0;top:0}.p3-crop-ne{left:100%;top:0}.p3-crop-sw{left:0;top:100%}.p3-crop-se{left:100%;top:100%}
.p3-structure-tools{display:flex;gap:5px;overflow:auto;margin:14px 0 6px}.p3-structure-tools button{flex:1;padding:10px 8px;border:1px solid var(--line);border-radius:999px;font-size:12px}.p3-structure-tools button[aria-pressed=true],.p3-wall-settings button[aria-pressed=true]{color:var(--cyan);background:#57cbd21a;border-color:var(--cyan)}.p3-history{display:flex;align-items:center;gap:16px}.p3-history button{font-size:11px}.p3-history span{margin-left:auto;font-size:10px;color:var(--muted)}.p3-history button:disabled{opacity:.3}.p3-wall-settings{padding:12px;font-size:13px}.p3-wall-settings>button{float:right}.p3-wall-settings>div{display:flex;gap:4px;flex-wrap:wrap;margin-top:12px}.p3-wall-settings>div button{font-size:10px;padding:7px;border-radius:8px}.p3-edge{stroke:#607f90;stroke-width:1.5;fill:none;cursor:pointer;pointer-events:stroke;vector-effect:non-scaling-stroke}.p3-edge-door{stroke:#d19549}.p3-edge-window{stroke:#47adcb}.p3-edge-hidden{stroke:#91a4ae;stroke-dasharray:4 4;stroke-width:2}.p3-edge.selected{stroke:var(--cyan);stroke-width:2.5}.p3-wall-handle{fill:white;stroke:#218f9f;stroke-width:2;vector-effect:non-scaling-stroke;cursor:grab}.p3-plan:has(.p3-structure-overlay){touch-action:none}.p3-window-glass{fill:#67c8e366;stroke:#60adbf;stroke-width:1}.p3-crop-image{position:relative;overflow:hidden;margin:18px 0;line-height:0}.p3-crop-image img{display:block;width:100%;height:auto}.p3-crop-image>span{position:absolute;border:2px solid var(--cyan);box-shadow:0 0 0 2000px #0006;pointer-events:none;box-sizing:border-box}.p3-crop-sliders{display:grid;grid-template-columns:1fr 1fr;gap:14px}.p3-crop-sliders label{font-size:12px;color:var(--muted)}.p3-crop-sliders input{display:block;width:100%;margin-top:10px}
.p3-room-binding{padding:16px;margin:14px 0}.p3-room-binding label{display:block;font-size:12px;color:var(--muted);margin-bottom:10px}.p3-layout-preview{display:block;width:100%;height:auto;stroke:none}
.p3-upload{position:relative;display:flex;align-items:center;gap:14px;padding:18px;cursor:pointer}.p3-upload small{display:block;color:var(--muted);font-size:11px;margin-top:6px}.p3-upload input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.p3-edit-tabs{margin:18px 0}.p3-edit-tabs button{flex:1}.p3-edit-tabs .active{background:var(--cyan);color:#17384a}.p3-plan{display:block;width:100%;height:auto;margin:18px 0;border-radius:12px;background:#e8edf0;touch-action:manipulation;stroke:none}.p3-outline{fill:#4eb6c526;stroke:#28828f;stroke-width:2;vector-effect:non-scaling-stroke}.p3-outline.selected{fill:#4eb6c54a;stroke:#167c89}.p3-drawing{fill:#4eb6c52a;stroke:#167c89;stroke-width:2;stroke-dasharray:5 3;vector-effect:non-scaling-stroke}.p3-plan-label{fill:#164c58;font-size:18px;stroke:none;text-anchor:middle;paint-order:stroke;pointer-events:none}.p3-plan-device{fill:#207f8b;stroke:white;stroke-width:2}.p3-edit-actions{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap}.p3-edit-actions button{font-size:11px}.p3-edit-actions button:disabled{opacity:.3}.p3-home-toolbar{display:flex;align-items:center;gap:10px;justify-content:space-between;margin-bottom:10px}.p3-floor-tabs{display:flex;gap:8px;overflow:auto;align-items:center;min-width:0}.p3-floor-tabs button{white-space:nowrap;border-bottom:2px solid transparent;padding:10px 8px;color:var(--muted)}.p3-floor-tabs button[aria-pressed=true]{color:var(--cyan);border-color:var(--cyan)}.p3-floor-tabs>span{font-size:15px;color:var(--muted)}.p3-stage{position:relative;border:1px solid var(--line);border-radius:22px;overflow:hidden;background:radial-gradient(ellipse at 50% 50%,#60a5bd14,transparent 70%)}.p3-scene{display:block;width:100%;height:52vh;min-height:280px;max-height:600px;stroke:none;touch-action:none;user-select:none}.p3-wall{fill:#b7c9d8;stroke:#8097a8;stroke-width:1;stroke-linejoin:round}.p3-floor-face{fill:#a5c4d443;stroke:#adc6d1;stroke-width:1;cursor:pointer;transition:fill .16s}.p3-floor-face:hover,.p3-floor-face:focus{fill:#69cad46b;outline:none}.p3-room-label{fill:var(--text);font-size:22px;stroke:none;text-anchor:middle;pointer-events:none}.p3-node{cursor:pointer;outline:none}.p3-node-glow{fill:transparent;stroke:none;pointer-events:none}.p3-node-body{fill:#28465b;stroke:#91aebc;stroke-width:2}.p3-node path{fill:none;stroke:#bdd3de;stroke-width:1.8}.p3-node text{fill:var(--text);stroke:none;font-size:18px;text-anchor:middle;pointer-events:none}.p3-node.is-on .p3-node-body{fill:var(--p3-light);stroke:var(--p3-light)}.p3-node.is-on path{stroke:#17384a}.p3-node.is-on .p3-node-glow{fill:var(--p3-light);opacity:.13}.p3-node.is-pending .p3-node-body{stroke-dasharray:4 3;fill:transparent}.p3-node:focus .p3-node-body{stroke:var(--cyan);stroke-width:4}.p3-reset{position:absolute;right:12px;bottom:10px;font-size:10px}.p3-help{text-align:center;margin:12px 0}.p3-list-switch{display:block;margin:0 0 12px auto}.light-theme .p3-wall{fill:#f2f5f7;stroke:#9eaeb8}.light-theme .p3-floor-face{fill:#c2d8e66b;stroke:#8ea9ba}.light-theme .p3-node:not(.is-on) .p3-node-body{fill:#e0edf3;stroke:#668491}.light-theme .p3-node:not(.is-on) path{stroke:#526c7c}
.scene-circle-tile.scene-active .scene-circle{background:color-mix(in srgb,var(--scene-color) 42%,transparent);box-shadow:0 0 16px color-mix(in srgb,var(--scene-color) 48%,transparent)}
.scene-circle-tile.scene-active .sun-circle-name{color:var(--scene-color)}
.hcl-list-chart .hcl-list-grid{fill:none;stroke:var(--line);stroke-width:1;vector-effect:non-scaling-stroke;pointer-events:none}
.hcl-template-card .hcl-usage-link{display:block;width:fit-content;min-height:32px;margin:0 20px 10px;padding:6px 0;font-size:12px;font-weight:400;color:var(--cyan);text-align:left}
.hcl-template-toggle:focus-visible,.hcl-list-chart:focus-visible{outline:2px solid var(--cyan);outline-offset:-3px;border-radius:16px}
.hcl-times label{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;gap:16px}.hcl-times label+label{border-top:1px solid var(--line)}
.hcl-times input{width:120px;margin:0;padding:8px;min-width:0;background:transparent;color:var(--text);border:1px solid var(--line);border-radius:10px}
.hcl-scene-device{padding:20px}.hcl-scene-device+.hcl-scene-device{border-top:1px solid var(--line)}.hcl-scene-device>span{display:block;overflow-wrap:anywhere}.hcl-scene-device small{display:block;font-size:12px;color:var(--muted);margin-top:5px}
.hcl-mode-options{display:flex;gap:10px;margin-top:14px}.hcl-mode-options button{flex:1;min-height:42px;border:1px solid var(--line);border-radius:999px;background:transparent;color:var(--text)}.hcl-mode-options button[aria-pressed=true]{border-color:var(--cyan);color:var(--cyan);background:#65dce214}.hcl-mode-options button:disabled{opacity:.35}
.hcl-room-entry{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,var(--glass));color:var(--text);padding:10px 14px;width:100%;margin:0 0 12px;font-size:12px}.hcl-room-entry svg{width:22px;height:22px;fill:none;stroke:var(--cyan);stroke-width:1.5}.hcl-room-entry .arrow{margin-left:auto}
.hcl-preview-light{width:100px;height:100px;border-radius:50%;margin:24px auto;box-shadow:0 0 30px #e8c38b55;transition:background .2s,opacity .2s}.hcl-preview-value{text-align:center;color:var(--muted)}
.hcl-template-card .hcl-curve{border:0;border-top:1px solid var(--line);border-radius:0;background:transparent;margin:0 12px 8px;padding:12px 0 0}.hcl-template-card .row{width:100%;text-align:left}
.hcl-temp-key{color:var(--cyan)}.hcl-level-key{color:#e8ab69}.hcl-curve-point{cursor:pointer;stroke:var(--text);stroke-width:1.5}.hcl-curve-point:focus{outline:none;stroke-width:4}
.hcl-point-controls{padding:20px}.hcl-point-controls>label{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px;font-size:14px}.hcl-point-controls>input{margin-bottom:24px}.hcl-point-controls>input:last-child{margin-bottom:0}.hcl-point-controls output{color:var(--cyan);white-space:nowrap}
.hcl-graph-editor{margin:20px 0 12px}.hcl-graph-tabs{display:flex;gap:18px;border-bottom:1px solid var(--line)}.hcl-graph-tabs button{background:none;padding:10px 0;color:var(--muted);border-bottom:2px solid transparent;font-size:13px}.hcl-graph-tabs button[aria-selected=true]{color:var(--text);border-bottom-color:var(--cyan)}
.hcl-graph-toolbar{display:flex;align-items:center;justify-content:space-between;min-height:68px;gap:8px}.hcl-graph-readout{display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--muted)}.hcl-graph-readout strong{font-size:18px;font-weight:500;color:var(--text)}.hcl-graph-actions{display:flex;gap:8px}.hcl-graph-actions .iconbtn{width:36px;height:36px}.hcl-graph-actions button:disabled{opacity:.3}
#hclGraph{display:block;width:100%;height:auto;touch-action:none;user-select:none;overflow:visible}#hclGraph .hcl-grid-line{stroke:var(--line);stroke-width:.6;fill:none}#hclGraph .hcl-axis{fill:var(--muted);font-size:8px;pointer-events:none}#hclGraph .hcl-edit-line{fill:none;stroke:var(--cyan);stroke-width:2;stroke-linejoin:round;pointer-events:none}#hclGraph .hcl-point-hit{fill:transparent;stroke:none}#hclGraph .hcl-point-dot{fill:var(--text);stroke:var(--cyan);stroke-width:1.5;pointer-events:none}#hclGraph .hcl-edit-point{cursor:grab;outline:none}#hclGraph .hcl-edit-point.selected .hcl-point-dot{fill:var(--cyan)}#hclGraph .hcl-edit-point:focus .hcl-point-dot{stroke:var(--text);stroke-width:3}.hcl-graph-editor>.fine{font-size:11px;margin:12px 0;text-align:center}
.hcl-graph-tabs button,.hcl-graph-readout,.hcl-graph-readout .hcl-selected-time,.hcl-times label,.hcl-times input,.hcl-point-controls label,.hcl-point-controls output,.hcl-curve .fine,.hcl-axis{font-weight:400}.hcl-graph-readout .hcl-selected-time{font-size:18px;color:var(--text)}

/* Chart labels must not inherit the global icon stroke. */
#hclGraph text,.hcl-curve svg text{stroke:none;stroke-width:0;font-weight:400}
.hcl-time-picker{padding:12px 0}.hcl-time-picker .time-wheel-value,.hcl-time-picker .time-wheel-value.selected,.hcl-time-picker .time-wheel-colon,.hcl-time-picker .time-wheel-labels{font-weight:400}.hcl-locked-time{height:120px;align-items:center}.hcl-fixed-time-value{position:relative;z-index:1;display:block;text-align:center;font-size:22px;line-height:40px;font-weight:400;color:var(--muted)}
#hclGraph .hcl-line-temp{stroke:var(--cyan)}#hclGraph .hcl-line-level{stroke:#e8ab69;stroke-dasharray:5 4}#hclGraph .inactive-curve{opacity:.35;stroke-width:1.5}#hclGraph .active-curve{opacity:1;stroke-width:2}#hclGraph .hcl-temp-axis{fill:var(--cyan)}#hclGraph .hcl-level-axis{fill:#e8ab69}#hclGraph .hcl-point-level .hcl-point-dot{stroke:#e8ab69}#hclGraph .hcl-point-level.selected .hcl-point-dot{fill:#e8ab69}
.hcl-graph-tabs button:before{content:'';display:inline-block;width:14px;border-top:2px solid var(--cyan);margin-right:6px;vertical-align:middle}.hcl-graph-tabs .hcl-tab-level:before{border-top:2px dashed #e8ab69}.hcl-graph-tabs .hcl-tab-level[aria-selected=true]{border-bottom-color:#e8ab69}

.p3-layout-preview{touch-action:none;user-select:none;cursor:grab;min-height:220px}.p3-layout-preview:active{cursor:grabbing}.p3-camera-tools{display:flex;justify-content:center;gap:12px;margin:8px 0}.p3-camera-tools button{padding:8px 18px;border-radius:999px;border:1px solid var(--line);font-size:11px}.p3-camera-tools button[aria-pressed=true]{color:var(--cyan);border-color:var(--cyan);background:#57cbd21a}.p3-rotation-control{display:flex;align-items:center;gap:16px;font-size:12px;color:var(--muted);margin:12px 0}.p3-rotation-control input{flex:1;min-width:0}.p3-wall,.p3-window-glass{pointer-events:none}

.p3-structure-tools button,.p3-wall-settings>div button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:48px;border-radius:12px}.p3-structure-tools svg,.p3-wall-settings>div svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.p3-structure-tools button span,.p3-wall-settings>div button span{font-size:10px}.p3-structure-tools{padding-bottom:4px}.p3-opening-segment{stroke-width:3;vector-effect:non-scaling-stroke;pointer-events:stroke;cursor:pointer}.p3-move-handle{fill:var(--cyan);stroke:#fff;cursor:move}.p3-edge-door,.p3-edge-window{stroke-dasharray:3 3}.p3-opening-segment{stroke-dasharray:none}

.p3-selection-slot:empty{display:none}.p3-selection-slot .p3-wall-settings{margin:10px 0}.p3-structure-tools+.p3-history~.fine{margin:8px 0}

.p3-edge-hit{fill:none;stroke:transparent;stroke-width:16;pointer-events:stroke;vector-effect:non-scaling-stroke}.p3-plan:has(.p3-structure-overlay) .p3-outline{stroke-width:1}.p3-edge-hidden{stroke-width:1.25}

.p3-network-plan .p3-outline{stroke:none;fill:#4eb6c510}.p3-network-plan .p3-outline.selected{stroke:none;fill:#4eb6c52a}

.p3-layout-preview .p3-floor-face,.p3-scene .p3-floor-face{stroke:none}

.schedule-scene-grid>button{position:relative}.schedule-scene-check{position:absolute;right:0;top:0;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--cyan);color:#173c50}.schedule-scene-check svg{width:16px;height:16px}.schedule-scene-grid [aria-pressed=false] .sun-circle{opacity:.65}

.p3-wall-handle.is-snapped{stroke:var(--cyan);stroke-width:3;filter:drop-shadow(0 0 3px #35c9d3)}

/* Borderless layout editor uses the full phone width while controls keep their gutters. */
.p3-edit-canvas{width:calc(100% + 46px);max-width:none;margin:12px -23px;border:0;border-radius:0;background:transparent;overflow:visible}
.p3-history{gap:8px}.p3-history .p3-history-icon{display:grid;place-items:center;width:40px;height:40px;padding:8px}
.p3-history-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.p3-history .p3-scale-button{margin-left:auto;padding:10px 0 10px 12px;color:var(--cyan);font-size:11px}

/* Clip zoomed plan artwork to its full-width viewport, not over the editing controls. */
.p3-edit-canvas{overflow:hidden;touch-action:none}

/* Full-canvas layout editing and 3D preview. Floating controls never resize the drawing. */
.p3-canvas-header{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:12px}
.p3-canvas-header h2{font-size:22px;font-weight:400;margin:0}.p3-canvas-header>span{width:40px}
#app>.p3-canvas-workspace{position:relative;flex:1;min-height:0;padding:0;overflow:hidden;isolation:isolate}
.p3-canvas-workspace>.p3-edit-canvas,.p3-canvas-workspace>.p3-layout-preview{position:absolute;inset:0;width:100%;height:100%;min-height:0;max-height:none;margin:0;border:0;border-radius:0;background:transparent}
.p3-floating-controls{position:absolute;inset:0;pointer-events:none;z-index:2}
.p3-floating-controls button,.p3-floating-controls input,.p3-floating-upload{pointer-events:auto}
.p3-floating-controls>.p3-structure-tools{position:absolute;top:10px;left:12px;right:12px;margin:0;padding:6px;border-radius:18px;background:var(--canvas-surface,#153348e6);backdrop-filter:blur(14px);box-shadow:0 4px 18px #0002;pointer-events:auto}
.p3-floating-controls>.p3-history{position:absolute;top:92px;left:12px;right:12px;padding:0;justify-content:space-between;background:transparent;pointer-events:none}
.p3-history-group{display:flex;align-items:center;gap:8px;padding:0 8px;border-radius:14px;background:var(--canvas-surface,#153348e6);backdrop-filter:blur(14px);pointer-events:auto}
.p3-floating-controls>.p3-history>.p3-scale-button{border-radius:14px;background:var(--canvas-surface,#153348e6);backdrop-filter:blur(14px);pointer-events:auto}
.p3-floating-controls>.fine{position:absolute;top:136px;left:18px;right:18px;margin:0;font-size:11px;text-align:center;pointer-events:none}
.p3-floating-controls>.p3-selection-slot{position:absolute;bottom:78px;left:12px;right:12px;max-height:35%;overflow:auto;pointer-events:auto;border-radius:16px;background:var(--canvas-surface,#153348e6);backdrop-filter:blur(14px)}
.p3-floating-controls .p3-wall-settings{margin:0;border:0;background:transparent}
.p3-floating-actions{position:absolute;bottom:18px;left:16px;right:16px;display:flex;gap:12px;align-items:center}
.p3-floating-actions>button{flex:1;width:auto;min-width:0;margin:0;min-height:48px;border-radius:999px;box-shadow:0 4px 18px #0002}
.p3-floating-actions>.secondary{background:var(--canvas-surface,#153348e6);backdrop-filter:blur(14px);border:1px solid var(--line);color:var(--text)}
.p3-floating-upload{position:absolute;top:172px;left:16px;right:16px;background:var(--canvas-surface,#153348e6);border-radius:18px}
.p3-canvas-workspace>.p3-rotation-control{position:absolute;bottom:80px;left:16px;right:16px;margin:0;padding:12px 16px;border-radius:18px;background:var(--canvas-surface,#153348e6);backdrop-filter:blur(14px);z-index:2}
.light-theme .p3-canvas-workspace{--canvas-surface:#edf7faeb}
#p3Length{appearance:textfield;-moz-appearance:textfield}
#p3Length::-webkit-inner-spin-button,#p3Length::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}

.p3-history .p3-scale-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:112px;min-height:40px;padding:4px 6px;border-radius:8px}
.p3-history .p3-scale-button>span{margin:0;min-height:13px;line-height:13px;font-size:11px;color:inherit}
.p3-history .p3-scale-button[aria-pressed=true]{background:#57cbd21a}
.p3-scale-button i{display:block;height:6px;border:solid currentColor;border-width:0 1px 1px;max-width:100px}

.p3-floating-controls>.p3-selection-slot:has(.p3-delete-only){left:auto;right:16px;max-height:none}
.p3-wall-settings.p3-delete-only{padding:0}
.p3-delete-only>.p3-delete-object{float:none;display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 16px;font-size:12px}
.p3-delete-only>.p3-delete-object svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

.p3-floating-controls>.p3-selection-slot:has(.p3-delete-only){top:0;bottom:auto;left:0;right:auto;width:max-content;max-width:calc(100% - 16px);overflow:visible;box-shadow:0 3px 14px #0002}
.p3-wall-settings.p3-delete-only{display:flex;align-items:center;gap:4px;padding:2px 4px 2px 12px}
.p3-delete-only>.p3-object-name{font-size:12px;white-space:nowrap}
.p3-delete-only>.p3-delete-object{min-width:42px;min-height:42px;padding:9px}
.p3-opening-segment.selected{stroke:var(--cyan);stroke-width:5}

.p3-snap-guide{pointer-events:none;fill:none;stroke:var(--cyan)}
.p3-snap-guide line{stroke-width:1.5;stroke-dasharray:5 4;vector-effect:non-scaling-stroke}
.p3-snap-guide circle{stroke-width:2;vector-effect:non-scaling-stroke}
.p3-binding-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 18px;margin:24px 0}
.p3-binding-room{display:flex;flex-direction:column;align-items:center;gap:12px;background:none;border:0;color:var(--text);font:inherit;padding:4px;cursor:pointer}
.p3-binding-photo{width:104px;height:104px;border-radius:50%;background-size:cover;background-position:center;border:1px solid var(--line);transition:box-shadow .16s}
.p3-binding-room[aria-pressed=true] .p3-binding-photo{box-shadow:0 0 0 2px #49c5d3}
.p3-binding-room:active .p3-binding-photo{box-shadow:0 0 20px #49c5d388}
.p3-binding-room:disabled{opacity:.32;cursor:default}
.p3-placement-help{position:absolute;top:12px;left:16px;right:16px;margin:0;padding:10px 14px;border-radius:14px;background:var(--canvas-surface,#153348e6);font-size:12px;color:var(--text);text-align:center;backdrop-filter:blur(14px)}
[data-p3-place-device]{cursor:grab;touch-action:none}
[data-p3-place-device]:active{cursor:grabbing}
.p3-placement-hit{fill:transparent}
.p3-placement-body{fill:#f2fcff;stroke:#218d9a;stroke-width:1.5}
.p3-placement-body.selected{fill:#b4eef3;stroke-width:2}
.p3-placement-icon{fill:none;stroke:#167989;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.p3-placement-label{font-size:11px;text-anchor:middle;fill:#163345;stroke:#fff;stroke-width:3;paint-order:stroke;pointer-events:none}
.phone:has(.p3-canvas-workspace){overflow:clip}
#app:has(>.p3-canvas-workspace){min-width:0;width:100%;overflow:clip}
.project-home-content:has(.p3-stage){position:relative;padding:0;overflow:hidden;isolation:isolate}
.project-home-content>.p3-stage{position:absolute;inset:0;border:0;border-radius:0;background:none;overflow:hidden}
.p3-stage>.p3-scene{width:100%;height:100%;min-height:0;max-height:none}
.project-home-content>.p3-home-toolbar{position:absolute;top:10px;left:16px;right:16px;z-index:2;pointer-events:none}
.p3-home-toolbar button{pointer-events:auto}
.project-home-content:has(.p3-stage)>.p3-help{position:absolute;left:16px;right:16px;bottom:46px;pointer-events:none}
.project-home-content:has(.p3-stage)>.textbtn{position:relative;z-index:2;margin-top:auto;align-self:center}
.phone:has(.p3-stage),#app:has(.p3-stage){overflow:clip}
.p3-home-footer{position:absolute;bottom:44px;left:16px;right:16px;z-index:2;text-align:center;pointer-events:none}
.p3-home-footer button{pointer-events:auto}
.p3-home-footer .p3-help{margin:0 0 6px}
.p3-home-footer>.textbtn{margin:0 auto;padding:6px}
.p3-floating-controls>.p3-preview-floors{position:absolute;top:12px;left:16px;right:16px;padding:4px 10px;border-radius:16px;background:var(--canvas-surface,#153348e6);backdrop-filter:blur(14px);pointer-events:auto}
.p3-node .p3-device-stem{fill:none;stroke:var(--text);stroke-width:2;opacity:.65;pointer-events:none}
.p3-device-foot{fill:var(--text);opacity:.14;stroke:none;pointer-events:none}
.p3-device-anchor{fill:var(--cyan);stroke:var(--text);stroke-width:1.5;pointer-events:none}
.p3-wall-muted{opacity:.28;pointer-events:none}
.p3-wall-solid{pointer-events:none}

.scene-applying .scene-circle-face{outline:2px solid var(--cyan);outline-offset:-3px}
.sun-circle-face:has(>img.home-room-image[src^="data:image/"]) {
  position: relative;
  overflow: hidden;
}
.sun-circle-face > img.home-room-image[src^="data:image/"] {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
}

/* Keep room controls aligned while retaining the complete accessible name. */
.room-detail-shell .sun-circle-tile,
#roomDeviceTypePanel .room-sort-row { min-width:0; }
.room-detail-shell .sun-circle-tile .sun-circle-name,
#roomDeviceTypePanel .room-sort-row .sun-circle-name,
.room-detail-shell .room-device-card > .row > .details:first-child {
  display:block;
  min-width:0;
  max-width:100%;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}

.fade-time-row{display:flex;align-items:flex-start;gap:16px}
.fade-time-range{flex:1;min-width:0}
.fade-time-control .fade-time-number{display:flex;align-items:center;gap:6px;margin:0;flex:0 0 84px;color:var(--muted);font-size:12px}
.fade-time-control .fade-time-number input{width:64px;min-width:0;margin:0;padding:9px 4px;text-align:center;appearance:textfield;-moz-appearance:textfield}
.fade-time-number input::-webkit-inner-spin-button,.fade-time-number input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}

.power-on-brightness{padding:20px}.power-on-brightness[hidden]{display:none}.power-on-brightness label{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;font-size:14px}.power-on-brightness output{color:var(--cyan)}

.power-mode-menu{overflow:hidden;margin-bottom:16px}.power-mode-menu summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;cursor:pointer;list-style:none;font-size:15px;color:var(--text)}
.power-mode-menu summary::-webkit-details-marker{display:none}.power-mode-menu summary svg{width:24px;height:24px;fill:none;stroke:var(--muted);stroke-width:1.8;transition:transform .18s}.power-mode-menu[open] summary svg{transform:rotate(180deg)}
.power-mode-options{border-top:1px solid var(--line)}.power-mode-options button{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;padding:17px 20px;text-align:left;font:inherit;font-size:14px;color:var(--text);background:transparent;border:0}
.power-mode-options button+button{border-top:1px solid var(--line)}.power-mode-options button i{width:18px;height:18px;border:1px solid var(--muted);border-radius:50%;flex-shrink:0}.power-mode-options button[aria-pressed=true]{color:var(--cyan);background:#57c8d20c}.power-mode-options button[aria-pressed=true] i{border-color:var(--cyan);background:radial-gradient(circle,var(--cyan) 0 4px,transparent 5px)}
.power-mode-options button:focus-visible,.power-mode-menu summary:focus-visible{outline:2px solid var(--cyan);outline-offset:-3px}
