/* V28 additive corrections: no content removal, final public router and compact messenger popup. */
#contactModal.v28-contact-popup{
 align-items:flex-end!important;justify-content:flex-start!important;padding:18px!important;
 background:rgba(13,43,94,.24)!important;backdrop-filter:blur(2px)!important;z-index:180!important;
}
#contactModal.v28-contact-popup.hidden{display:none!important}
#contactModal.v28-contact-popup>.v28-chat-panel,
#contactModal.v28-contact-popup>div{
 width:min(430px,calc(100vw - 36px))!important;height:min(650px,calc(100vh - 36px))!important;
 max-width:430px!important;max-height:650px!important;border-radius:22px!important;margin:0!important;
 display:flex!important;flex-direction:column!important;overflow:hidden!important;background:#fff!important;
 pointer-events:auto!important;box-shadow:0 24px 70px rgba(4,20,55,.38)!important;
 transform:none!important;
}
.v28-chat-head{background:linear-gradient(135deg,#3423a6,#6d28d9);color:#fff;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.v28-chat-head h3{font-size:19px;font-weight:900;margin:0}.v28-chat-head p{font-size:11px;font-weight:700;opacity:.82;margin:2px 0 0}
.v28-chat-head button{width:38px;height:38px;border-radius:50%;font-size:26px;line-height:1;background:#ffffff20;color:#fff}
.v28-chat-body{flex:1;min-height:0;overflow:hidden;background:#f5f7fb;padding:0!important}
.v28-chat-start{height:100%;padding:24px;display:flex;flex-direction:column;justify-content:center;gap:12px}
.v28-chat-welcome{text-align:center;margin-bottom:8px}.v28-chat-welcome>i{font-size:42px;color:#6d28d9}.v28-chat-welcome h4{font-size:22px;font-weight:900;color:#0d2b5e;margin:8px 0 3px}.v28-chat-welcome p{font-size:13px;font-weight:700;color:#64748b}
.v28-chat-start label{font-weight:900;color:#0d2b5e}.v28-chat-start select{width:100%;padding:13px;border:1px solid #cbd5e1;border-radius:13px;background:#fff;font-weight:800;color:#0d2b5e}
.v28-chat-primary{padding:13px;border-radius:13px;background:#087fc0;color:#fff;font-weight:900;box-shadow:0 5px 0 #075985}
.v28-chat-primary:disabled,.v28-chat-compose button:disabled{opacity:.55;cursor:wait}
.v28-chat-thread{height:100%;display:flex;flex-direction:column;min-height:0}
.v28-chat-thread-head{background:#fff;border-bottom:1px solid #e2e8f0;padding:10px 13px;display:flex;align-items:center;justify-content:space-between;color:#0d2b5e}
.v28-chat-thread-head b{display:block;font-size:15px}.v28-chat-thread-head small{display:block;font-size:9px;color:#94a3b8;direction:ltr}.v28-chat-thread-head button{width:38px;height:38px;border-radius:50%;background:#eef2ff;color:#6d28d9}
.v28-chat-messages{flex:1;min-height:0;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:8px;background:#eef3f8}
.v28-message{max-width:82%;padding:9px 12px;border-radius:17px;font-size:13px;font-weight:700;line-height:1.6;box-shadow:0 1px 2px #0001}.v28-message p{margin:0;white-space:pre-wrap;word-break:break-word}.v28-message small{display:block;font-size:8px;opacity:.62;margin-top:2px}
.v28-message.citizen{align-self:flex-start;background:#6d28d9;color:#fff;border-bottom-right-radius:4px}.v28-message.employee{align-self:flex-end;background:#fff;color:#1e293b;border:1px solid #dbe3ec;border-bottom-left-radius:4px}
.v28-chat-compose{display:flex;gap:8px;padding:10px;background:#fff;border-top:1px solid #e2e8f0}.v28-chat-compose input{flex:1;min-width:0;padding:11px 13px;border:1px solid #cbd5e1;border-radius:22px;outline:none}.v28-chat-compose button{width:44px;height:44px;border-radius:50%;background:#087fc0;color:#fff}
.v28-chat-empty{margin:auto;text-align:center;color:#94a3b8}.v28-chat-empty i{font-size:38px}.v28-chat-empty p{font-size:12px;font-weight:700;margin-top:5px}
@media(max-width:600px){
 #contactModal.v28-contact-popup{padding:0!important;align-items:stretch!important}
 #contactModal.v28-contact-popup>.v28-chat-panel,#contactModal.v28-contact-popup>div{width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;border-radius:0!important}
 .v28-chat-start{padding:20px}
}
