.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)}:root{--font-meta:11px;--font-control:12px;--font-body:13px;--font-label:14px;--font-section-title:16px;--font-page-title:clamp(28px,2.2vw,34px)}body{font-size:var(--font-body);line-height:1.5}body small{font-size:var(--font-meta)!important;line-height:1.45}body input,body select,body textarea{font-size:var(--font-body)!important}.workspace header h1{font-size:var(--font-page-title)}.activity p,.activity small,.api p,.api-title small,.brand small,.detail,.devices article>p,.home-status small,.labels,.metrics p,.metrics small,.modal>small,.mode small,.profile small,.scenes small,.site-footer a,.title p,.workspace header p{font-size:var(--font-meta)!important}.brand strong,.devices h3,.mode strong,.profile strong,.scenes strong,.settings,.sidebar nav button{font-size:var(--font-label)!important}.actions .primary,.all,.api>button,.scene-center-toolbar button,.scene-run,.title button{font-size:var(--font-control)!important}.activity strong,.auth-note b,.auth-note code,.home-status>div,.modal>p{font-size:var(--font-body)!important}.associated-device-ids code,.associated-device-ids span,.binding-description,.binding-existing>div>em,.binding-existing>div>span,.binding-existing>small,.binding-limitation,.binding-panel-heading>div>small,.binding-panel-heading>span,.binding-readonly>div>span,.binding-selector-title>small,.binding-target-hint,.capability-note,.card-binding-summary>small,.card-binding-summary>span,.channel-heading>small,.channel-smart-target>small,.channel-targets.unbound>small,.channel-targets>span,.channel-targets>strong>small,.concrete-device-card>div>small,.concrete-device-card>em,.concrete-section-label,.connected-info small,.control-sources>div>small,.control-sources>small,.device-identity small,.device-modal-head p,.empty-state p,.home-tabs small,.parent-link,.plain-load-name small,.plain-load-name>em,.qr-countdown,.qr-error strong,.qr-link,.qr-loading small,.range-control small,.readonly-note,.region-picker,.region-picker select,.room-heading span,.scan-tip,.security-note,.setting-label small,.settings-heading span,.source-channel>small,.source-identity>small,.spec-events>div>small,.spec-events>p,.spec-group>summary small,.spec-warning,.target-controller-count,.target-identity>small,.topology-summary>span,.topology-toolbar>small,.topology-tree-label,.topology-tree>button>small,.unresolved-binding>small,.unresolved-topology{font-size:var(--font-meta)!important}.action-control input,.binding-editor select,.binding-editor>label>span,.binding-existing>div>strong,.binding-panel-heading>div>strong,.binding-readonly>div>strong,.channel-smart-target>strong,.channel-targets>strong,.concrete-device-card>div>strong,.control-sources>div>strong,.device-identity strong,.device-view-switch>button,.home-tabs strong,.logout,.modal-topology>div:first-child>strong,.modal-topology>p>b,.plain-load-name strong,.qr-error button,.room-heading strong,.setting-action,.setting-row select,.source-channel>strong,.source-identity>strong,.target-identity>strong,.text-control input,.topology-tree>button>strong,.unresolved-binding>strong{font-size:var(--font-control)!important}.binding-selector-title>strong,.setting-label strong,.spec-group>summary strong{font-size:var(--font-body)!important}.binding-count,.channel-role,.dm-category,.dm-channel-siid,.dm-channel-status,.dm-eyebrow,.scene-action-batch details span,.scene-action-batch summary,.scene-action-detail>b,.scene-action-detail>span,.scene-action-empty,.scene-action-group>header small,.scene-action-room>header small,.scene-flow-title small,.scene-flow-title span,.scene-page-toolbar .scene-modal-edit,.scene-page-toolbar .scene-modal-run,.scene-page-toolbar>button,.source-role,.topology-badge,.virtual-badge{font-size:var(--font-meta)!important}.scene-device-options strong,.scene-device-result-title,.scene-editor :is(button,input,select),.scene-editor-action-groups>section>header strong,.scene-editor-action-rooms>section>header strong,.scene-editor-actions li strong,.scene-editor-page>header>button.scene-page-back,.scene-property-list strong{font-size:var(--font-control)!important}.scene-composer-state,.scene-device-empty,.scene-device-help,.scene-editor label>span,.scene-editor p,.scene-editor small,.scene-editor-empty,.scene-editor-error,.scene-editor-state,.scene-editor-warning strong,.scene-range-value span{font-size:var(--font-body)!important}.scene-editor-section-title strong{font-size:var(--font-section-title)!important}.scene-editor-actions li>b,.scene-editor-section-title>div>span,.scene-editor>header span{font-size:var(--font-meta)!important}.scene-editor>header>button{font-size:22px!important}.automation-date-empty span,.automation-field span,.automation-time span,.automation-trigger-templates>button span,:is(.automation-center,.automation-detail,.automation-editor) :is(button,input,select){font-size:var(--font-control)!important}.automation-action-list b,.automation-action-list small,.automation-capability-note,.automation-condition-empty,.automation-date-empty small,.automation-device-picker>button small,.automation-discovered-capabilities em,.automation-discovered-capabilities small,.automation-editor-section .automation-section-copy>b,.automation-editor>nav button,.automation-flow-row small,.automation-flow-row strong,.automation-flow>section>header>span,.automation-notice,.automation-period small,.automation-period span,.automation-review-row small,.automation-review-row>i,.automation-selected-trigger small,.automation-selected-trigger>i,.automation-state,.automation-trigger-kinds>button small,.automation-value-readonly,:is(.automation-center,.automation-detail,.automation-editor) :is(p,small,em){font-size:var(--font-meta)!important}.automation-action-list strong,.automation-builder-heading strong,.automation-capability-group>strong,.automation-card strong,.automation-config-title strong,.automation-device-picker>button strong,.automation-discovered-capabilities strong,.automation-enable strong,.automation-flow-row strong,.automation-review-row strong,.automation-selected-heading strong,.automation-selected-trigger strong,.automation-trigger-kind>header strong,.automation-trigger-kinds>button strong{font-size:var(--font-body)!important}.automation-group>header strong{font-size:var(--font-label)!important}.automation-section-copy strong{font-size:var(--font-section-title)!important}.automation-center>header span,.automation-editor>header span{font-size:var(--font-meta)!important}@media (max-width:760px){.sidebar nav button{font-size:var(--font-control)!important}.automation-editor>footer{bottom:0}}