html{min-height:100%;-webkit-text-size-adjust:100%;text-size-adjust:100%}body{min-width:320px;font-size:15px;line-height:1.5}button,input,select{font-family:inherit}.shell{min-height:100dvh;max-width:1920px;grid-template-columns:240px minmax(0,1fr) 332px}.sidebar{padding:34px 22px 24px}.api-title strong,.brand strong,.mode strong,.profile strong{font-size:15px}.brand small,.mode small,.profile small{font-size:12px}.settings,.sidebar nav button{min-height:46px;font-size:15px}.workspace{padding:36px clamp(22px,2.5vw,44px) 72px}.workspace>header{gap:20px;margin-bottom:32px}.workspace header p{font-size:13px}.workspace header h1{font-size:clamp(28px,2.2vw,34px);line-height:1.2}.header-copy{min-width:0}.header-controls{display:flex;align-items:center;gap:12px}.home-selector{position:relative;min-width:220px}.home-selector-trigger{display:grid;width:100%;height:48px;grid-template-columns:32px minmax(0,1fr) 16px;align-items:center;gap:8px;padding:5px 10px;border:1px solid #e3e8ed;border-radius:13px;background:#fff;box-shadow:0 4px 14px rgb(30 42 54/4%);text-align:left;cursor:pointer;transition:border-color .18s,box-shadow .18s,background .18s}.home-selector-trigger:hover{border-color:#f0b69d;background:#fffdfc}.home-selector.open .home-selector-trigger{border-color:#ef8b61;box-shadow:0 0 0 3px rgb(255 107 44/10%),0 7px 20px rgb(30 42 54/7%)}.home-selector-icon{display:grid;width:32px;height:32px;place-items:center;border-radius:9px;background:#fff0e9;color:#e96634}.home-selector-copy{display:grid;min-width:0}.home-selector-copy small,.home-selector-menu small{color:#929ba6;font-size:10px;line-height:1.15}.home-selector-copy strong{overflow:hidden;color:#26313d;font-size:13px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}.home-selector-meta{padding:4px 7px;border-radius:999px;background:#f5f6f8;color:#737f8b;font-size:10px;font-weight:650;white-space:nowrap}.home-selector-trigger{grid-template-columns:32px minmax(70px,1fr) auto 14px}.home-selector-chevron{color:#9aa4ae;font-size:13px;pointer-events:none;transition:transform .18s}.home-selector.open .home-selector-chevron{transform:rotate(180deg)}.home-selector-menu{position:absolute;top:calc(100% + 8px);right:0;z-index:40;display:grid;width:max(100%,270px);gap:4px;padding:7px;border:1px solid #e5e9ed;border-radius:14px;background:rgb(255 255 255/98%);box-shadow:0 18px 50px rgb(25 35 46/16%);backdrop-filter:blur(16px)}.home-selector-menu>button{display:grid;min-width:0;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:9px;padding:9px;border:0;border-radius:10px;background:transparent;text-align:left;cursor:pointer}.home-selector-menu>button:hover{background:#f7f8fa}.home-selector-menu>button.selected{background:#fff3ed}.home-option-icon{display:grid;width:32px;height:32px;place-items:center;border-radius:9px;background:#f1f3f5;color:#84909c}.home-selector-menu>button.selected .home-option-icon{background:#ff6b2c;color:#fff}.home-selector-menu>button>span:nth-child(2){display:grid;min-width:0;gap:3px}.home-selector-menu strong{overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.home-selector-menu em{color:#df6332;font-size:10px;font-style:normal;font-weight:700}.actions{flex:none;gap:10px}.actions button{height:44px;min-width:44px}.actions .primary{padding:0 16px;font-size:14px;white-space:nowrap}.mobile-menu-backdrop,.mobile-menu-close,.mobile-menu-toggle{display:none}.active-room-list{display:grid;gap:22px}.active-room>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.active-room>header strong{font-size:15px}.active-room>header span{color:#8b96a2;font-size:12px}.active-device-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr));gap:13px}.active-device-card{display:flex;min-width:0;align-items:center;gap:8px;padding:11px;border:1px solid #e7ebef;border-radius:15px;background:#fff;transition:transform .18s,box-shadow .18s,border-color .18s}.active-device-card:hover{transform:translateY(-2px);border-color:#f1c4b0;box-shadow:0 10px 26px rgb(29 40 51/7%)}.active-device-main{display:grid;min-width:0;flex:1;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:10px;padding:0;border:0;background:transparent;text-align:left;cursor:pointer}.active-device-main>span:first-child{display:grid;width:42px;height:42px;place-items:center;border-radius:12px;font-size:18px}.active-device-main>span:nth-child(2){min-width:0}.active-device-main small,.active-device-main strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.active-device-main strong{font-size:14px}.active-device-main small{margin-top:3px;color:#818c98;font-size:11px}.active-device-main b{color:#a8b0b9;font-weight:400}.active-device-close{min-width:50px;min-height:34px;flex:none;padding:0 9px;border:0;border-radius:9px;background:#fff0e9;color:#df6030;font-size:11px;font-weight:700;cursor:pointer}.active-device-close:disabled{background:#f1f3f5;color:#9aa3ad;cursor:not-allowed}.active-empty{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:13px;padding:18px;border:1px dashed #dfe5ea;border-radius:15px;background:#fff}.active-empty>span{display:grid;width:44px;height:44px;place-items:center;border-radius:50%;background:#eaf8f1;color:#249862;font-weight:800}.active-empty strong{font-size:14px}.active-empty p{margin:3px 0 0;color:#7f8a96;font-size:12px}.active-empty button{min-height:36px;padding:0 12px;border:1px solid #e4e9ed;border-radius:9px;background:#fff;color:#e15f2f;font-size:12px;font-weight:700;cursor:pointer}.metrics,.scenes{gap:16px}.metrics article{min-width:0;padding:17px 15px}.metrics article>div{min-width:0}.metrics article>span{width:40px;height:40px;font-size:17px}.metrics small{font-size:13px}.metrics strong{font-size:26px;line-height:1.3}.metrics em{font-size:13px}.metrics p{font-size:11px;line-height:1.45}.title{gap:12px;margin:30px 0 15px}.title h2{font-size:19px}.title button,.title p{font-size:12px}.title button{min-height:36px;white-space:nowrap}.scene-card{min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:13px;background:#fff;transition:.18s}.scene-card:hover{transform:translateY(-2px);box-shadow:0 9px 25px #1d28330d}.panel-grid .scene-card-open,.scene-card-open{width:100%;min-height:76px;display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px;padding:15px 12px 10px;border:0;border-radius:0;background:transparent;text-align:left;cursor:pointer}.scene-card-open>div{min-width:0}.scene-card-open>span{width:38px;height:38px;display:grid;place-items:center;border-radius:11px}.scene-card-open>b{color:#b1b8c1;font-weight:400}.panel-grid .scene-run,.scene-run{width:calc(100% - 24px);margin:0 12px 12px;padding:8px 10px;border:0;border-radius:9px;background:#fff0e9;color:#e85d26;font-size:12px;font-weight:700;text-align:center;cursor:pointer}.panel-grid .scene-card{background:#fafbfc}.panel-grid .scene-card-open small,.panel-grid .scene-card-open strong{margin-top:0}.panel-grid .scene-card-open small{margin-top:4px}.scenes strong{font-size:14px}.scenes small{font-size:11px;line-height:1.45;white-space:normal}.panel-grid .scene-run:disabled,.scene-run:disabled{cursor:not-allowed;opacity:.58;transform:none;box-shadow:none}.scene-state{margin:0 0 14px;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:#fff;color:#788391;font-size:12px}.scene-state.error{border-color:#ffd7c6;background:#fff8f4;color:#c95020}.scene-center-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-7px 0 18px;padding:11px 13px;border-radius:11px;background:#fafbfc}.scene-center-toolbar span{color:#7d8792;font-size:11px}.scene-center-toolbar button{border:0;border-radius:9px;background:var(--orange);padding:9px 13px;color:#fff;font-size:11px;font-weight:700;cursor:pointer}.scene-center-toolbar button:disabled{cursor:not-allowed;opacity:.46}.scene-page{min-height:520px;padding:25px 28px 28px;border:1px solid var(--line);border-radius:18px;background:#fff}.scene-page-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:26px;padding-bottom:18px;border-bottom:1px solid var(--line)}.scene-page-toolbar>button{border:1px solid #e1e6ea;border-radius:9px;background:#fff;padding:9px 12px;color:#687480;font-size:10px;font-weight:700;cursor:pointer}.scene-page-toolbar>div{display:flex;gap:8px}.scene-page-toolbar .scene-modal-edit,.scene-page-toolbar .scene-modal-run{width:auto;padding:10px 15px;font-size:11px}.scene-modal{width:min(620px,100%);max-height:min(88dvh,820px);display:flex;overflow:hidden;padding:0;flex-direction:column}.scene-modal-scroll{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:28px 28px 18px}.scene-modal .close{z-index:2}.scene-modal-head{display:flex;align-items:center;gap:14px;padding-right:34px}.scene-modal-head>span{width:48px;height:48px;flex:none;display:grid;place-items:center;border-radius:14px;background:#fff0e9;color:var(--orange);font-size:20px}.scene-modal-head p,.scene-modal-head small{color:#929ca8;font-size:11px}.scene-modal-head h2,.scene-modal-head p{margin:2px 0 0}.scene-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:22px 0 20px}.scene-details>div{padding:13px;border-radius:11px;background:#f7f8fa}.scene-details small,.scene-details strong{display:block}.scene-details small{color:#929ca8;font-size:10px}.scene-details strong{margin-top:4px;font-size:14px}.scene-flow-section{padding:18px 0;border-top:1px solid var(--line)}.scene-flow-title,.scene-flow-title>div{display:flex;align-items:center}.scene-flow-title{justify-content:space-between;gap:12px;margin-bottom:12px}.scene-flow-title>div{gap:8px}.scene-flow-title span{border-radius:7px;background:#fff0e9;padding:4px 6px;color:#e76531;font-size:9px;font-weight:800}.scene-flow-title strong{font-size:14px}.scene-flow-title small{color:#929ca8;font-size:10px}.scene-action-list{display:grid;gap:8px}.scene-action-groups,.scene-action-rooms{display:grid;gap:16px}.scene-action-group{border:1px solid #e9edf1;border-radius:13px;background:#fafbfc;padding:12px}.scene-action-group>header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.scene-action-group>header strong{color:#4f5b67;font-size:11px}.scene-action-group>header small{color:#929ca8;font-size:9px}.scene-action-group .scene-action-room{border-left:2px solid #ffe0d2;padding-left:10px}.scene-action-room>header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;padding:0 2px}.scene-action-room>header strong{font-size:11px}.scene-action-room>header small{color:#929ca8;font-size:9px}.scene-action-empty{margin:9px 0 0;border-radius:9px;background:#fafbfc;padding:10px 12px;color:#8a949f;font-size:10px;line-height:1.6}.scene-action-list{margin:0;padding:0;list-style:none}.scene-action-list>li{position:relative;display:grid;grid-template-columns:30px minmax(0,1fr);gap:11px;padding-bottom:10px}.scene-action-list>li:not(:last-child):after{content:"";position:absolute;top:30px;bottom:-2px;left:14px;width:1px;background:#e5e9ee}.scene-action-list>li>span{z-index:1;width:30px;height:30px;display:grid;place-items:center;border:1px solid #ffd8c6;border-radius:50%;background:#fff8f4;color:#e76531;font-size:10px;font-weight:800}.scene-action-list>li>div{min-width:0;border:1px solid #edf0f3;border-radius:11px;padding:10px 12px}.scene-action-list small,.scene-action-list strong{display:block}.scene-action-list strong{font-size:12px}.scene-action-list small{margin-top:3px;color:#7d8792;font-size:10px}.scene-action-details{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}.scene-action-batch details{margin-top:8px;border-top:1px solid #edf0f3;padding-top:7px}.scene-action-batch summary{color:#e76531;font-size:9px;font-weight:700;cursor:pointer}.scene-action-batch details>div{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}.scene-action-batch details span{border-radius:7px;background:#f5f7f9;padding:4px 7px;color:#687480;font-size:9px}.scene-action-detail{display:inline-flex;align-items:center;gap:5px;min-height:29px;border:1px solid #e8edf1;border-radius:9px;background:#f6f8fa;padding:4px 8px 4px 5px;color:#65717d;font-style:normal}.scene-action-detail>i{width:19px;height:19px;display:grid;place-items:center;border-radius:6px;background:#fff;font-size:10px;font-style:normal}.scene-action-detail>span{font-size:8px;opacity:.78}.scene-action-detail>b{font-size:10px}.scene-action-detail.power.on{border-color:#bfe7d4;background:#ebf8f2;color:#217b55}.scene-action-detail.power.on>i{background:#d6f1e4;color:#148054}.scene-action-detail.power.off{border-color:#dde2e7;background:#f1f3f5;color:#65717b}.scene-action-detail.brightness{border-color:color-mix(in srgb,var(--scene-detail-accent,#d6a000) 55%,#d9dee3);background:linear-gradient(90deg,color-mix(in srgb,var(--scene-detail-accent,#d6a000) 26%,#fff) 0 var(--scene-detail-level,50%),#fffdf5 var(--scene-detail-level,50%) 100%);color:#655116}.scene-action-detail.brightness>i{background:color-mix(in srgb,var(--scene-detail-accent,#d6a000) 24%,#fff);color:color-mix(in srgb,var(--scene-detail-accent,#d6a000) 82%,#574916)}.scene-action-detail.color-temperature{border-color:color-mix(in srgb,var(--scene-detail-accent,#86a6bc) 52%,#d8dee3);background:linear-gradient(90deg,color-mix(in srgb,var(--scene-detail-accent,#86a6bc) 23%,#fff) 0 var(--scene-detail-level,50%),#f9fbfc var(--scene-detail-level,50%) 100%);color:#40515d}.scene-action-detail.color-temperature>i{background:var(--scene-detail-accent,#86a6bc);color:#fff}.scene-action-detail.delay{border-color:#dcd8f2;background:#f5f3ff;color:#675f99}.scene-submit-note{margin:0!important}.scene-modal-actions{display:grid;grid-template-columns:1fr 1.5fr;gap:9px;margin:0 28px 28px}.scene-modal-actions:has(.scene-modal-run:only-child){grid-template-columns:1fr}.scene-modal-edit,.scene-modal-run{width:100%;flex:none;padding:12px 14px;border-radius:10px;font-weight:700;cursor:pointer}.scene-modal-run{border:0;background:var(--orange);color:#fff}.scene-modal-edit{border:1px solid #e0e5ea;background:#fff;color:#66727e}.scene-modal-run:disabled{cursor:not-allowed;opacity:.58}.home-tabs{gap:12px;padding:2px 1px 8px;scrollbar-width:thin}.home-tabs>button{min-width:184px;padding:13px 14px}.home-tabs strong{font-size:14px}.home-tabs small{font-size:12px}.rooms{gap:22px;overflow-x:auto;scrollbar-width:thin;white-space:nowrap}.rooms button{flex:none;min-height:44px;padding:9px 2px;font-size:14px}.topology-toolbar{flex-wrap:wrap;gap:12px;margin-bottom:17px}.topology-toolbar>small{font-size:12px;line-height:1.5}.device-view-switch>button{min-height:39px;padding:8px 13px;font-size:13px;white-space:nowrap}.topology-summary>span{padding:6px 10px;font-size:12px}.room-group{margin:20px 0 28px}.room-heading strong{font-size:16px}.room-heading span{font-size:12px}.devices{grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr));gap:16px}.devices article{min-width:0;padding:17px}.device-top>span{width:41px;height:41px;font-size:17px}.devices h3{margin:15px 0 6px;font-size:16px;line-height:1.4}.card-binding-summary>small,.card-binding-summary>span,.detail,.devices article>p{font-size:12px}.detail{gap:8px;line-height:1.45}.binding-count,.channel-role,.source-role,.topology-badge,.virtual-badge{font-size:11px}.card-binding-summary{flex-wrap:wrap;row-gap:4px}.device-group-card{border-color:#d9e6fb!important;background:linear-gradient(150deg,#fff,#f6f9ff)!important}.device-top .group-badge{width:auto;height:auto;border-radius:9px;background:#eef4ff;padding:5px 8px;color:#476db2;font-size:11px}.device-group-label{background:#edf3ff;color:#486cb0}.device-group-members{display:grid;gap:8px;margin-top:12px}.device-group-members>button{display:grid;min-height:54px;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:9px;border:1px solid #e4eaf3;border-radius:10px;background:rgb(255 255 255/88%);padding:8px;text-align:left;cursor:pointer}.device-group-members>button:hover{border-color:#a7beeb;background:#fff}.device-group-members>button>span:first-child{display:grid;width:34px;height:34px;place-items:center;border-radius:9px}.device-group-members>button>span:nth-child(2){display:grid;min-width:0;gap:2px}.device-group-members small,.device-group-members strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.device-group-members strong{font-size:13px}.device-group-members small{color:#7e8996;font-size:11px}.device-group-members b{color:#8090aa;font-size:17px}.associated-device-ids{gap:7px}.associated-device-ids>button{min-height:40px;gap:8px;padding:8px}.associated-device-ids span{font-size:12px}.associated-device-ids code{max-width:145px;font-size:11px}.rightbar{padding:35px 23px}.api{padding:18px}.activity p,.activity small,.api-title small,.home-status small,.home-status>div span{font-size:12px}.api p{font-size:13px}.all,.api>button{min-height:42px;font-size:13px}.activity strong,.home-status>div{font-size:14px}.labels,.panel-title p,.rule{font-size:13px}.toast{max-width:calc(100vw - 32px);font-size:14px}.modal{max-height:min(86dvh,880px);overflow-y:auto;overscroll-behavior:contain}.cloud-modal{width:min(470px,100%)}.binding-modal,.device-modal{width:min(560px,100%)}.modal .close{width:38px;height:38px}.binding-selector-title>small,.connected-info strong,.device-identity small,.device-identity strong,.device-modal-head p,.logout,.modal>p,.region-picker,.region-picker select,.settings-heading span{font-size:13px}.device-modal-head h2,.modal h2{font-size:20px}.binding-panel-heading>div>strong,.binding-selector-title>strong,.settings-heading strong{font-size:15px}.binding-editor>label>span,.channel-smart-target>strong,.channel-targets>strong,.concrete-device-card>div>strong,.control-sources>div>strong,.setting-label strong,.source-channel>strong,.source-identity>strong,.spec-events>div,.spec-group>summary strong,.spec-readonly>div{font-size:13px}.action-control input,.binding-editor select,.binding-existing>div>span,.binding-existing>div>strong,.binding-existing>small,.binding-panel-heading>div>small,.binding-panel-heading>span,.binding-readonly>div>span,.binding-readonly>div>strong,.channel-smart-target>small,.channel-targets>span,.channel-targets>strong>small,.concrete-device-card>div>small,.concrete-device-card>em,.connected-info small,.control-sources>small,.plain-load-name>em,.qr-link,.security-note,.setting-action,.setting-label small,.setting-row select,.source-channel>small,.source-identity>small,.spec-events>div>small,.spec-events>p,.spec-group>summary small,.spec-warning,.text-control input{font-size:12px}.capability-note,.qr-countdown,.readonly-note,.scan-tip{font-size:12px!important}.binding-description,.binding-limitation,.binding-target-hint,.unresolved-binding>small{font-size:12px;line-height:1.65}.binding-editor select,.logout,.region-picker select,.setting-action{min-height:38px}.setting-row{padding:12px}.concrete-device-card{min-height:64px}@media (max-width:1320px){.shell{grid-template-columns:224px minmax(0,1fr)}.rightbar{display:none}.metrics,.scenes{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width:980px){.shell{grid-template-columns:198px minmax(0,1fr)}.sidebar{padding:29px 14px 19px}.workspace{padding:30px 22px 64px}.scenes>button{gap:8px}}@media (max-width:760px){.site-footer{margin-top:28px;padding-bottom:8px}.shell{display:block}.sidebar{display:none;position:fixed;z-index:32}.sidebar.mobile-menu-open{inset:0 auto 0 0;display:flex;width:min(86vw,340px);height:100dvh;overflow-y:auto;padding:26px 18px calc(20px + env(safe-area-inset-bottom));border:0;border-right:1px solid var(--line);background:rgb(255 255 255/98%);box-shadow:18px 0 50px rgb(27 35 46/16%);backdrop-filter:blur(16px)}.sidebar.mobile-menu-open .brand{display:flex;padding:0 34px 24px 6px}.sidebar.mobile-menu-open .sidefoot{display:block}.sidebar.mobile-menu-open nav{grid-template-columns:1fr;gap:5px}.sidebar.mobile-menu-open nav button{min-height:46px;padding:10px 13px;text-align:left}.sidebar.mobile-menu-open nav i{display:inline-grid;width:29px;font-size:18px;line-height:normal}.mobile-menu-close{position:absolute;top:19px;right:16px;display:grid;width:38px;height:38px;place-items:center;border:0;border-radius:10px;background:#f5f7f9;color:#687480;font-size:24px;cursor:pointer}.mobile-menu-backdrop{position:fixed;inset:0;z-index:31;display:block;border:0;background:rgb(23 32 43/44%);backdrop-filter:blur(2px)}.workspace{min-height:100dvh;padding:25px 17px calc(40px + env(safe-area-inset-bottom))}.workspace>header{position:relative;align-items:flex-start;flex-direction:column;gap:12px;margin-bottom:25px}.header-controls{width:100%}.home-selector{min-width:0;flex:1}.workspace header h1{font-size:27px}.workspace header p{font-size:12px}.workspace .header-copy{min-height:48px;padding-left:58px}.actions{gap:7px}.actions button:not(.primary){display:none}.mobile-menu-toggle{position:absolute;top:0;left:0;display:grid;width:44px;height:44px;place-items:center;border:1px solid var(--line);border-radius:12px;background:#fff;color:#35404c;padding:0;font-size:21px;cursor:pointer}.actions .primary{padding:0 11px;font-size:12px}.metrics,.scenes{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.metrics article{gap:9px;padding:14px 11px}.metrics article>span{width:35px;height:35px}.metrics strong{font-size:23px}.title{margin:25px 0 13px}.title h2{font-size:18px}.home-tabs{margin-right:-17px;padding-right:17px;scroll-snap-type:x proximity}.home-tabs>button{scroll-snap-align:start}.rooms{gap:20px;margin-right:-17px;padding-right:17px}.topology-toolbar{align-items:stretch;flex-direction:column;gap:9px}.topology-toolbar>small{display:block}.device-view-switch{width:fit-content;max-width:100%}.device-view-switch>button{padding:8px 11px;font-size:12px}.topology-summary{gap:6px}.topology-summary>span{padding:5px 8px;font-size:11px}.devices{grid-template-columns:repeat(auto-fit,minmax(min(100%,265px),1fr));gap:12px}.panel{min-height:0;padding:19px}.panel-grid{grid-template-columns:1fr}.scene-page{min-height:0;padding:19px}.scene-page-toolbar{align-items:stretch;flex-direction:column;margin-bottom:22px}.scene-page-toolbar>button{align-self:flex-start}.scene-page-toolbar>div{display:grid;grid-template-columns:1fr 1.4fr}.scene-page-toolbar .scene-modal-edit,.scene-page-toolbar .scene-modal-run{width:100%}.rule{grid-template-columns:1fr}.rule b{display:none}.modal-bg{place-items:end stretch;padding:0}.binding-modal,.cloud-modal,.device-modal,.modal{width:100%;max-height:calc(100dvh - max(32px, env(safe-area-inset-top)));border-radius:23px 23px 0 0;padding:24px 19px calc(22px + env(safe-area-inset-bottom))}.modal .close{top:10px;right:11px;width:44px;height:44px}.scene-modal{padding:0}.scene-modal-scroll{padding:24px 19px 16px}.scene-modal-actions{margin:0 19px calc(18px + env(safe-area-inset-bottom))}.action-control input,.binding-editor select,.region-picker select,.setting-row select,.text-control input{font-size:16px}.toast{bottom:calc(20px + env(safe-area-inset-bottom))}}@media (max-width:560px){.header-controls{display:grid;grid-template-columns:1fr auto}.home-selector{width:100%;grid-column:1/-1}.actions{grid-column:2;justify-content:flex-end}.active-device-grid{grid-template-columns:1fr}.active-empty{grid-template-columns:40px minmax(0,1fr)}.active-empty>span{width:40px;height:40px}.active-empty button{grid-column:1/-1}.devices{grid-template-columns:1fr}.scenes>button{min-height:82px;grid-template-columns:34px minmax(0,1fr);gap:8px;padding:12px 9px}.scenes>button>b{display:none}.home-tabs>button{min-width:165px}.associated-device-ids>button{grid-template-columns:minmax(0,1fr) auto;gap:3px 8px}.associated-device-ids span{grid-column:1}.associated-device-ids code{grid-column:1;max-width:none;overflow-wrap:anywhere;white-space:normal}.associated-device-ids b{grid-column:2;grid-row:1/span 2}.concrete-device-card{gap:8px}.concrete-device-card>em{max-width:74px;overflow:hidden;text-overflow:ellipsis}.setting-row.with-inputs{align-items:stretch;flex-direction:column}.action-control input,.text-control input{min-width:0;flex:1}}@media (max-width:390px){.workspace{padding-right:13px;padding-left:13px}.workspace>header{flex-wrap:wrap}.actions{justify-content:flex-end;width:100%}.metrics article{gap:7px;padding:12px 8px}.metrics small{font-size:12px}.metrics strong{font-size:21px}.device-view-switch{width:100%}.device-view-switch>button{flex:1;padding-right:7px;padding-left:7px}}.dm-shell{display:grid;gap:22px;min-width:0;margin-top:32px}.dm-intro{display:flex;align-items:center;justify-content:space-between;gap:18px}.dm-eyebrow{color:#ef7345;font-size:11px;font-weight:700;letter-spacing:.12em}.dm-intro h2{margin:5px 0;font-size:clamp(22px,2vw,27px)}.dm-intro p,.dm-view-bar>p{margin:0;color:#778392;font-size:13px;line-height:1.6}.dm-connection{flex:none;padding:8px 12px;border-radius:999px;background:#f1f4f7;color:#637080;font-size:12px;font-weight:600}.dm-connection.connected{background:#eaf8f0;color:#228b58}.dm-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.dm-summary-card{display:flex;align-items:center;gap:11px;min-width:0;min-height:80px;padding:13px;border:1px solid #e8edf2;border-radius:15px;background:#fff}.dm-summary-card>span{display:grid;width:35px;height:35px;flex:none;place-items:center;border-radius:11px;background:#f1f3f6;color:#687584;font-size:17px}.dm-summary-card.orange>span{background:#fff0e9;color:#ed7347}.dm-summary-card.violet>span{background:#f2efff;color:#7864db}.dm-summary-card.blue>span{background:#edf5fe;color:#448dd4}.dm-summary-card>div{min-width:0}.dm-summary-card small,.dm-summary-card strong{display:block}.dm-summary-card strong{font-size:22px;line-height:1.15}.dm-summary-card small{overflow:hidden;color:#74808d;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.dm-filter-group{display:grid;gap:9px;min-width:0}.dm-filter-label{color:#626e7b;font-size:13px;font-weight:650}.dm-room-tabs{display:flex;gap:10px;overflow-x:auto;padding:2px 1px 5px;scrollbar-width:thin}.dm-room-tabs>button{min-height:38px;flex:none;padding:0 13px;border:1px solid #e6ebf0;border-radius:10px;background:#fff;color:#617080;font-size:13px;cursor:pointer}.dm-room-tabs>button.selected{border-color:#f6b69a;background:#fff2ec;color:#d86234;font-weight:650}.dm-view-bar{display:grid;gap:9px}.dm-view-tabs{display:inline-flex;width:fit-content;max-width:100%;padding:4px;border:1px solid #e7ebef;border-radius:12px;background:#f2f4f6}.dm-view-tabs>button{min-height:36px;padding:0 14px;border:0;border-radius:9px;background:transparent;color:#687584;font-size:13px;font-weight:600;white-space:nowrap;cursor:pointer}.dm-view-tabs>button.selected{background:#fff;color:#222d39;box-shadow:0 2px 7px #37415110}.dm-room-inventory,.dm-room-section{display:grid;gap:14px}.dm-room-inventory{gap:25px}.dm-room-heading,.dm-room-heading>div{display:flex;align-items:center;gap:10px}.dm-room-heading{justify-content:space-between}.dm-room-heading h3{margin:0;font-size:17px}.dm-room-heading>small{color:#778392;font-size:12px}.dm-room-heading>div>span{color:#4b87bd;font-size:11px}.dm-room-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,225px),1fr));align-items:start;gap:13px}.dm-record-card{min-width:0;padding:15px;border:1px solid #e6ebf0;border-radius:16px;background:#fff;cursor:pointer;transition:border-color .16s,box-shadow .16s,transform .16s}.dm-record-card:hover{transform:translateY(-1px);border-color:#f1bba1;box-shadow:0 8px 24px #26313d0c}.dm-record-card.dm-record-kind-voice-alias{border-color:#d7e8f8;background:#fbfdff}.dm-record-card.dm-record-kind-group{border-color:#e2dcf7}.dm-record-card.offline{opacity:.68}.dm-record-top{display:flex;align-items:center;justify-content:space-between;gap:9px}.dm-record-icon{display:grid;width:39px;height:39px;flex:none;place-items:center;border-radius:11px;font-size:18px}.dm-category{padding:5px 8px;border-radius:999px;background:#f2f4f7;color:#65717f;font-size:10px;font-weight:650;white-space:nowrap}.dm-category-smart-light,.dm-category-wired-load{background:#fff1e9;color:#cd683e}.dm-category-controller,.dm-category-switch{background:#f2efff;color:#705bc6}.dm-category-voice-alias{background:#eaf4ff;color:#397cb7}.dm-category-group{background:#f0ebff;color:#6c5cbc}.dm-record-card h4{margin:14px 0 4px;font-size:15px}.dm-record-card h4,.dm-record-card>p{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dm-record-card>p{margin:0;color:#758291;font-size:12px}.dm-channel-preview{display:grid;gap:6px;min-width:0;margin-top:12px}.dm-channel-row{display:grid;grid-template-columns:minmax(54px,max-content) minmax(0,1fr) 28px;gap:8px;align-items:center;width:100%;min-width:0;min-height:32px;padding:5px 7px;border:1px solid #edf0f3;border-radius:9px;background:#fbfcfd;color:#5f6b78;font-size:11px;text-align:left;cursor:pointer}.dm-channel-row:hover{border-color:#dde3e9;background:#f8fafc}.dm-channel-status{display:inline-flex;width:fit-content;max-width:92px;align-items:center;justify-content:center;padding:3px 6px;border-radius:999px;background:#fff0e9;color:#c9663f;font-size:9px;font-style:normal;font-weight:700;line-height:1.2}.dm-channel-name,.dm-channel-status{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dm-channel-name{min-width:0;font-weight:550}.dm-channel-siid{min-width:28px;color:#929ca7;font-size:9px;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}.dm-channel-row.wireless .dm-channel-status{background:#f1eeff;color:#705bc6}.dm-channel-row.mixed{border-color:#d8d9f2;background:linear-gradient(90deg,#fff8f3,#f6f4ff)}.dm-channel-row.mixed .dm-channel-status{background:#edf1ff;color:#4f6fb0}.dm-channel-row.inferred-wired{border-style:dashed;border-color:#efc9b8;background:#fffaf7}.dm-channel-row.inferred-wired .dm-channel-status{background:#fff2ea;color:#b96743}.dm-channel-row.unknown .dm-channel-status{background:#f0f3f5;color:#707d89}.dm-record-footer{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;margin-top:14px;padding-top:11px;border-top:1px solid #edf0f3;color:#697583}.dm-record-footer>small,.dm-record-footer>span{font-size:11px}.dm-record-footer>b{color:#9da6b0;font-size:17px}.dm-record-footer>code{overflow:hidden;color:#798593;font-size:10px;text-align:right;text-overflow:ellipsis;white-space:nowrap}.dm-group-members{display:grid;gap:6px;margin-top:13px}.dm-group-members>button{display:grid;grid-template-columns:31px minmax(0,1fr) auto;align-items:center;gap:7px;width:100%;padding:8px;border:1px solid #ebedf2;border-radius:10px;background:#fff;text-align:left;cursor:pointer}.dm-group-members>button>span:first-child{display:grid;width:31px;height:31px;place-items:center;border-radius:8px}.dm-group-members>button>span:nth-child(2){min-width:0}.dm-group-members>button small,.dm-group-members>button strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dm-group-members>button strong{font-size:11px}.dm-group-members>button small{color:#7d8895;font-size:10px}.dm-group-members>button>b{color:#8b95a1}.dm-group-note,.dm-group-unknown{margin-top:12px;padding:9px 10px;border:1px dashed #dcd7ef;border-radius:9px;background:#faf9ff;color:#746b92;font-size:10px;line-height:1.6}.dm-topology-explorer{display:grid;grid-template-columns:minmax(210px,.84fr) minmax(0,1.8fr);min-height:440px;overflow:hidden;border:1px solid #e6ebf0;border-radius:17px;background:#fff}.dm-topology-list{padding:14px;border-right:1px solid #e9edf1;background:#fcfcfd}.dm-list-heading{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:4px 1px 13px}.dm-list-heading>strong{font-size:13px}.dm-list-heading>small{color:#7c8895;font-size:11px;white-space:nowrap}.dm-topology-item{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:8px;width:100%;min-height:64px;margin-bottom:7px;padding:8px;border:1px solid transparent;border-radius:11px;background:transparent;text-align:left;cursor:pointer}.dm-topology-item.selected{border-color:#f4cbb9;background:#fff6f1}.dm-light-icon{display:grid;width:34px;height:34px;place-items:center;border-radius:10px;background:#fff2dc;color:#dfa139}.dm-topology-item>div{min-width:0}.dm-topology-item>div small,.dm-topology-item>div strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dm-topology-item>div strong{font-size:12px}.dm-topology-item>div small{margin-top:3px;color:#798594;font-size:10px}.dm-topology-item>em{color:#4387c5;font-size:11px;font-style:normal}.dm-topology-stage{min-width:0;padding:18px}.dm-stage-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px}.dm-stage-heading>div>span{color:#d27953;font-size:11px}.dm-stage-heading h3{margin:5px 0;font-size:21px}.dm-stage-heading p{margin:0;color:#74808d;font-size:12px}.dm-target-state{flex:none;padding:7px 10px;border-radius:999px;background:#f1f4f7;color:#65717f;font-size:11px;font-weight:650}.dm-target-state.on{background:#fff1e8;color:#d46d3f}.dm-target-state.offline{background:#f0f1f3;color:#8b949e}.dm-topology-canvas{display:block;width:100%;min-height:230px;margin-top:14px;border:1px solid #eef1f4;border-radius:14px;background:radial-gradient(circle at 1px 1px,#e9edf1 1px,transparent 0) 0 0 /17px 17px,#fdfdfd;cursor:pointer}.dm-legend{display:flex;flex-wrap:wrap;gap:13px;padding:12px 2px}.dm-legend>span{display:flex;align-items:center;gap:5px;color:#647180;font-size:11px}.dm-legend i{width:15px;height:2px;background:#ed8050}.dm-legend i.wireless{background:repeating-linear-gradient(90deg,#8771e8 0 4px,transparent 4px 6px)}.dm-legend i.alias{background:repeating-linear-gradient(90deg,#4b91d9 0 2px,transparent 2px 5px)}.dm-legend i.unknown{background:repeating-linear-gradient(90deg,#8995a2 0 2px,transparent 2px 5px)}.dm-control-grid,.dm-control-groups,.dm-control-groups>section{display:grid;gap:8px}.dm-control-groups{gap:14px;margin-top:8px}.dm-control-groups h4{margin:0;color:#495562;font-size:12px}.dm-control-button{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:8px;width:100%;padding:9px;border:1px solid #e8ecf1;border-radius:11px;background:#fff;text-align:left;cursor:pointer}.dm-control-button>span{display:grid;width:32px;height:32px;place-items:center;border-radius:9px;background:#fff2eb;color:#d9754b}.dm-control-button.wireless>span{background:#f2efff;color:#7560d2}.dm-control-button.unknown>span{background:#f0f2f4;color:#78838f}.dm-control-button.alias>span{background:#edf5ff;color:#4386c6}.dm-control-button.smart>span{background:#fff6e4;color:#d59735}.dm-control-button>div{min-width:0}.dm-control-button small,.dm-control-button strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dm-control-button strong{font-size:12px}.dm-control-button small{color:#758291;font-size:10px}.dm-control-button>b{color:#89939f}.dm-empty{display:grid;min-height:220px;place-content:center;gap:8px;padding:25px;border:1px dashed #dfe5eb;border-radius:16px;background:#fff;text-align:center}.dm-empty>span{color:#9ca7b4;font-size:25px}.dm-empty>strong{font-size:14px}.dm-empty>p{max-width:360px;margin:0;color:#758291;font-size:12px;line-height:1.7}@media (max-width:1320px){.dm-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.dm-topology-explorer{grid-template-columns:minmax(195px,.8fr) minmax(0,1.7fr)}}@media (max-width:760px){.dm-shell{gap:19px;margin-top:26px}.dm-intro{align-items:flex-start}.dm-intro p{font-size:12px}.dm-summary{gap:9px}.dm-summary-card{min-height:72px;padding:10px}.dm-summary-card strong{font-size:20px}.dm-room-heading>div{flex-wrap:wrap;gap:3px 8px}.dm-room-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,190px),1fr))}.dm-topology-explorer{grid-template-columns:1fr;min-height:0}.dm-topology-list{max-height:255px;overflow:auto;border-right:0;border-bottom:1px solid #e9edf1}.dm-topology-stage{padding:15px}.dm-stage-heading h3{font-size:19px}}@media (max-width:430px){.dm-intro{flex-wrap:wrap}.dm-connection{padding:6px 9px;font-size:11px}.dm-summary-card{gap:8px}.dm-summary-card>span{width:32px;height:32px}.dm-summary-card small{font-size:11px}.dm-view-tabs>button{padding:0 10px;font-size:12px}.dm-room-grid{grid-template-columns:1fr}.dm-channel-row{grid-template-columns:minmax(54px,max-content) minmax(0,1fr) 30px;gap:7px}.dm-channel-status{max-width:86px}.dm-stage-heading p{line-height:1.7}}.environment-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.environment-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:18px;display:grid;gap:5px}.environment-value{font-size:26px;font-weight:700;color:#26303b;line-height:1.1}.environment-value small{font-size:11px;font-weight:600;color:#8b95a1;margin-left:4px}.environment-card strong{font-size:11px;color:#5c6673}.environment-card small{font-size:9px;color:#9aa2ad}.environment-rows{display:grid;gap:8px}.environment-row{display:grid;grid-template-columns:92px 1fr;align-items:center;gap:10px;border-top:1px solid #f0f2f5;padding:10px 2px}.environment-row strong{font-size:13px;color:#26303b}.environment-row span{font-size:10px;color:#7d8792;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:root{--viz-surface:#fcfcfb;--viz-series-1:#2a78d6;--viz-series-2:#eb6834;--viz-series-3:#1baf7a;--viz-text-primary:#0b0b0b;--viz-text-secondary:#52514e;--viz-text-muted:#898781;--viz-grid:#e1e0d9;--viz-baseline:#c3c2b7}@media(prefers-color-scheme:dark){:root:not([data-theme=light]) body,:root[data-theme=dark] body{--viz-surface:#1a1a19;--viz-series-1:#3987e5;--viz-series-2:#d95926;--viz-series-3:#199e70;--viz-text-primary:#fff;--viz-text-secondary:#c3c2b7;--viz-text-muted:#898781;--viz-grid:#2c2c2a;--viz-baseline:#383835}}.environment-charts{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.environment-charts.refreshing{opacity:.55;transition:opacity .2s}.environment-chart{position:relative;background:var(--viz-surface);border:1px solid var(--line);border-radius:12px;padding:14px 12px 8px;display:grid;gap:8px;margin:0}.environment-chart figcaption{display:flex;align-items:baseline;gap:8px}.environment-chart figcaption strong{font-size:12px;color:var(--viz-text-primary)}.environment-chart figcaption small,.environment-chart-table{font-size:10px;color:var(--viz-text-secondary)}.environment-chart-table{margin-left:auto;background:none;border:1px solid var(--viz-grid);border-radius:6px;padding:2px 8px;cursor:pointer}.environment-chart-legend{display:flex;flex-wrap:wrap;gap:10px;font-size:10px;color:var(--viz-text-secondary)}.environment-chart-legend i{display:inline-block;width:14px;height:0;border-top:2px solid;border-radius:1px;margin-right:4px;vertical-align:middle}.environment-chart svg{width:100%;height:auto;display:block;touch-action:none}.environment-series-line{fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.environment-series-dot{r:2.5}.environment-series-dot.end{r:4}.environment-baseline,.environment-series-dot{stroke-width:2}.environment-grid-line{stroke:var(--viz-grid);stroke-width:1}.environment-baseline{stroke:var(--viz-baseline)}.environment-axis-text{fill:var(--viz-text-muted);font-size:9px;tabular-nums:1}.environment-crosshair{stroke:var(--viz-text-muted);stroke-width:1}.environment-tooltip{position:absolute;top:44px;transform:translateX(-50%);background:var(--viz-surface);border:1px solid var(--viz-grid);border-radius:8px;padding:8px 10px;display:grid;gap:4px;font-size:10px;box-shadow:0 4px 12px rgba(0,0,0,.08);pointer-events:none;white-space:nowrap;z-index:2}.environment-tooltip strong{color:var(--viz-text-primary)}.environment-tooltip span{display:flex;align-items:center;gap:6px}.environment-tooltip i{display:inline-block;width:12px;height:2px;border-radius:1px}.environment-tooltip b{color:var(--viz-text-primary);font-weight:600}.environment-tooltip small{color:var(--viz-text-secondary)}.environment-trend-note{font-size:10px;color:var(--viz-text-muted);margin:10px 0 0}table.environment-chart-table{width:100%;border-collapse:collapse;font-size:10px;color:var(--viz-text-secondary);margin-top:8px}table.environment-chart-table th{color:var(--viz-text-secondary);font-weight:600;text-align:left;padding:4px 8px;border-bottom:1px solid var(--viz-baseline);tabular-nums:1}table.environment-chart-table th i{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:4px;vertical-align:middle}table.environment-chart-table td{padding:4px 8px;border-bottom:1px solid var(--viz-grid)}@media(max-width:1100px){.environment-grid{grid-template-columns:repeat(2,1fr)}.environment-charts{grid-template-columns:1fr}}@media(max-width:440px){.environment-grid{grid-template-columns:1fr}.environment-row{grid-template-columns:80px 1fr}.environment-charts{grid-template-columns:1fr}.environment-tooltip{max-width:180px;white-space:normal}}.scene-editor-bg{z-index:42;padding:24px}.scene-editor{width:min(820px,100%);max-height:min(92dvh,920px);display:flex;flex-direction:column;overflow:hidden;border:1px solid #e7ebef;border-radius:22px;background:#fff;box-shadow:0 30px 100px #111b2938}.scene-editor>header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:25px 28px 20px;border-bottom:1px solid var(--line)}.scene-editor>header span{color:var(--orange);font-size:9px;font-weight:800;letter-spacing:.12em}.scene-editor>header h2{margin:3px 0 2px;font-size:22px}.scene-editor footer p,.scene-editor>header p{margin:0;color:#8c96a2;font-size:11px}.scene-editor>header>button{width:36px;height:36px;border:0;border-radius:10px;background:#f5f7f9;color:#8c96a2;font-size:22px;cursor:pointer}.scene-editor-scroll{min-height:0;overflow:auto;padding:22px 28px 28px}.scene-editor-basics{margin-bottom:22px}.scene-editor label{display:grid;gap:8px}.scene-editor label>span{color:#66717d;font-size:11px;font-weight:700}.scene-editor input,.scene-editor select{width:100%;min-height:40px;border:1px solid #dfe4e9;border-radius:10px;background:#fff;padding:8px 11px;font-size:12px}.scene-editor-warning{margin-bottom:22px;border:1px solid #f3d9a9;border-radius:12px;background:#fffbf1;padding:13px 15px}.scene-editor-warning strong{font-size:12px;color:#8c651d}.scene-editor-warning p{margin:3px 0 0;color:#907849;font-size:10px;line-height:1.6}.scene-action-composer,.scene-editor-actions{border:1px solid #e8ecf0;border-radius:15px;padding:17px}.scene-editor-section-title,.scene-editor-section-title>div{display:flex;align-items:center}.scene-editor-section-title{justify-content:space-between;gap:12px;margin-bottom:14px}.scene-editor-section-title>div{gap:9px}.scene-editor-section-title>div>span{display:grid;place-items:center;min-width:29px;height:27px;border-radius:8px;background:#fff0e9;color:#e76531;font-size:9px;font-weight:800}.scene-editor-section-title small,.scene-editor-section-title strong{display:block}.scene-editor-section-title strong{font-size:13px}.scene-editor-section-title small{margin-top:2px;color:#939da8;font-size:9px}.scene-add-property button,.scene-editor-section-title>button{border:0;border-radius:9px;background:#fff0e9;padding:8px 11px;color:#e65e27;font-size:10px;font-weight:700;cursor:pointer}.scene-editor-actions ol{display:grid;gap:8px;margin:0;padding:0;list-style:none}.scene-editor-actions li{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:10px;border:1px solid #edf0f3;border-radius:11px;padding:10px}.scene-editor-actions li>b{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#f7f8fa;color:#7d8792;font-size:10px}.scene-editor-actions li small,.scene-editor-actions li strong{display:block}.scene-editor-actions li strong{font-size:11px}.scene-editor-actions li small{margin-top:3px;color:#8c96a1;font-size:9px}.scene-action-tools{display:flex;gap:4px}.scene-action-tools button{min-height:30px;border:1px solid #e5e9ed;border-radius:8px;background:#fff;padding:5px 8px;color:#687480;font-size:9px;cursor:pointer}.scene-action-tools button:last-child{color:#c65342}.scene-action-tools button:disabled{opacity:.35}.scene-editor-empty{border-radius:10px;background:#fafbfc;padding:20px;color:#8b96a2;font-size:10px;text-align:center}.scene-action-composer{margin-top:16px;background:#fafbfc}.scene-composer-state{margin:12px 0;border-radius:9px;background:#f1f4f7;padding:10px;color:#788390;font-size:10px}.scene-composer-state.error{background:#fff2ee;color:#bd5532}.scene-kind-tabs{display:flex;gap:7px;margin:14px 0}.scene-kind-tabs button{border:1px solid #e1e6eb;border-radius:9px;background:#fff;padding:8px 13px;color:#727d88;font-size:10px;cursor:pointer}.scene-kind-tabs button.selected{border-color:#ffc5aa;background:#fff3ed;color:#e45f2b}.scene-kind-tabs button:disabled{opacity:.45}.scene-property-list{display:grid;gap:8px;margin-bottom:10px}.scene-property-list>div{border:1px solid #e4e9ed;border-radius:10px;background:#fff;padding:10px}.scene-property-list>div>div:first-child{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.scene-property-list strong{font-size:10px}.scene-property-list button{border:0;background:transparent;color:#c45240;font-size:9px;cursor:pointer}.scene-add-property{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.scene-add-property button:disabled{opacity:.45}.scene-range-value{display:grid;grid-template-columns:minmax(100px,1fr) 90px auto;align-items:center;gap:8px}.scene-range-value input[type=range]{padding:0}.scene-range-value span{color:#7a8590;font-size:10px}.scene-composer-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}.scene-composer-actions button,.scene-editor footer button{border:1px solid #dfe4e9;border-radius:9px;background:#fff;padding:9px 15px;font-size:11px;font-weight:700;cursor:pointer}.scene-composer-actions button.primary,.scene-editor footer button.primary{border-color:var(--orange);background:var(--orange);color:#fff}.scene-composer-actions button:disabled,.scene-editor footer button:disabled{cursor:not-allowed;opacity:.48}.scene-editor-error{margin:0 28px 12px;border:1px solid #ffd4c3;border-radius:10px;background:#fff5f0;padding:11px 13px;color:#bc4f28;font-size:10px}.scene-editor-state{margin:30px;border-radius:12px;background:#f7f8fa;padding:24px;color:#7f8a96;font-size:12px;text-align:center}.scene-editor-state.error{background:#fff5f0;color:#bd512d}.scene-editor footer{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding:16px 28px}.scene-editor footer>div{display:flex;gap:8px;flex:none}@media(max-width:760px){.scene-editor-bg{align-items:end;padding:0}.scene-editor{width:100%;max-height:94dvh;border-radius:20px 20px 0 0}.scene-editor>header{padding:20px 18px 16px}.scene-editor-scroll{padding:18px}.scene-editor-actions li{grid-template-columns:28px minmax(0,1fr)}.scene-action-tools{grid-column:2;flex-wrap:wrap}.scene-editor-error{margin:0 18px 10px}.scene-editor footer{align-items:stretch;flex-direction:column;padding:13px 18px calc(13px + env(safe-area-inset-bottom))}.scene-editor footer>div{display:grid;grid-template-columns:1fr 1.4fr}.scene-editor footer button{width:100%}}@media(max-width:420px){.scene-editor>header h2{font-size:19px}.scene-range-value{grid-template-columns:1fr 80px auto}.scene-action-composer,.scene-editor-actions{padding:14px}.scene-editor-section-title{align-items:flex-start}.scene-editor-section-title>button{white-space:nowrap}}.scene-device-picker{display:grid;gap:10px}.scene-device-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.scene-device-result-title{display:flex;align-items:center;justify-content:space-between;margin-top:2px;color:#66717d;font-size:11px;font-weight:700}.scene-device-result-title small{color:#98a1aa;font-size:9px;font-weight:500}.scene-device-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:220px;overflow:auto;padding:1px}.scene-device-options>button{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:9px;min-width:0;border:1px solid #e3e8ec;border-radius:11px;background:#fff;padding:9px;text-align:left;cursor:pointer}.scene-device-options>button:hover{border-color:#ffc5aa;background:#fffaf7}.scene-device-options>button.selected{border-color:#ff9c71;background:#fff3ed;box-shadow:0 0 0 2px #ff6b2c12}.scene-device-options>button>span:nth-child(2){min-width:0}.scene-device-options small,.scene-device-options strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.scene-device-options strong{color:#38434e;font-size:10px}.scene-device-options small{margin-top:3px;color:#929ca6;font-size:8px}.scene-device-options i{color:#a3abb4;font-size:12px;font-style:normal}.scene-device-options .selected i{color:#e65f28}.scene-device-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:#f5f7f9;color:#6f7a85;font-size:14px}.scene-device-options .selected .scene-device-icon{background:#ffe7dc;color:#e65f28}.scene-device-empty{border:1px dashed #dfe4e9;border-radius:10px;padding:18px;color:#8b96a2;font-size:10px;text-align:center}@media(max-width:520px){.scene-device-filters,.scene-device-options{grid-template-columns:1fr}.scene-device-options{max-height:260px}}.scene-editor-action-groups,.scene-editor-action-rooms{display:grid;gap:15px}.scene-editor-action-groups>section{border:1px solid #e9edf1;border-radius:12px;background:#fafbfc;padding:12px}.scene-editor-action-groups>section>header,.scene-editor-action-rooms>section>header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px;padding:0 2px}.scene-editor-action-groups>section>header strong{color:#4f5b67;font-size:10px}.scene-editor-action-groups>section>header small,.scene-editor-action-rooms>section>header small{color:#929ca8;font-size:9px}.scene-editor-action-rooms>section{border-left:2px solid #ffe0d2;padding-left:10px}.scene-editor-action-rooms>section>header strong{font-size:10px}.scene-editor-actions li.batch>b{background:#fff0e9;color:#e65f28}.scene-editor-actions li.batch>div>small{max-width:420px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.scene-device-help{margin:0;border-radius:9px;background:#fff5ef;padding:8px 10px;color:#a66243;font-size:9px;line-height:1.5}.scene-group-tools{display:flex;align-items:center;gap:8px}.scene-group-tools button{min-height:28px;border:1px solid #f1c9b7;border-radius:8px;background:#fff5ef;padding:4px 9px;color:#d95f2d;font-size:9px;font-weight:700;cursor:pointer}.scene-kind-tabs small{align-self:center;color:#8c96a2;font-size:9px}.scene-action-composer>.scene-device-help{margin:10px 0}.scene-device-options>button[aria-selected=true] .scene-device-icon{background:#ffe7dc;color:#e65f28}.scene-editor-page{width:100%;max-height:none;min-height:520px;border-radius:18px;box-shadow:none}.scene-editor-page>header{align-items:center;justify-content:flex-start}.scene-editor-page>header>button.scene-page-back{width:auto;height:auto;flex:none;border:1px solid #e2e7eb;background:#fff;padding:9px 12px;color:#687480;font-size:10px;font-weight:700}.scene-editor-page .scene-editor-scroll{overflow:visible}.scene-editor-page .scene-action-composer{margin-top:0}.scene-editor-page .scene-action-page{border:0;background:transparent;padding:0}.scene-editor-page .scene-device-options{max-height:340px}@media(max-width:760px){.scene-editor-page{min-height:0;border-radius:18px}.scene-editor-page>header{align-items:flex-start;flex-direction:column;gap:13px}.scene-editor-page .scene-editor-scroll{padding:18px}.scene-editor-page .scene-action-page{padding:0}.scene-editor-page footer{padding-bottom:13px}}.scene-composer-mode{display:flex;gap:6px;margin:0 0 16px;padding:4px;border-radius:11px;background:#f1f3f5}.scene-composer-mode button{flex:1;border:0;border-radius:8px;background:transparent;padding:9px;color:#78838e;font-size:10px;font-weight:700;cursor:pointer}.scene-composer-mode button.selected{background:#fff;color:#df5e2b;box-shadow:0 2px 8px #1f293714}.scene-composer-mode button:disabled{cursor:not-allowed;opacity:.42}.scene-single-editor{display:grid;grid-template-columns:minmax(190px,.75fr) minmax(260px,1.25fr);gap:12px}.scene-single-editor>section{min-width:0;border:1px solid #e5e9ed;border-radius:12px;background:#fff;padding:12px}.scene-single-editor>section>header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.scene-single-editor>section>header strong{font-size:11px}.scene-single-editor>section>header small{color:#919ba5;font-size:8px}.scene-single-filters{grid-template-columns:1fr;margin-bottom:10px}.scene-single-device-fixed{display:flex;align-items:center;gap:10px}.scene-single-device-fixed small,.scene-single-device-fixed strong{display:block}.scene-single-device-fixed strong{font-size:11px}.scene-single-device-fixed small{margin-top:3px;color:#8d98a2;font-size:8px}.scene-official-actions>div[role=listbox]{display:grid;gap:7px;max-height:330px;overflow:auto}.scene-official-actions button{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #e5e9ed;border-radius:9px;background:#fff;padding:10px;text-align:left;cursor:pointer}.scene-official-actions button.selected{border-color:#ff9c71;background:#fff4ee}.scene-official-actions button span{min-width:0}.scene-official-actions button small,.scene-official-actions button strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.scene-official-actions button strong{font-size:10px}.scene-official-actions button small{margin-top:3px;color:#909aa4;font-size:8px}.scene-official-actions button i{color:#e4612d;font-style:normal}.scene-single-values{grid-column:1/-1}.scene-single-values>div+div{margin-top:10px}.scene-single-values label>strong{border-radius:8px;background:#f5f7f8;padding:9px;font-size:10px}@media(max-width:700px){.scene-single-editor{grid-template-columns:1fr}.scene-single-values{grid-column:auto}}.automation-center,.automation-detail,.automation-editor{min-height:620px;border:1px solid var(--line);border-radius:20px;background:#fff;padding:24px}.automation-center>header,.automation-detail>header,.automation-editor>header{display:flex;align-items:center;justify-content:space-between;gap:16px}.automation-center>header span,.automation-editor>header span{font-size:9px;font-weight:800;letter-spacing:.16em;color:var(--orange)}.automation-center h2,.automation-editor h2{margin:4px 0;font-size:22px}.automation-center>header p{margin:0;color:var(--muted);font-size:10px}.automation-center>header>button,.automation-detail .primary,.automation-editor .primary{border:0;border-radius:11px;background:var(--orange);color:#fff;padding:11px 15px;font-size:10px;font-weight:700}.automation-center button:disabled,.automation-editor button:disabled{opacity:.5;cursor:not-allowed}.automation-empty,.automation-notice,.automation-state{margin:20px 0;border-radius:13px;background:#f7f8fa;padding:15px;color:#74808d;font-size:10px}.automation-state.error{background:#fff3ef;color:#b14e2d}.automation-state button{margin-left:8px;border:0;background:transparent;color:var(--orange)}.automation-empty{text-align:center;padding:55px}.automation-empty>span{display:block;font-size:30px;color:#c5cbd2}.automation-empty strong{display:block;margin:10px}.automation-empty p{margin:0}.automation-group{margin-top:24px}.automation-group>header{display:flex;justify-content:space-between;margin-bottom:10px}.automation-group>header strong{font-size:12px}.automation-group>header small{color:var(--muted);font-size:9px}.automation-group>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.automation-card{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:start;gap:11px;border:1px solid var(--line);border-radius:15px;background:#fff;padding:16px;text-align:left;cursor:pointer}.automation-card:hover{border-color:#ffc5aa;box-shadow:0 9px 24px #24303d0c}.automation-card>div{min-width:0}.automation-card strong{display:block;font-size:11px}.automation-card p,.automation-card small{display:block;margin:4px 0 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#7d8792;font-size:8px}.automation-card p{color:#a1a9b2}.automation-card>b{color:#a8b0ba}.automation-status{width:30px;height:18px;border-radius:20px;background:#dfe3e8;padding:2px}.automation-status i{display:block;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 4px #0002}.automation-status.on{background:#42bd7d}.automation-status.on i{transform:translateX(12px)}.automation-detail>header>button,.automation-editor>header>button{border:0;background:transparent;color:#717c88;font-size:10px}.automation-detail-title{display:flex;align-items:center;gap:15px;margin:28px 0}.automation-detail-title>span{width:50px;height:50px;display:grid;place-items:center;border-radius:15px;background:#fff0e8;color:var(--orange);font-size:23px}.automation-detail-title small{color:#2b9d68}.automation-detail-title h2{margin:3px 0;font-size:24px}.automation-detail-title p{margin:0;color:var(--muted);font-size:10px}.automation-flow{display:grid;gap:10px;max-width:660px}.automation-flow>section{border:1px solid var(--line);border-radius:16px;padding:16px}.automation-flow>section>header{display:flex;gap:10px;align-items:center;margin-bottom:12px}.automation-flow>section>header>span{width:38px;height:26px;display:grid;place-items:center;border-radius:9px;background:#fff0e8;color:var(--orange);font-size:9px;font-weight:800}.automation-flow>section>header small,.automation-flow>section>header strong{display:block}.automation-flow>section>header small{margin-top:3px;color:var(--muted);font-size:8px}.automation-flow-row{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:10px;border-top:1px solid #f0f2f4;padding:12px 2px}.automation-flow-row>i{width:30px;height:30px;display:grid;place-items:center;border-radius:10px;background:#f5f6f8;font-style:normal}.automation-flow-row small,.automation-flow-row strong{display:block;font-size:10px}.automation-flow-row small{margin-top:3px;color:var(--muted);font-size:8px}.automation-flow-row em{font-style:normal;font-size:7px;color:#8b949e}.automation-flow-link{padding-left:30px;color:#c4cad1}.automation-editor>header{justify-content:flex-start}.automation-editor>header>div{margin:auto}.automation-editor>nav{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin:26px 0}.automation-editor>nav button{display:grid;justify-items:center;gap:5px;border:0;background:transparent;color:#9ca4ae;font-size:8px}.automation-editor>nav i{width:25px;height:25px;display:grid;place-items:center;border-radius:50%;background:#edf0f3;font-style:normal}.automation-editor>nav .active,.automation-editor>nav .done{color:var(--orange)}.automation-editor>nav .active i,.automation-editor>nav .done i{background:#fff0e8}.automation-editor-body{max-width:650px;margin:auto;min-height:360px}.automation-field{display:grid;gap:8px}.automation-field span,.automation-time span{font-size:10px;color:#66717d}.automation-add-action select,.automation-field input,.automation-time input,.automation-value-input{border:1px solid #e2e6ea;border-radius:11px;background:#fff;padding:12px;font-size:11px}.automation-enable{display:flex;justify-content:space-between;align-items:center;margin-top:18px;border:1px solid var(--line);border-radius:14px;padding:15px}.automation-enable small,.automation-enable strong{display:block}.automation-enable small{margin-top:4px;color:var(--muted);font-size:8px}.automation-enable>button{width:40px;height:23px;border:0;border-radius:20px;background:#dce1e6;padding:3px}.automation-enable>button i{display:block;width:17px;height:17px;border-radius:50%;background:#fff}.automation-enable>button.on{background:var(--orange)}.automation-enable>button.on i{transform:translateX(17px)}.automation-section-copy{margin-bottom:16px}.automation-section-copy strong{font-size:14px}.automation-section-copy p{color:#7f8994;font-size:9px;line-height:1.7}.automation-time{display:grid;gap:8px;border:1px solid var(--line);border-radius:14px;padding:15px}.automation-readonly{border:1px dashed #dfe4e9;border-radius:14px;background:#fafbfc;padding:18px}.automation-readonly p{margin-bottom:0;color:var(--muted);font-size:9px}.automation-weekdays{display:grid;grid-template-columns:repeat(7,1fr);gap:7px}.automation-weekdays button{border:1px solid var(--line);border-radius:11px;background:#fff;padding:12px 4px;font-size:9px}.automation-weekdays button.selected{border-color:#ff9f72;background:#fff3ed;color:#e65f27}.automation-period{display:grid;gap:4px;margin-top:17px;border-radius:13px;background:#f7f8fa;padding:14px}.automation-period small,.automation-period span{font-size:8px;color:var(--muted)}.automation-action-list{display:grid;gap:9px}.automation-action-list>div{display:grid;grid-template-columns:28px 1fr auto;align-items:center;gap:10px;border:1px solid var(--line);border-radius:13px;padding:12px}.automation-action-list>div.readonly{border-style:dashed}.automation-action-list b{width:25px;height:25px;display:grid;place-items:center;border-radius:8px;background:#fff0e8;color:var(--orange);font-size:9px}.automation-action-list small,.automation-action-list strong{display:block;font-size:10px}.automation-action-list small{margin-top:3px;color:var(--muted);font-size:8px}.automation-action-list>div>button{border:0;background:transparent;color:#bb6542;font-size:8px}.automation-add-action{display:grid;grid-template-columns:120px 1fr auto;gap:8px;margin-top:14px}.automation-add-action button{border:0;border-radius:10px;background:#26313d;color:#fff;padding:0 12px;font-size:9px}.automation-value-switch{margin-top:7px!important;border:0!important;border-radius:10px!important;background:#eef1f4!important;padding:5px 8px!important;color:#68737e!important}.automation-value-switch.on{background:#e9f8f0!important;color:#27845a!important}.automation-value-input{margin-top:7px;padding:6px;width:110px}.automation-review{text-align:center;padding:20px}.automation-review>span{display:grid;place-items:center;margin:auto;width:55px;height:55px;border-radius:17px;background:#fff0e8;color:var(--orange);font-size:24px}.automation-review h3{font-size:20px;margin:12px 0 5px}.automation-review p,.automation-save-note{color:var(--muted);font-size:9px}.automation-review-flow{display:grid;gap:8px}.automation-review-flow>div{display:grid;grid-template-columns:48px 1fr;gap:12px;border:1px solid var(--line);border-radius:13px;padding:14px}.automation-review-flow b{color:var(--orange)}.automation-save-note{text-align:center;margin-top:18px}.automation-editor>footer{display:flex;justify-content:flex-end;gap:9px;border-top:1px solid var(--line);margin-top:20px;padding-top:16px}.automation-editor>footer button{border:1px solid var(--line);border-radius:10px;background:#fff;padding:10px 15px;font-size:9px}.automation-trigger-mode{display:flex;align-items:center;gap:7px;margin-bottom:14px}.automation-trigger-mode button{border:1px solid var(--line);border-radius:10px;background:#fff;padding:9px 12px;color:#66717d;font-size:9px}.automation-trigger-mode button.selected{border-color:#ff9f72;background:#fff3ed;color:#e65f27}.automation-trigger-mode small{margin-left:auto;color:var(--muted);font-size:8px}.automation-trigger-kinds{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.automation-trigger-kind{overflow:hidden;border:1px solid var(--line);border-radius:14px;background:#fafbfc}.automation-trigger-kind>header{display:grid;grid-template-columns:35px 1fr auto;align-items:center;gap:10px;padding:13px}.automation-trigger-kind>header>i{width:33px;height:33px;display:grid;place-items:center;border-radius:11px;background:#fff0e8;color:var(--orange);font-style:normal}.automation-trigger-kind>header small,.automation-trigger-kind>header strong{display:block}.automation-trigger-kind>header strong{font-size:10px}.automation-trigger-kind>header small{margin-top:3px;color:var(--muted);font-size:8px}.automation-trigger-kind>header>button{border:1px solid var(--line);border-radius:9px;background:#fff;padding:7px 10px;font-size:8px}.automation-trigger-kind>header>button.selected{border-color:#ff9f72;background:#fff3ed;color:#e65f27}.automation-trigger-kind .automation-time{margin:0 12px 12px;background:#fff}.automation-trigger-templates{display:grid;gap:6px;padding:0 12px 12px}.automation-trigger-templates>button{display:grid;grid-template-columns:1fr auto;gap:3px 8px;border:1px solid #e7eaee;border-radius:10px;background:#fff;padding:10px;text-align:left}.automation-trigger-templates>button span{font-size:9px}.automation-trigger-templates>button small{color:var(--muted);font-size:7px}.automation-trigger-templates>button b{grid-column:2;grid-row:1/3;align-self:center;color:#a1a9b2}.automation-trigger-templates>button.selected{border-color:#ff9f72;background:#fff7f3}.automation-trigger-templates>button.selected b{color:var(--orange)}.automation-editor-single>header{position:sticky;top:0;z-index:2;border-bottom:1px solid var(--line);background:#fff;padding-bottom:16px}.automation-editor-single>header>div{margin:auto}.automation-editor-single .automation-editor-body{display:grid;gap:14px;max-width:760px;margin-top:20px}.automation-editor-section{border:1px solid var(--line);border-radius:16px;background:#fff;padding:18px}.automation-editor-section .automation-section-copy{display:flex;align-items:flex-start;gap:11px}.automation-editor-section .automation-section-copy>b{width:29px;height:29px;display:grid;place-items:center;flex:none;border-radius:10px;background:#fff0e8;color:var(--orange);font-size:8px}.automation-editor-section .automation-section-copy p{margin:4px 0 0}.automation-editor-summary{background:#fafbfc}.automation-editor-single>footer{position:sticky;bottom:0;z-index:2;background:#fff;padding:15px 0 2px}@media(max-width:760px){.automation-center,.automation-detail,.automation-editor{min-height:calc(100vh - 180px);border-radius:15px;padding:16px}.automation-group>div,.automation-trigger-kinds{grid-template-columns:1fr}.automation-center>header{align-items:flex-start}.automation-add-action{grid-template-columns:1fr}.automation-add-action button{padding:11px}.automation-weekdays{grid-template-columns:repeat(4,1fr)}.automation-trigger-mode{align-items:stretch;flex-wrap:wrap}.automation-trigger-mode small{width:100%;margin:0}.automation-editor>footer{position:sticky;bottom:64px;background:#fff;padding-bottom:calc(8px + env(safe-area-inset-bottom))}.automation-editor-section{padding:14px}}.automation-trigger-kinds{grid-template-columns:repeat(3,minmax(0,1fr))}.automation-trigger-kinds>button{display:grid;grid-template-columns:35px minmax(0,1fr) auto;align-items:center;gap:9px;border:1px solid var(--line);border-radius:13px;background:#fff;padding:12px;text-align:left}.automation-device-picker>button>i,.automation-trigger-kinds>button>i{width:33px;height:33px;display:grid;place-items:center;border-radius:11px;background:#fff0e8;color:var(--orange);font-style:normal}.automation-device-picker>button small,.automation-device-picker>button strong,.automation-trigger-kinds>button small,.automation-trigger-kinds>button strong{display:block}.automation-device-picker>button strong,.automation-trigger-kinds>button strong{font-size:9px}.automation-device-picker>button small,.automation-trigger-kinds>button small{margin-top:3px;color:var(--muted);font-size:7px}.automation-device-picker>button>b,.automation-trigger-kinds>button>b{color:#aab2bb}.automation-trigger-kinds>button.selected{border-color:#ff9f72;background:#fff7f3}.automation-selected-panel{border:1px solid #ffd9c7;border-radius:14px;background:#fffaf7;padding:13px}.automation-selected-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.automation-selected-heading small,.automation-selected-heading strong{display:block}.automation-selected-heading strong{font-size:11px}.automation-selected-heading small{margin-top:3px;color:var(--muted);font-size:8px}.automation-selected-heading>button{min-height:34px;border:0;border-radius:10px;background:var(--orange);padding:0 12px;color:#fff;font-size:8px;font-weight:700}.automation-selected-panel .automation-trigger-mode{margin:10px 0 0;padding-top:10px;border-top:1px solid #ffe7dc}.automation-condition-empty{margin-top:10px;border:1px dashed #eadfd9;border-radius:10px;background:#fff;padding:13px;color:#8b929a;font-size:8px;text-align:center}.automation-trigger-builder{margin-top:10px;border-radius:14px;background:#f7f8fa;padding:14px}.automation-builder-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:11px}.automation-builder-heading strong{font-size:10px}.automation-builder-heading small{color:var(--muted);font-size:8px}.automation-trigger-config{margin-top:10px;border:1px solid #e7eaee;border-radius:12px;background:#fff;padding:13px}.automation-trigger-config .automation-readonly{background:#fff}.automation-config-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:11px}.automation-config-title small,.automation-config-title strong{display:block}.automation-config-title strong{font-size:11px}.automation-config-title small{margin-top:3px;color:var(--muted);font-size:8px}.automation-config-title button{border:1px solid var(--line);border-radius:9px;background:#fff;padding:7px 10px;font-size:8px}.automation-config-title button.selected{border-color:#ff9f72;background:#fff3ed;color:#e65f27}.automation-trigger-config .automation-time{background:#fff}.automation-trigger-config .automation-trigger-templates{padding:0}.automation-device-picker{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.automation-device-picker>button{display:grid;grid-template-columns:35px minmax(0,1fr) auto;align-items:center;gap:9px;border:1px solid #e7eaee;border-radius:11px;background:#fff;padding:10px;text-align:left}.automation-selected-triggers{display:grid;gap:7px;margin:10px 0 0;padding:0;list-style:none}.automation-selected-trigger{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:9px;border:1px solid #ffe0d1;border-radius:11px;background:#fff;padding:9px 10px}.automation-selected-trigger>i{width:27px;height:27px;display:grid;place-items:center;border-radius:9px;background:#fff0e8;color:var(--orange);font-size:9px;font-style:normal}.automation-selected-trigger small,.automation-selected-trigger strong{display:block}.automation-selected-trigger strong{font-size:9px;overflow-wrap:anywhere}.automation-selected-trigger small{margin-top:3px;color:var(--muted);font-size:7px}.automation-selected-trigger>button{min-height:32px;border:0;background:transparent;padding:0 6px;color:#b86441;font-size:8px}.automation-date-empty{display:flex;align-items:baseline;gap:8px;border-radius:10px;background:#f7f8fa;padding:9px 11px;color:#68737e}.automation-date-empty span{font-size:9px;font-weight:600}.automation-date-empty small{font-size:8px;color:var(--muted)}.automation-capability-group{display:grid;gap:8px;margin-top:12px}.automation-capability-group:first-of-type{margin-top:0}.automation-capability-group>strong{font-size:9px;color:#66717d}.automation-discovered-capabilities{display:grid;gap:6px}.automation-discovered-capabilities>div{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #e7eaee;border-radius:10px;background:#fff;padding:10px}.automation-discovered-capabilities small,.automation-discovered-capabilities strong{display:block}.automation-discovered-capabilities strong{font-size:9px}.automation-discovered-capabilities small{margin-top:3px;color:var(--muted);font-size:7px}.automation-discovered-capabilities em{flex:none;border-radius:8px;background:#edf7f2;padding:5px 7px;color:#28855b;font-size:7px;font-style:normal}.automation-capability-note{margin-top:9px;border-radius:10px;background:#fff8ed;padding:10px;color:#8c6737;font-size:8px;line-height:1.6}.automation-review-page>header{justify-content:flex-start;border-bottom:1px solid var(--line);padding-bottom:16px}.automation-review-page>header>div{margin:auto}.automation-review-page .automation-editor-body{max-width:680px;margin-top:24px}.automation-review-heading{display:flex;align-items:center;gap:14px;margin-bottom:16px}.automation-review-heading>span{width:46px;height:46px;display:grid;place-items:center;border-radius:14px;background:#eaf8f1;color:#2d9b68;font-weight:800}.automation-review-heading h3{margin:0;font-size:20px}.automation-review-heading p{margin:4px 0 0;color:var(--muted);font-size:9px}.automation-review-flow{gap:11px}.automation-review-flow>section{border:1px solid var(--line);border-radius:15px;padding:15px}.automation-review-flow>section>header{display:flex;align-items:center;gap:11px;margin-bottom:7px}.automation-review-flow>section>header>b{width:42px;height:28px;display:grid;place-items:center;border-radius:9px;background:#fff0e8}.automation-review-flow>section>header small,.automation-review-flow>section>header strong{display:block}.automation-review-flow>section>header small{margin-top:2px;color:var(--muted);font-size:8px}.automation-review-row{display:grid;grid-template-columns:28px 1fr;align-items:center;gap:10px;border-top:1px solid #f0f2f4;padding:11px 2px}.automation-review-row>i{width:25px;height:25px;display:grid;place-items:center;border-radius:8px;background:#f4f6f8;font-style:normal;font-size:8px}.automation-review-row small,.automation-review-row strong{display:block;font-size:9px}.automation-review-row small{margin-top:3px;color:var(--muted);font-size:8px}.automation-value-readonly{display:block;margin-top:7px;color:#7d8792;font-size:8px}@media(max-width:760px){.automation-device-picker,.automation-trigger-kinds{grid-template-columns:1fr}.automation-selected-heading>button,.automation-selected-trigger>button{min-height:44px}.automation-selected-trigger>button{min-width:44px}.automation-date-empty{align-items:flex-start;flex-direction:column;gap:3px}.automation-review-page .automation-editor-body{margin-top:16px}.automation-review-heading h3{font-size:17px}}.automation-flow-block{border:1px solid var(--line);border-radius:16px;padding:16px;background:#fff}.automation-flow-block>header{display:flex;gap:10px;align-items:center;margin-bottom:12px}.automation-flow-block>header>span{width:42px;height:26px;display:grid;place-items:center;border-radius:9px;font-size:9px;font-weight:800}.automation-flow-block>header>span.condition-span{background:#eef3fc;color:#2b6cb0}.automation-flow-block>header>span.true-span{background:#e8f8f0;color:#238636}.automation-flow-block>header>span.false-span{background:#fff0ed;color:#d9534f}.automation-flow-block>header>span.time-span{background:#f5f0fb;color:#7030a0}.automation-mode-badge{display:inline-block;margin-top:3px;padding:2px 7px;border-radius:6px;background:#f0f4f8;color:#506070;font-size:8px;font-weight:600}.automation-sub-device{display:block;margin-top:2px;color:#88929e;font-size:8px}.automation-flow-empty-cond{padding:12px 10px;border-radius:10px;background:#f9fafb;color:#8a94a0;font-size:9px;text-align:center}.automation-branches-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.automation-flow-block.branch-true{border-color:#d0eedb;background:#fbfffd}.automation-flow-block.branch-false{border-color:#ffe4dd;background:#fffdfc}.automation-flow-block.time-block{border-color:#ebdff5;background:#fdfaff}.automation-effective-preview{display:flex;flex-direction:column;gap:8px;font-size:9px;color:#6d7782}.automation-basic-grid{display:grid;grid-template-columns:1fr auto;gap:16px;align-items:center}.automation-field-toggle{display:grid;gap:8px}.automation-field-toggle>span{color:#66717d;font-size:10px;font-weight:700}.automation-status-btn{min-height:40px;padding:8px 16px;border-radius:10px;border:1px solid #dfe4e9;font-size:11px;font-weight:700;cursor:pointer}.automation-status-btn.on{border-color:#34a853;background:#e6f4ea;color:#137333}.automation-status-btn.off{border-color:#dadce0;background:#f1f3f4;color:#5f6368}.automation-builder-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid #f0f2f4}.automation-builder-head strong{font-size:10px;color:#495057}.automation-builder-head button{border:0;background:transparent;color:#7a869a;font-size:9px;cursor:pointer}.automation-selected-empty{padding:14px;border-radius:10px;background:#f9fafb;color:#94a0ab;font-size:9px;text-align:center}.automation-category-box{margin-top:14px;border:1px solid #e7eaee;border-radius:12px;padding:12px;background:#fcfdfe}.automation-category-title{margin-bottom:9px;font-size:9px;color:#5c6874}.automation-category-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}.automation-category-chips button{padding:7px 12px;border:1px solid #dcdfe4;border-radius:20px;background:#fff;color:#55616d;font-size:9px;font-weight:600;cursor:pointer}.automation-category-chips button.selected{border-color:#ff9f72;background:#fff3ed;color:#e65f27}.automation-cat-content{margin-top:10px;border-top:1px dashed #e4e7eb;padding-top:12px}.automation-device-cond-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:8px}.automation-device-cond-list button{padding:8px 10px;border:1px solid #e2e6ea;border-radius:8px;background:#fff;text-align:left;font-size:9px;cursor:pointer}.automation-device-cond-list button:hover{border-color:#ffcaa6;background:#fffaf6}.automation-weather-options{display:flex;flex-wrap:wrap;gap:8px}.automation-weather-options button{padding:8px 12px;border:1px solid #e0e4e8;border-radius:10px;background:#fff;font-size:9px;cursor:pointer}.automation-weather-options button:hover{border-color:#ff9f72;color:#e65f27}.automation-time-picker-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.automation-time-picker-row label{display:grid;gap:4px}.automation-time-picker-row label>span{font-size:8px;color:#788492}.automation-time-picker-row input[type=time]{padding:6px 8px;border:1px solid #dcdfe4;border-radius:8px;font-size:11px}.primary-pill{padding:8px 14px;border:0;border-radius:9px;background:var(--orange);color:#fff;font-size:9px;font-weight:700;cursor:pointer}.automation-action-tools{display:flex;gap:4px;align-items:center}.automation-action-tools button{min-width:26px;height:26px;border:1px solid #e5e9ed;border-radius:6px;background:#fff;color:#687480;font-size:9px;cursor:pointer}.automation-action-tools button:last-child{color:#c65342}.automation-action-tools button:disabled{opacity:.35;cursor:not-allowed}.automation-else-section{border-left:3px solid #ff9f72;background:#fffcfb}.false-action-row{border-color:#ffe8e0}.false-badge{background:#fff0ed!important;color:#d9534f!important}.automation-else-empty{padding:14px;border-radius:10px;background:#fff8f6;color:#a87d72;font-size:9px;text-align:center}.automation-effective-controls{display:grid;gap:12px}.automation-schedule-sync-note{margin-top:10px;border-radius:10px;background:#eef6fc;padding:10px;color:#205081;font-size:9px}.automation-schedule-sync-note strong{display:block}.automation-schedule-sync-note small{display:block;margin-top:3px;color:#4f7a9d}.automation-review-empty{padding:10px;color:#9aa5b1;font-size:9px}@media(max-width:760px){.automation-basic-grid,.automation-branches-grid,.automation-device-cond-list{grid-template-columns:1fr}}.automation-selected-trigger.editing{display:block;padding:12px;border-color:#ff9f72;background:#fffdfa}.automation-selected-info{display:grid;gap:3px;min-width:0}.automation-selected-meta{display:flex;align-items:center;flex-wrap:wrap;gap:4px}.automation-selected-actions{display:flex;align-items:center;gap:6px}.automation-selected-actions>button{min-height:32px;border:1px solid #ffe0d1;border-radius:8px;background:#fff;padding:0 8px;color:#b86441;font-size:8px;cursor:pointer}.automation-selected-actions>button.automation-btn-edit{border-color:#d4e2f4;color:#2b6cb0;background:#f5f9ff}.automation-selected-actions>button:hover{filter:brightness(.96)}.automation-btn-edit{min-height:30px;border:1px solid #c7d9ec;border-radius:8px;background:#f4f8fd;color:#28639e;font-size:8px;font-weight:600;padding:4px 8px;cursor:pointer}.automation-btn-edit:hover{background:#e7f0fa}.automation-room-tag{background:#eef2f6;color:#4a5568}.automation-room-tag,.automation-tag{display:inline-block;padding:2px 6px;border-radius:5px;font-size:7px;font-weight:700;margin-right:4px}.automation-tag.tag-device{background:#ebf5ff;color:#2b6cb0}.automation-tag.tag-schedule{background:#faf0ff;color:#6b46c1}.automation-tag.tag-weather{background:#fffaf0;color:#c05621}.automation-tag.tag-time{background:#f0fff4;color:#276749}.automation-dev-name{color:#1a202c;font-weight:700}.automation-item-label{color:#2d3748;font-weight:600}.automation-sep{margin:0 4px;color:#a0aec0}.automation-selected-sub{margin-top:3px;color:var(--muted);font-size:7px;display:block}.automation-inline-editor{display:grid;gap:10px;margin-top:10px;padding-top:10px;border-top:1px dashed #ffd9c7}.automation-inline-field{display:grid;gap:4px}.automation-inline-field>span{font-size:8px;color:#718096;font-weight:600}.automation-inline-field input[type=text]{padding:7px 10px;border:1px solid #cbd5e0;border-radius:8px;font-size:10px;background:#fff}.automation-inline-dev{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:6px 10px;border-radius:8px;background:#f7fafc;font-size:8px}.automation-switch-btn{padding:4px 8px;border:1px solid #cbd5e0;border-radius:6px;background:#fff;color:#2b6cb0;font-size:8px;cursor:pointer}.automation-inline-actions{display:flex;gap:8px;margin-top:8px}.automation-btn-save{padding:6px 14px;border:0;border-radius:8px;background:var(--orange);color:#fff;font-size:9px;font-weight:700;cursor:pointer}.automation-btn-cancel{padding:6px 12px;border:1px solid #cbd5e0;border-radius:8px;background:#fff;color:#718096;font-size:9px;cursor:pointer}.automation-quick-presets{display:flex;gap:5px;flex-wrap:wrap;margin-top:4px}.automation-quick-presets button{padding:3px 8px;border:1px solid #e2e8f0;border-radius:6px;background:#edf2f7;color:#4a5568;font-size:7px;cursor:pointer}.automation-quick-presets button:hover{background:#e2e8f0}.automation-flow-content{display:grid;gap:2px}.automation-flow-meta{display:flex;align-items:center;flex-wrap:wrap;gap:4px}.automation-flow-tag{display:inline-block;padding:2px 6px;border-radius:5px;font-size:7px;font-weight:700;margin-right:4px;background:#f0f4f8;color:#4a5568}.automation-flow-sub{font-size:8px;color:var(--muted);display:block}.automation-sun-builder{display:grid;gap:12px;margin-top:10px;border:1px solid #e7eaee;border-radius:12px;background:#fff;padding:14px}.automation-sun-builder-inline{display:grid;gap:10px;padding:10px;border-radius:10px;background:#fbfcfe;border:1px solid #e9eef5}.automation-sun-field{display:grid;gap:6px}.automation-sun-label{font-size:8px;font-weight:700;color:#4a5568}.automation-sun-offset-pills,.automation-sun-repeat-pills,.automation-sun-type-pills{display:flex;flex-wrap:wrap;gap:7px}.automation-sun-offset-pills button,.automation-sun-repeat-pills button,.automation-sun-type-pills button{padding:7px 14px;border:1px solid var(--line);border-radius:9px;background:#fff;color:#4a5568;font-size:9px;font-weight:600;cursor:pointer;transition:all .15s}.automation-sun-offset-pills button.selected,.automation-sun-repeat-pills button.selected,.automation-sun-type-pills button.selected{border-color:#ff9f72;background:#fff3ed;color:#e65f27;font-weight:700}.automation-sun-minutes-quick{display:flex;flex-wrap:wrap;gap:6px}.automation-sun-minutes-quick button{padding:5px 10px;border:1px solid #dce2e8;border-radius:8px;background:#fff;color:#5a6674;font-size:8px;cursor:pointer}.automation-sun-minutes-quick button.selected{border-color:#ff9f72;background:#fff3ed;color:#e65f27;font-weight:700}.automation-sun-custom-minutes{display:flex;align-items:center;gap:6px;margin-top:4px;font-size:8px;color:#718096}.automation-sun-custom-minutes input[type=number]{width:70px;padding:5px 8px;border:1px solid #cbd5e0;border-radius:7px;font-size:9px;text-align:center}.automation-sun-weekdays{display:flex;flex-wrap:wrap;gap:5px;margin-top:6px}.automation-sun-weekdays button{padding:5px 8px;border:1px solid #e2e8f0;border-radius:7px;background:#fff;color:#64748b;font-size:8px;cursor:pointer}.automation-sun-weekdays button.selected{border-color:#ff9f72;background:#fff3ed;color:#e65f27;font-weight:700}.automation-sun-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;padding-top:10px;border-top:1px dashed #e2e8f0}.automation-sun-preview{font-size:8px;color:#4a5568}.automation-sun-preview strong{margin-left:4px;color:var(--orange);font-size:9px}.automation-sun-preview-box{padding:7px 10px;border-radius:8px;background:#fff8f5;border:1px solid #ffe6dc;color:#c05621;font-size:9px}.automation-sun-apply-btn{padding:8px 16px;border:0;border-radius:9px;background:var(--orange);color:#fff;font-size:9px;font-weight:700;cursor:pointer}.automation-sun-apply-btn:hover{filter:brightness(.95)}.automation-temp-inline-editor{display:grid;gap:10px;padding:10px;border-radius:10px;background:#fbfcfe;border:1px solid #e9eef5}.automation-temp-builder{display:grid;gap:10px;padding:12px;border:1px solid #e7eaee;border-radius:12px;background:#fff}.automation-temp-stepper{display:flex;align-items:center;gap:8px}.automation-stepper-btn{padding:6px 12px;border:1px solid #cbd5e0;border-radius:8px;background:#fff;font-size:9px;font-weight:700;cursor:pointer;color:#4a5568;transition:all .15s}.automation-stepper-btn:hover{border-color:#ff9f72;color:#e65f27;background:#fff7f3}.automation-temp-input-wrap{display:flex;align-items:center;gap:4px}.automation-temp-input-wrap input[type=number]{width:64px;padding:6px 8px;border:1px solid #cbd5e0;border-radius:8px;font-size:11px;text-align:center;font-weight:700;color:#2d3748;background:#fff}.automation-temp-input-wrap span{font-size:10px;font-weight:700;color:#718096}.automation-temp-presets{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}.automation-temp-presets button{padding:5px 10px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;font-size:8px;cursor:pointer;color:#64748b;transition:all .15s}.automation-temp-presets button:hover{border-color:#ff9f72;color:#e65f27}.automation-temp-presets button.selected{border-color:#ff9f72;background:#fff3ed;color:#e65f27;font-weight:700}.automation-weather-subtabs{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}.automation-weather-subtabs button{padding:6px 12px;border:1px solid #e2e8f0;border-radius:20px;background:#f8fafc;font-size:9px;cursor:pointer;color:#475569;transition:all .15s}.automation-weather-subtabs button:hover{background:#f1f5f9;color:#0f172a}.automation-weather-subtabs button.selected{border-color:#ff9f72;background:#fff3ed;color:#e65f27;font-weight:700}.automation-temp-apply-btn{padding:8px 16px;border:0;border-radius:9px;background:var(--orange);color:#fff;font-size:9px;font-weight:700;cursor:pointer;transition:all .15s}.automation-temp-apply-btn:hover{filter:brightness(.95)}