/* Isolated assistant surface; existing theme and console styles are untouched. */
.zha-entry,.zha-panel,.zha-shade{font-family:"Segoe UI","PingFang SC","Microsoft YaHei",Arial,sans-serif;box-sizing:border-box}
.zha-entry{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;flex-shrink:0;padding:7px 11px;border:1px solid #cedcf7;border-radius:8px;background:#f1f5ff;color:#245be9;font-size:13px;font-weight:600;line-height:1.5;white-space:nowrap;cursor:pointer}
.zha-entry:hover{background:#e6edff;border-color:#9ab5f5}.zha-entry svg{width:18px;height:18px}.zha-entry:focus-visible,.zha-panel :focus-visible{outline:3px solid #245be959;outline-offset:3px}
.zha-shade{position:fixed;inset:0;background:#15243b2b;z-index:20990;backdrop-filter:blur(2px)}
.zha-panel{--zha-ink:#15243b;--zha-muted:#697486;--zha-line:#e5eaf2;--zha-blue:#245be9;position:fixed;z-index:21000;right:0;top:0;width:min(480px,100vw);height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden;background:#fff;box-shadow:-12px 0 56px #15243b1a;color:var(--zha-ink);font-size:14px;line-height:1.65;text-align:left}
.zha-panel *,.zha-panel *::before,.zha-panel *::after{box-sizing:border-box}.zha-panel [hidden],.zha-panel[hidden],.zha-shade[hidden]{display:none!important}
.zha-panel button,.zha-panel textarea{font:inherit}.zha-panel button{cursor:pointer}.zha-panel button:disabled{cursor:wait;opacity:.55}.zha-panel svg{width:20px;height:20px;flex-shrink:0;vertical-align:middle}.zha-panel h2,.zha-panel h3,.zha-panel h4,.zha-panel p{margin:0;letter-spacing:normal;overflow-wrap:anywhere}.zha-panel button,.zha-panel a{-webkit-tap-highlight-color:transparent}
.zha-head{display:flex;align-items:center;gap:10px;min-height:78px;padding:16px 20px;border-bottom:1px solid var(--zha-line);flex-shrink:0;background:#fff}
.zha-mark{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#245be9;color:#fff}.zha-mark svg{width:24px;height:24px}.zha-heading{margin-right:auto;min-width:0}.zha-heading h2{font-size:16px;font-weight:650;line-height:1.5}.zha-identity{display:block;margin-top:1px;color:var(--zha-muted);font-size:10px}
.zha-icon-button{display:grid;place-items:center;width:32px;height:32px;padding:6px;border:0;border-radius:7px;background:transparent;color:#71809b}.zha-icon-button:hover{background:#f2f5fa;color:#15243b}.zha-icon-button svg{width:18px;height:18px}
.zha-status{display:flex;align-items:center;gap:7px;padding:9px 21px;background:#f8f9fc;color:var(--zha-muted);font-size:11px;min-height:35px;flex-shrink:0}.zha-status i{width:6px;height:6px;border-radius:50%;background:#a1aaba}.zha-status[data-state=ready] i{background:#245be9}.zha-status[data-state=demo] i{background:#b77a2e}.zha-status[data-state=demo]{background:#fffaf1;color:#89612d}
.zha-plain-button{margin-left:auto;border:0;padding:0;background:transparent;color:inherit;font-size:10px!important;white-space:nowrap;text-decoration:underline;text-underline-offset:3px}
.zha-tabs{display:flex;gap:25px;min-height:46px;padding:0 22px;border-bottom:1px solid var(--zha-line);flex-shrink:0}.zha-tab{position:relative;border:0;padding:12px 1px;background:transparent;font-size:12px!important;color:var(--zha-muted);font-weight:600!important}.zha-tab.zha-active{color:var(--zha-blue)}.zha-tab.zha-active::after{position:absolute;content:"";left:0;right:0;bottom:0;height:2px;border-radius:3px;background:var(--zha-blue)}
.zha-body{flex:1;overflow:auto;overscroll-behavior:contain;min-height:80px;padding:24px 22px;scrollbar-width:thin;scrollbar-color:#d7dfec transparent}.zha-welcome{position:relative;padding:0 0 23px}.zha-welcome-mark{display:grid;place-items:center;width:42px;height:42px;background:linear-gradient(145deg,#eef4ff,#f9fbff);border:1px solid #e4ecff;border-radius:12px;color:#245be9;margin-bottom:19px}.zha-welcome-mark svg{width:28px;height:28px}.zha-eyebrow{display:block;color:#617392;font-size:9px;font-weight:650;letter-spacing:1.4px;margin-bottom:8px}.zha-welcome h3{white-space:pre-line;font-weight:650;font-size:25px;line-height:1.5;letter-spacing:-.4px}.zha-welcome p{color:var(--zha-muted);font-size:12px;line-height:1.9;margin-top:11px;max-width:365px}
.zha-demo-notice{padding:9px 11px;background:#fffaf0;border:1px solid #f0e5ce;border-radius:8px;font-size:10px;color:#8a7047;margin:0 0 22px;line-height:1.75}
.zha-home-admin .zha-welcome-mark{display:none}.zha-home-admin .zha-welcome{padding-bottom:18px}.zha-home-admin .zha-welcome h3{font-size:23px}.zha-home-admin .zha-demo-notice{margin-bottom:16px}.zha-home-admin .zha-budget{margin-bottom:18px}
.zha-section-label{color:#65748b;font-weight:500;font-size:11px;margin:0 0 11px!important}.zha-task-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:13px}.zha-task-card{position:relative;min-height:115px;padding:14px 15px 15px;border:1px solid #e5eaf2;background:#fff;border-radius:11px;color:var(--zha-ink);text-align:left;transition:border-color .16s,background .16s}.zha-task-card:hover{background:#f8faff;border-color:#a9c0f4}.zha-task-card strong{display:block;font-size:13px;font-weight:600;margin:9px 0 4px}.zha-task-meta{display:inline-block;border-radius:4px;padding:1px 5px;background:#eef3ff;color:#47669d;font-size:9px}.zha-task-detail{display:block;padding-right:3px;font-size:10px;line-height:1.7;color:#65748b}.zha-task-arrow{position:absolute;right:13px;top:15px;color:#a6b4cd;font-size:13px}.zha-task-grid:has(>.zha-task-card:nth-child(5))>.zha-task-card:last-child{grid-column:1/-1;min-height:95px}.zha-client-task{min-height:72px;padding:16px}.zha-client-task strong{margin:0;padding-top:3px}.zha-client-task .zha-task-arrow{top:19px}
.zha-boundary{font-size:10px;color:#68778e;line-height:1.8;margin-bottom:23px!important}.zha-doc-links{display:grid;grid-template-columns:1fr 1fr;gap:8px 16px;margin:0 0 2px}.zha-link{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:9px 0;border-bottom:1px solid #eef1f6;font-size:11px;color:#5d6f8b;text-decoration:none}.zha-link:hover{color:#245be9}.zha-link span{color:#9babc3;font-size:11px}
.zha-budget{display:flex;gap:14px;align-items:center;justify-content:space-between;margin:0 0 23px;padding:12px;border-radius:9px;background:#f7f9fd;border:1px solid #e8edf5}.zha-budget strong,.zha-budget span,.zha-budget small{display:block}.zha-budget strong{font-size:11px;font-weight:600;color:#607694}.zha-budget span{font-size:10px;color:#65748b;line-height:1.7;margin-top:3px}.zha-budget small{font-size:10px;color:#5e7190;margin-top:6px}.zha-budget-button{border:0;background:transparent;padding:5px 0;color:#245be9;font-size:10px!important;white-space:nowrap}
.zha-context{display:flex;align-items:center;gap:6px;flex-shrink:0;margin:0 22px 9px;color:#65748b;font-size:10px;min-height:20px}.zha-context svg{width:13px;height:13px}.zha-context span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.zha-compose{margin:0 18px;border:1px solid #dce4f2;border-radius:12px;background:#fff;box-shadow:0 2px 9px #15243b05;flex-shrink:0}.zha-compose:focus-within{border-color:#8eadef;box-shadow:0 0 0 3px #245be90a}.zha-input{display:block;resize:none;min-height:65px;max-height:150px;overflow:auto;width:100%;border:0;outline:none!important;background:transparent;padding:13px 14px 6px;color:var(--zha-ink);font-size:12px!important;line-height:1.7;border-radius:12px}.zha-input::placeholder{color:#6e7d95}.zha-input:disabled{opacity:.7}.zha-compose-foot{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 9px 9px 14px}.zha-compose-foot>span{font-size:9px;color:#68778e}.zha-send{display:grid;place-items:center;width:30px;height:30px;border:0;border-radius:8px;background:#245be9;color:white}.zha-send:hover{background:#1847c8}.zha-send svg{width:17px;height:17px}.zha-bottom-note{color:#68778e;font-size:9px;text-align:center;margin:9px 14px 13px!important;padding-bottom:env(safe-area-inset-bottom);flex-shrink:0}
.zha-history-note{font-size:10px;color:#68778e;text-align:center;margin-bottom:20px!important;line-height:1.8}.zha-messages{display:flex;flex-direction:column;gap:17px}.zha-message{border-radius:11px;padding:13px 14px;max-width:100%;font-size:12px;line-height:1.9;overflow-wrap:anywhere}.zha-message p{white-space:pre-wrap}.zha-message-label{display:block;margin-bottom:5px;font-size:9px;letter-spacing:.15px;color:#65748b}.zha-message-user{align-self:flex-end;min-width:100px;max-width:90%;background:#eef3ff;color:#234078}.zha-message-answer{padding:0 1px 8px;color:#40536e}.zha-message-notice{background:#f7f8fb;color:#5d6d84;border:1px solid #edf0f5;font-size:11px}.zha-answer-links{display:grid;grid-template-columns:1fr 1fr;gap:4px 14px;margin-top:11px}.zha-plan{margin-top:13px;padding:14px;border:1px solid #dce6fb;border-radius:10px;background:#f7faff}.zha-plan-badge{display:inline-block;color:#5375b0;background:#eaf1ff;padding:2px 6px;border-radius:4px;font-size:9px}.zha-plan h4{font-weight:600;font-size:13px;margin:9px 0!important}.zha-plan p{font-size:11px;line-height:1.8;margin:4px 0!important}.zha-plan small{display:block;margin-top:11px;color:#65748b;font-size:10px;line-height:1.7}
@media(max-width:600px){.zha-panel{width:100vw;border-left:0}.zha-head{min-height:72px;padding:14px 17px}.zha-body{padding:22px 18px}.zha-tabs{padding-inline:19px}.zha-status{padding-inline:19px}.zha-welcome h3{font-size:24px}.zha-context{margin-inline:19px}.zha-entry{font-size:12px;min-height:34px;padding:6px 9px;gap:5px}.zha-entry svg{width:16px;height:16px}.zha-compose{margin-inline:14px}.zha-task-card{padding:13px}.zha-bottom-note{margin-bottom:10px!important}}
@media(max-width:680px){.zha-entry{width:34px;height:34px;min-height:34px;padding:7px}.zha-entry>span{display:none}}
@media(max-width:600px){.zha-home-admin .zha-eyebrow{display:none}.zha-home-admin .zha-welcome h3{font-size:21px}.zha-home-admin .zha-welcome p{font-size:11px;line-height:1.8;margin-top:9px}.zha-home-admin .zha-task-card{min-height:99px;padding:11px 12px}.zha-home-admin .zha-task-card strong{margin-top:6px}.zha-home-admin .zha-task-grid:has(>.zha-task-card:nth-child(5))>.zha-task-card:last-child{min-height:90px}.zha-home-admin .zha-demo-notice{padding:7px 9px}}
@media(max-height:720px){.zha-welcome-mark{display:none}.zha-body{padding-top:20px}.zha-welcome h3{font-size:22px}.zha-welcome{padding-bottom:18px}.zha-demo-notice{margin-bottom:18px}}
@media(prefers-reduced-motion:reduce){.zha-panel *{transition:none!important}}
.zha-settings h3{font-size:20px;font-weight:650;margin-bottom:12px}.zha-settings-intro{color:#65748b;font-size:12px;line-height:1.9;margin-bottom:21px!important}
.zha-settings-form{display:grid;gap:17px}.zha-settings-field{display:grid;gap:7px;font-size:11px;color:#526681}.zha-settings-field input{font:12px/1.6 "Segoe UI","Microsoft YaHei",sans-serif;min-width:0;width:100%;padding:10px 11px;border:1px solid #cfd9e8;border-radius:8px;background:#fff;color:#20334f}
.zha-settings-field input:read-only,.zha-settings-field input:disabled{background:#f4f6fa;color:#596b85;opacity:1}.zha-settings-field input::placeholder{color:#6e7d95}.zha-settings-enabled{display:flex;align-items:center;gap:9px;font-size:12px;color:#526681}.zha-settings-enabled input{width:16px;height:16px;accent-color:#245be9}
.zha-settings-feedback{color:#596d8a;font-size:11px;line-height:1.85}.zha-settings-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:3px}.zha-settings-actions button{padding:8px 13px;border:1px solid #cdd8eb;border-radius:7px;font-size:11px;background:#fff;color:#405a80}.zha-settings-actions .zha-settings-save{background:#245be9;border-color:#245be9;color:#fff}

/* Own assistant surfaces follow the verified theme bridge on either host. */
html[data-zhuhua-theme=dark] .zha-panel{--zha-ink:#e8eef8;--zha-muted:#b6c3d8;--zha-line:#324159;--zha-blue:#a8c4ff;background:#151f31;box-shadow:-12px 0 56px #0006}
html[data-zhuhua-theme=dark] .zha-entry{background:#203353;border-color:#46608e;color:#bbd1ff}
html[data-zhuhua-theme=dark] .zha-entry:hover{background:#2a4267;border-color:#7895c7}
html[data-zhuhua-theme=dark] .zha-head{background:#151f31}
html[data-zhuhua-theme=dark] .zha-shade{background:#0007}
html[data-zhuhua-theme=dark] .zha-icon-button{color:#b6c6df}
html[data-zhuhua-theme=dark] .zha-icon-button:hover{background:#25344d;color:#f0f5ff}
html[data-zhuhua-theme=dark] .zha-status{background:#18253a;color:#becbe0}
html[data-zhuhua-theme=dark] :is(.zha-status[data-state=demo],.zha-demo-notice){background:#352d1f;border-color:#665334;color:#e7cf9c}
html[data-zhuhua-theme=dark] .zha-welcome-mark{background:linear-gradient(145deg,#233956,#1b2a42);border-color:#425d88;color:#b3ccff}
html[data-zhuhua-theme=dark] :is(.zha-eyebrow,.zha-section-label,.zha-task-detail,.zha-boundary,.zha-context,.zha-history-note,.zha-message-label,.zha-plan small){color:#b5c5df}
html[data-zhuhua-theme=dark] .zha-task-card{background:#17243a;border-color:#364862}
html[data-zhuhua-theme=dark] .zha-task-card:hover{background:#21334f;border-color:#7897ca}
html[data-zhuhua-theme=dark] .zha-task-meta{background:#284166;color:#c6d9ff}
html[data-zhuhua-theme=dark] .zha-task-arrow{color:#b7cae8}
html[data-zhuhua-theme=dark] .zha-link{color:#b8cef3;border-color:#34445f}
html[data-zhuhua-theme=dark] .zha-link:hover{color:#d8e5ff}
html[data-zhuhua-theme=dark] .zha-link span{color:#b5c9eb}
html[data-zhuhua-theme=dark] .zha-budget{background:#1b293f;border-color:#3a4b66}
html[data-zhuhua-theme=dark] .zha-budget strong{color:#c8d8ef}
html[data-zhuhua-theme=dark] :is(.zha-budget span,.zha-budget small){color:#b6c7e2}
html[data-zhuhua-theme=dark] .zha-budget-button{color:#b6d0ff}
html[data-zhuhua-theme=dark] .zha-compose{background:#172339;border-color:#506789}
html[data-zhuhua-theme=dark] .zha-compose:focus-within{border-color:#a4c0ff;box-shadow:0 0 0 3px #8eaaff25}
html[data-zhuhua-theme=dark] .zha-input::placeholder{color:#b0bfd6}
html[data-zhuhua-theme=dark] :is(.zha-compose-foot>span,.zha-bottom-note){color:#b3c3dd}
html[data-zhuhua-theme=dark] .zha-message-user{background:#243f66;color:#e1ecff}
html[data-zhuhua-theme=dark] .zha-message-answer{color:#c7d5ea}
html[data-zhuhua-theme=dark] .zha-message-notice{background:#1f2e45;border-color:#3e506d;color:#c5d4e9}
html[data-zhuhua-theme=dark] .zha-plan{background:#1b2b46;border-color:#48618b}
html[data-zhuhua-theme=dark] .zha-plan-badge{background:#2d4771;color:#d5e4ff}
html[data-zhuhua-theme=dark] .zha-entry:focus-visible,html[data-zhuhua-theme=dark] .zha-panel :focus-visible{outline-color:#a8c4ff}
html[data-zhuhua-theme=dark] :is(.zha-settings-intro,.zha-settings-field,.zha-settings-enabled,.zha-settings-feedback){color:#b9cbe6}
html[data-zhuhua-theme=dark] .zha-settings-field input{background:#17243a;border-color:#4a6286;color:#e4edfc}
html[data-zhuhua-theme=dark] .zha-settings-field input:read-only,html[data-zhuhua-theme=dark] .zha-settings-field input:disabled{background:#1d2b42;color:#b7c8e0}
html[data-zhuhua-theme=dark] .zha-settings-field input::placeholder{color:#b2c2dc}
html[data-zhuhua-theme=dark] .zha-settings-actions button{background:#223652;border-color:#536d97;color:#d7e5fc}
html[data-zhuhua-theme=dark] .zha-settings-actions .zha-settings-save{background:#315fc7;border-color:#779cf0;color:#fff}

/* Authenticated support and review workspaces. They never execute maintenance. */
.zha-tabs{overflow-x:auto;scrollbar-width:thin}.zha-tab{flex:0 0 auto;white-space:nowrap}
.zha-workspace{min-width:0;color:var(--zha-ink);padding-bottom:12px}.zha-workspace h3{font-size:19px;line-height:1.6;margin:0 0 10px!important;overflow-wrap:anywhere}.zha-workspace h4{font-size:13px;margin:0 0 12px!important}
.zha-work-intro,.zha-work-feedback,.zha-work-empty,.zha-work-boundary{font-size:11px;line-height:1.9;color:#5a6d88;margin:10px 0 16px!important;overflow-wrap:anywhere}
.zha-work-feedback{white-space:pre-wrap}.zha-work-boundary{border:1px solid #dce6fb;background:#f4f8ff;padding:12px;border-radius:9px}
.zha-workflow-links,.zha-record-actions{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.zha-workflow-button,.zha-work-reload,.zha-work-back,.zha-work-secondary{font-size:11px;border:1px solid #cfdaed;background:#fff;color:#345581;border-radius:7px;padding:8px 11px;min-height:34px}
.zha-work-back{margin-left:8px}.zha-record-list{display:grid;gap:10px;margin:17px 0}.zha-record-card{display:block;width:100%;text-align:left;border:1px solid #dce5f2;border-radius:10px;padding:13px;background:#fff;margin:10px 0;color:inherit;overflow-wrap:anywhere}
.zha-record-card:hover{border-color:#8ca9dc;background:#f7faff}.zha-record-card strong{display:block;font-size:12px;line-height:1.75}.zha-record-card p{font-size:11px;line-height:1.7;color:#60718b;margin:7px 0!important}.zha-record-card small{display:block;font-size:10px;color:#6f7e95;margin-top:6px}
.zha-record-state{display:inline-block;font-size:10px;color:#42618e;background:#edf3fd;border-radius:5px;padding:2px 6px;margin-top:6px}
.zha-record-form{display:grid;gap:12px;padding:17px 0;margin-top:15px;border-top:1px solid var(--zha-line)}.zha-record-form label{display:grid;gap:7px;font-size:11px;color:#4a607e}
.zha-record-form input,.zha-record-form textarea{font:12px/1.8 "Segoe UI","Microsoft YaHei",sans-serif;min-width:0;width:100%;padding:9px 10px;border:1px solid #cad7e8;border-radius:8px;background:#fff;color:#20334e}.zha-record-form textarea{resize:vertical;min-height:85px;max-height:220px}
.zha-work-primary{font-size:12px;min-height:36px;border:1px solid #245be9;background:#245be9;color:#fff;border-radius:8px;padding:8px 12px;justify-self:start}
.zha-ticket-thread{display:grid;gap:10px;margin-top:18px}.zha-ticket-message,.zha-audit-row{padding:12px;border:1px solid #e0e7f1;border-radius:9px;background:#f8faff;overflow-wrap:anywhere}.zha-ticket-message small{display:block;color:#687a94;font-size:10px}.zha-ticket-message p{font-size:12px;line-height:1.9;white-space:pre-wrap;margin:7px 0 0!important}
.zha-plan-changes{font:11px/1.9 "Segoe UI","Microsoft YaHei",sans-serif;color:#3b5274;background:#f7f9fd;border:1px solid #dbe5f3;border-radius:9px;padding:12px;margin:18px 0;white-space:pre-wrap;overflow-wrap:anywhere;overflow:auto;max-height:350px}
.zha-audit-row{display:grid;gap:5px;margin-top:10px;font-size:10px}.zha-audit-row strong{font-size:11px}.zha-audit-row small,.zha-audit-row span{color:#637995}
html[data-zhuhua-theme=dark] .zha-workspace :is(.zha-work-intro,.zha-work-feedback,.zha-work-empty,.zha-work-boundary){color:#bacce6}
html[data-zhuhua-theme=dark] :is(.zha-workflow-button,.zha-work-reload,.zha-work-back,.zha-work-secondary){background:#20334e;color:#d2e2fc;border-color:#506b92}
html[data-zhuhua-theme=dark] .zha-record-card{background:#17243a;border-color:#3c5273}html[data-zhuhua-theme=dark] .zha-record-card:hover{background:#213651;border-color:#829fce}
html[data-zhuhua-theme=dark] .zha-record-card :is(p,small),html[data-zhuhua-theme=dark] .zha-record-form label,html[data-zhuhua-theme=dark] .zha-ticket-message small,html[data-zhuhua-theme=dark] .zha-audit-row :is(small,span){color:#b6c9e5}
html[data-zhuhua-theme=dark] .zha-record-state{background:#2d4770;color:#d6e5ff}html[data-zhuhua-theme=dark] .zha-record-form :is(input,textarea){background:#17243a;border-color:#516b91;color:#e3edff}
html[data-zhuhua-theme=dark] :is(.zha-ticket-message,.zha-audit-row,.zha-plan-changes,.zha-work-boundary){background:#1b2c46;border-color:#48638b;color:#d2e0f5}
@media(max-width:600px){.zha-tabs{gap:14px}.zha-workspace h3{font-size:18px}.zha-record-actions{gap:7px}.zha-record-actions button{max-width:100%;text-align:left}}

/* Header actions: preserve native controls; the assistant is the last item. */
.zha-entry{min-height:38px;gap:8px;padding:5px 12px 5px 6px;border-color:#c4d0f5;background:linear-gradient(135deg,#f4f6ff,#edf3ff);color:#214bc4;box-shadow:0 2px 8px #245be90b}
.zha-entry>svg{width:28px;height:28px;flex-shrink:0}.zha-entry:hover{background:#e9eeff;border-color:#96aaee;box-shadow:0 3px 10px #245be91a}
.zha-mark{background:transparent;width:38px;height:38px}.zha-mark>svg{width:36px;height:36px}
.zha-tabs{gap:18px;overflow-x:auto;scrollbar-width:thin}.zha-tab{flex-shrink:0}
.zha-sync-entry{border-color:#afc1f3!important;background:linear-gradient(145deg,#f6f8ff,#edf3ff)!important}
.zha-sync{display:flex;flex-direction:column;gap:14px}.zha-sync h3{font-size:19px}.zha-sync-intro{font-size:12px;color:var(--zha-muted)}
.zha-sync-upload{border:1px dashed #b6c5ed;padding:16px;border-radius:12px;background:#f8faff}.zha-sync-upload label{display:block;font-size:12px;font-weight:600;margin:0 0 8px}
.zha-sync input{display:block;box-sizing:border-box;width:100%;font:inherit;min-height:38px;padding:8px;border:1px solid var(--zha-line);border-radius:7px;background:#fff;color:var(--zha-ink)}
.zha-sync details{font-size:12px;color:var(--zha-muted)}.zha-sync details label{display:block;margin:12px 0}.zha-sync-actions{display:flex;flex-wrap:wrap;gap:8px}
.zha-sync button{border:1px solid #bdcbed;border-radius:8px;padding:8px 13px;font-size:12px;background:#fff;color:var(--zha-ink)}.zha-sync button[data-primary]{background:#245be9;color:#fff;border-color:#245be9}.zha-sync button:disabled{cursor:not-allowed;opacity:.5}
.zha-sync-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.zha-sync-summary>div{padding:12px;background:#f5f7fc;border-radius:9px}.zha-sync-summary strong{display:block;font-size:23px;line-height:1.3}.zha-sync-summary span{font-size:11px;color:var(--zha-muted)}
.zha-sync-status{padding:11px 13px;border-radius:8px;background:#edf4ff;font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}.zha-sync-status[data-error]{background:#fff3ee;color:#8f351f}
.zha-sync-table{overflow:auto;max-height:390px;border:1px solid var(--zha-line);border-radius:8px}.zha-sync table{border-collapse:collapse;width:100%;font-size:11px}.zha-sync th,.zha-sync td{padding:9px;text-align:left;border-bottom:1px solid var(--zha-line);overflow-wrap:anywhere}.zha-sync th{background:#f5f7fc;position:sticky;top:0}.zha-sync td:first-child{font-family:ui-monospace,monospace}
.zha-sync-impact{font-size:12px;line-height:1.6;color:var(--zha-muted)}
html.dark .zha-sync :is(input,button){background:#142035;color:#e7eef9;border-color:#435771}html.dark .zha-sync :is(.zha-sync-upload,.zha-sync-summary>div,th){background:#18263d;border-color:#435771}html.dark .zha-sync-status{background:#233652}html.dark .zha-sync-status[data-error]{background:#4b2b26;color:#ffd7c9}html.dark .zha-sync-entry{background:linear-gradient(145deg,#182a48,#223a61)!important}
@media(max-width:640px){.zha-entry{min-width:38px;min-height:38px;width:38px;padding:4px}.zha-entry>svg{width:28px;height:28px}.zha-entry>span{display:none}.zha-sync-summary>div{padding:9px}}
