.crm-assignment-health{max-height:260px;overflow-y:auto;border:1px solid #dce5ee;border-radius:12px;margin-top:8px;background:#fff}
.crm-assignment-health-note{font-size:11px!important;line-height:1.45!important;margin:6px 0!important;color:#64748b!important}
.crm-assignment-health-heading{padding:9px 12px 5px;font-size:11px;font-weight:800;background:#f8fafc;color:#475569}
.crm-assignment-health-heading.healthy{color:#047857;background:#ecfdf5}
.crm-assignment-health-heading.stale{color:#b91c1c;background:#fff1f2}
.crm-assignment-health-row{display:flex;gap:10px;align-items:center;padding:10px 12px;cursor:pointer;border-bottom:1px solid #f1f5f9}
.crm-assignment-health-row:hover{background:#f8fafc}
.crm-assignment-health-row:has(input:checked){background:#ecfdf5;box-shadow:inset 3px 0 #10b981}
.crm-assignment-health-row input{flex:0 0 auto;accent-color:#059669}
.crm-assignment-health-row span{min-width:0}
.crm-assignment-health-row strong{display:block;font-size:12px;color:#0f172a;overflow-wrap:anywhere}
.crm-assignment-health-row small{display:block;font-size:11px;color:#64748b;margin-top:3px}
.crm-assignment-health-row.stale strong{color:#dc2626}
.crm-assignment-health-row.stale:has(input:checked){background:#fff1f2;box-shadow:inset 3px 0 #dc2626}
.crm-assignment-health-row.healthy strong{color:#047857}
.chat-beta-modal-backdrop:has(.crm-assignment-health){padding:20px}
.chat-beta-modal-backdrop:has(.crm-assignment-health) .chat-beta-modal{width:min(540px,100%);max-height:calc(100dvh - 40px);display:flex;flex-direction:column;padding:26px;border-radius:24px;overflow:hidden}
.chat-beta-modal:has(.crm-assignment-health)>*{flex-shrink:0}
.chat-beta-modal:has(.crm-assignment-health) h3{font-size:22px;margin:14px 0 10px}
.chat-beta-modal:has(.crm-assignment-health)>p:not(.crm-assignment-health-note){font-size:13px;line-height:1.5;margin:10px 0 18px}
.chat-beta-modal:has(.crm-assignment-health) .chat-beta-modal-label{font-size:11px;margin:12px 0 8px}
.chat-beta-modal:has(.crm-assignment-health) .chat-beta-modal-select{padding:11px 14px;font-size:14px;border-radius:12px}
#chatBetaTransferSelf{align-self:flex-start}
.crm-assignment-health-note{font-size:12px!important;line-height:1.5!important;margin:0 0 10px!important;color:#64748b!important}
.crm-assignment-health{flex:1 1 auto!important;min-height:120px;max-height:360px;overscroll-behavior:contain;scrollbar-width:thin;border-color:#e2e8f0;border-radius:14px;margin-top:0}
.crm-assignment-health-heading{position:sticky;top:0;z-index:1;padding:11px 14px;font-size:12px;border-bottom:1px solid #e2e8f0}
.crm-assignment-health-row{gap:12px;padding:14px;min-height:68px;transition:background .15s}
.crm-assignment-health-row:last-child{border-bottom:0}
.crm-assignment-health-row:focus-within{outline:2px solid #059669;outline-offset:-2px}
.crm-assignment-health-row input{width:17px;height:17px;margin:0}
.crm-assignment-health-person{flex:1;min-width:0}
.crm-assignment-health-row strong{font-size:14px;font-weight:700}
.crm-assignment-health-row small{font-size:12px;line-height:1.4;margin-top:4px}
.crm-assignment-health-badge{flex-shrink:0;border-radius:8px;padding:5px 8px;font-size:11px;font-weight:700;background:#f1f5f9;color:#64748b;white-space:nowrap}
.healthy .crm-assignment-health-badge{background:#d1fae5;color:#047857}
.stale .crm-assignment-health-badge{background:#ffe4e6;color:#be123c}
.chat-beta-modal:has(.crm-assignment-health) .chat-beta-modal-actions{margin-top:16px;padding-top:14px;border-top:1px solid #e2e8f0;display:flex;justify-content:flex-end;gap:10px;background:#fff}
.chat-beta-modal:has(.crm-assignment-health) .chat-beta-modal-actions button{min-height:42px;padding:10px 18px;border-radius:11px}
@media(max-width:480px){
 .chat-beta-modal-backdrop:has(.crm-assignment-health){padding:12px}
 .chat-beta-modal-backdrop:has(.crm-assignment-health) .chat-beta-modal{max-height:calc(100dvh - 24px);padding:20px;border-radius:20px}
 .chat-beta-modal:has(.crm-assignment-health) h3{font-size:20px}
 .crm-assignment-health-row{gap:9px;padding:12px}
 .crm-assignment-health-row strong{font-size:13px}
 .crm-assignment-health-row small{font-size:11px}
 .crm-assignment-health-badge{font-size:10px;padding:5px 6px}
 .chat-beta-modal:has(.crm-assignment-health) .chat-beta-modal-actions button{flex:1}
}
@media(max-height:650px){
 .chat-beta-modal:has(.crm-assignment-health) .chat-beta-modal-icon{display:none}
 .chat-beta-modal:has(.crm-assignment-health)>p:not(.crm-assignment-health-note){margin:6px 0;font-size:12px}
 .chat-beta-modal:has(.crm-assignment-health) h3{margin:0 26px 8px 0}
 .chat-beta-modal-backdrop:has(.crm-assignment-health) .chat-beta-modal{padding:18px}
 .crm-assignment-health{min-height:90px}
}
