/* JKA Dealer Portal v1.6.34 — Deployment Center diagnostics + recovery visual hardening */
body.homeaid-system .deployment-center-v1634{min-width:0}
body.homeaid-system .deployment-center-v1634 .premium-page-head{margin-bottom:.85rem}
body.homeaid-system .deployment-center-v1634 .premium-metrics{margin-bottom:.85rem}
body.homeaid-system .deployment-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:.9rem;align-items:start}
body.homeaid-system .deployment-grid>.premium-card{margin:0!important;min-width:0}
body.homeaid-system .deployment-profile-actions{display:flex;flex-wrap:wrap;gap:.55rem;align-items:center;margin-top:.2rem}
body.homeaid-system .deployment-profile-actions .btn{min-height:40px}
body.homeaid-system .deployment-test-result{display:grid;grid-template-columns:auto 1fr;gap:.35rem .7rem;align-items:center;padding:.72rem .82rem;border:1px solid var(--ha-border);border-radius:.78rem;background:var(--ha-soft)}
body.homeaid-system .deployment-test-result small{grid-column:2;color:var(--ha-muted)}
body.homeaid-system .deployment-protection-note{display:flex;gap:.65rem;align-items:flex-start;margin-top:.8rem;padding:.7rem .75rem;border:1px solid var(--ha-border);border-radius:.75rem;background:var(--ha-soft);color:var(--ha-muted)}
body.homeaid-system .deployment-protection-note>i{margin-top:.15rem;color:var(--ha-accent)}
body.homeaid-system .deployment-protection-note span{display:grid;gap:.15rem;min-width:0}
body.homeaid-system .deployment-protection-note b{color:var(--ha-text)}
body.homeaid-system .deployment-sha{white-space:nowrap;font-size:.72rem}
body.homeaid-system .deployment-table td,body.homeaid-system .deployment-history-table td{vertical-align:middle}
body.homeaid-system .deployment-table td:last-child{white-space:nowrap}
body.homeaid-system .deployment-execute-form{margin:0}
body.homeaid-system .deployment-center-v1634 .empty-state.compact{min-height:72px;display:flex;gap:.5rem;align-items:center;justify-content:center;color:var(--ha-muted)}
body.homeaid-system .deployment-center-v1634 .premium-card-head code,body.homeaid-system .deployment-protection-note code{overflow-wrap:anywhere;word-break:break-word}
body.homeaid-system .deployment-health-card{margin:0 0 .85rem!important}
body.homeaid-system .deployment-health-card .premium-card-head{align-items:center}
body.homeaid-system .deployment-health-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:.6rem}
body.homeaid-system .deployment-health-item{display:flex;align-items:flex-start;gap:.6rem;min-width:0;padding:.68rem .72rem;border:1px solid var(--ha-border);border-radius:.78rem;background:var(--ha-soft)}
body.homeaid-system .deployment-health-item.is-fail{border-color:rgba(220,53,69,.34);background:rgba(220,53,69,.055)}
body.homeaid-system .deployment-health-mark{display:grid;place-items:center;width:28px;height:28px;flex:0 0 28px;border-radius:50%;font-size:.9rem}
body.homeaid-system .deployment-health-item.is-pass .deployment-health-mark{color:#18864b;background:rgba(25,135,84,.11)}
body.homeaid-system .deployment-health-item.is-fail .deployment-health-mark{color:#bd2637;background:rgba(220,53,69,.11)}
body.homeaid-system .deployment-health-item>div{display:grid;gap:.12rem;min-width:0}
body.homeaid-system .deployment-health-item strong{font-size:.82rem;color:var(--ha-text)}
body.homeaid-system .deployment-health-item small{font-size:.75rem;line-height:1.4;color:var(--ha-muted);overflow-wrap:anywhere}
body.homeaid-system .deployment-health-item em{font-style:normal;font-size:.72rem;line-height:1.4;color:#9b6615;margin-top:.12rem}
body.homeaid-system .deployment-health-footer{display:flex;flex-wrap:wrap;align-items:center;gap:.55rem 1rem;margin-top:.7rem;padding-top:.65rem;border-top:1px solid var(--ha-border);font-size:.76rem;color:var(--ha-muted)}
body.homeaid-system .deployment-health-footer .btn{margin-left:auto}
body.homeaid-system .deployment-action-error-panel{display:flex;align-items:flex-start;gap:.75rem;margin:0 0 .85rem;padding:.78rem .86rem;border:1px solid rgba(220,53,69,.38);border-radius:.86rem;background:rgba(220,53,69,.065);box-shadow:0 8px 24px rgba(0,0,0,.04)}
body.homeaid-system .deployment-action-error-icon{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:.65rem;background:rgba(220,53,69,.12);color:#bd2637}
body.homeaid-system .deployment-action-error-panel>div:last-child{display:grid;gap:.2rem;min-width:0}
body.homeaid-system .deployment-action-error-title{display:flex;flex-wrap:wrap;align-items:center;gap:.45rem .7rem}
body.homeaid-system .deployment-action-error-title strong{font-size:.82rem;color:#b12233}
body.homeaid-system .deployment-action-error-title code{font-size:.72rem}
body.homeaid-system .deployment-action-error-panel p{margin:0;color:var(--ha-text);font-size:.84rem;line-height:1.45}
body.homeaid-system .deployment-action-error-panel small{color:var(--ha-muted);font-size:.74rem}
body.homeaid-system .deployment-profile-decrypt-alert{font-size:.8rem;line-height:1.45}
body.homeaid-system .deployment-toast-feedback[hidden]{display:none!important}
@media(max-width:1099.98px){body.homeaid-system .deployment-grid{grid-template-columns:1fr}body.homeaid-system .deployment-profile-actions .btn{flex:1 1 220px}}
@media(max-width:767.98px){body.homeaid-system .deployment-center-v1634 .premium-page-actions{width:100%}body.homeaid-system .deployment-profile-actions{display:grid;grid-template-columns:1fr}body.homeaid-system .deployment-profile-actions .btn{width:100%}body.homeaid-system .deployment-table,body.homeaid-system .deployment-history-table{min-width:850px}body.homeaid-system .deployment-health-grid{grid-template-columns:1fr}body.homeaid-system .deployment-health-footer{align-items:stretch}body.homeaid-system .deployment-health-footer .btn{width:100%;margin-left:0}}
@media(max-width:575.98px){body.homeaid-system .deployment-grid{gap:.7rem}body.homeaid-system .deployment-test-result{grid-template-columns:1fr}body.homeaid-system .deployment-test-result small{grid-column:1}body.homeaid-system .deployment-protection-note{font-size:.78rem}body.homeaid-system .deployment-action-error-panel{padding:.7rem;gap:.6rem}body.homeaid-system .deployment-action-error-icon{width:30px;height:30px;flex-basis:30px}}
