.smart-home-dialog{box-sizing:border-box;width:min(520px,calc(100vw - 28px));max-height:85dvh;overflow:auto;padding:24px;border:1px solid #496052;border-radius:22px;background:#14211c;color:#e7eee9;box-shadow:0 24px 80px #0008}
.smart-home-dialog::backdrop{background:#0009}
.smart-home-dialog h2{margin-top:0}
.smart-home-card{padding:16px;margin:14px 0;border:1px solid #3e5547;border-radius:14px;background:#1c2c23}
.smart-home-card label{display:block;margin-bottom:10px}
.smart-home-card input{box-sizing:border-box;width:100%;padding:12px;border:1px solid #59715f;border-radius:9px;background:#101a15;color:#fff;font:inherit;font-size:16px}
.smart-home-actions{display:flex;gap:10px;flex-wrap:wrap}
.smart-home-actions button{padding:12px 15px;border-radius:10px;cursor:pointer}
.smart-home-dialog button:disabled{opacity:.55;cursor:wait}
.smart-home-dialog :focus-visible{outline:2px solid #b6dfbb;outline-offset:3px}
