.chat-menu-button{color:#475569;text-align:right;cursor:pointer;background:0 0;border:1px solid #0000;border-radius:10px;align-items:center;gap:10px;width:100%;padding:12px 10px;font-size:11px;line-height:1.9;display:flex}.chat-menu-button>svg{color:#94a3b8;flex-shrink:0}.chat-menu-button:hover,.chat-menu-button.is-open{color:#2563eb;background:#eff6ff}.chat-menu-button.is-open{border-color:#dce9ff}.chat-menu-button>span{flex:1}.chat-unread-dot{background:#ef4444;border-radius:50%;flex:0 0 8px;width:8px;height:8px;margin-inline-start:auto;display:inline-block;box-shadow:0 0 0 3px #fff0f0}.chat-layer,.chat-layer *{box-sizing:border-box;min-width:0}.chat-layer{z-index:2000;color:#1e293b;font-family:IRANSansX,Arial,sans-serif;position:fixed;inset:0}.chat-backdrop{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#0f172a26;position:absolute;inset:0}.chat-panel{background:#fff;border:1px solid #e2e8f0;border-radius:20px;flex-direction:column;width:410px;max-width:calc(100vw - 32px);display:flex;position:absolute;inset:16px 16px 16px auto;overflow:hidden;box-shadow:0 15px 65px #0f172a26}.chat-header{border-bottom:1px solid #edf2f7;flex-shrink:0;justify-content:space-between;align-items:center;gap:12px;padding:18px 16px;display:flex}.chat-header-title{color:#2563eb;align-items:center;gap:10px;display:flex}.chat-header h2{color:#1e293b;margin:0;font-size:13px;font-weight:700;line-height:1.9}.chat-header p{color:#94a3b8;margin:4px 0 0;font-size:10px}.chat-icon-button{color:#64748b;cursor:pointer;background:#f8fafc;border:0;border-radius:9px;flex-shrink:0;place-items:center;width:30px;height:30px;font-size:23px;display:grid}.chat-contacts{flex:1;padding:16px;overflow-y:auto}.chat-contact-search{color:#64748b;gap:8px;margin-bottom:18px;font-size:11px;display:grid}.chat-contact-search input{background:#f8fafc;border:1px solid #e2e8f0;border-radius:11px;outline:none;width:100%;padding:11px 12px}.chat-contact-search input:focus,.chat-compose textarea:focus{border-color:#93b4f4}.chat-contact{text-align:right;cursor:pointer;background:#fff;border:1px solid #0000;border-radius:12px;align-items:center;gap:11px;width:100%;margin-bottom:5px;padding:13px 10px;display:flex}.chat-contact:hover{background:#f8faff;border-color:#e8efff}.chat-general{background:#f4f8ff;border-color:#e6eeff}.chat-avatar{color:#2563eb;background:#eff6ff;border-radius:12px;flex:0 0 39px;place-items:center;height:39px;font-size:15px;display:grid}.chat-contact strong,.chat-contact small{display:block}.chat-contact strong{color:#334155;font-size:12px;font-weight:600}.chat-contact small{color:#94a3b8;margin-top:4px;font-size:10px}.chat-section-label{color:#94a3b8;margin:22px 10px 8px;font-size:10px}.chat-empty{color:#94a3b8;text-align:center;padding:24px 14px;font-size:11px;line-height:2}.chat-messages{overscroll-behavior:contain;scrollbar-width:thin;background:#f8fafd;flex-direction:column;flex:1;gap:14px;min-height:0;padding:18px 14px;display:flex;overflow-y:auto}.chat-message{overflow-wrap:anywhere;background:#fff;border:1px solid #e5eaf1;border-radius:13px 13px 13px 3px;flex-shrink:0;align-self:flex-end;max-width:90%;padding:12px;box-shadow:0 2px 5px #0f172a03}.chat-message.is-mine{background:#edf4ff;border-color:#dce8ff;border-radius:13px 13px 3px;align-self:flex-start}.chat-message>header{color:#94a3b8;flex-wrap:wrap;align-items:center;gap:5px 8px;margin-bottom:7px;font-size:9px;display:flex}.chat-message>header strong{color:#64748b;font-size:10px;font-weight:600}.chat-message>p{white-space:pre-wrap;margin:0;font-size:12px;line-height:2.05}.chat-message time{color:#94a3b8;text-align:left;margin-top:8px;font-size:8px;line-height:1.8;display:block}.chat-mention{color:#1d4ed8;cursor:pointer;font:inherit;background:#dbeafe88;border:0;border-radius:4px;padding:0 3px}.chat-message-images{gap:7px;margin-top:8px;display:grid}.chat-message-images img{object-fit:contain;border-radius:8px;max-width:100%;max-height:280px;display:block}.chat-older{color:#2563eb;cursor:pointer;background:#fff;border:1px solid #e2e8f0;border-radius:15px;flex-shrink:0;align-self:center;padding:8px 14px;font-size:10px}.chat-error{color:#b4233c;background:#fff1f2;flex-shrink:0;margin:0;padding:10px 15px;font-size:11px;line-height:1.9}.chat-compose{background:#fff;border-top:1px solid #e2e8f0;flex-shrink:0;padding:12px;position:relative}.chat-compose textarea{resize:vertical;background:#fafcff;border:1px solid #e2e8f0;border-radius:11px;outline:none;width:100%;min-height:70px;max-height:150px;padding:11px;font-size:12px;line-height:1.9}.chat-compose-actions{align-items:center;gap:8px;margin-top:8px;display:flex}.chat-compose-actions small{color:#94a3b8;flex:1;font-size:8px}.chat-attach{color:#2563eb;cursor:pointer;background:#eff6ff;border-radius:8px;padding:7px 9px;font-size:10px;display:block;position:relative;overflow:hidden}.chat-attach input{opacity:0;cursor:pointer;width:100%;position:absolute;inset:0}.chat-send{color:#fff;cursor:pointer;background:#2563eb;border:0;border-radius:9px;padding:8px 16px;font-size:11px}.chat-send:disabled{opacity:.45;cursor:default}.chat-suggestions{background:#fff;border:1px solid #dbe6f7;border-radius:12px;gap:3px;max-height:185px;margin-bottom:9px;padding:5px;display:grid;overflow-y:auto}.chat-suggestions button{color:#475569;text-align:right;cursor:pointer;background:#f8faff;border:0;justify-content:space-between;gap:10px;width:100%;padding:9px;font-size:10px;display:flex}.chat-suggestions strong{font-weight:500}.chat-suggestions bdi{color:#2563eb}.chat-previews{gap:8px;margin-bottom:10px;display:flex;overflow-x:auto}.chat-previews>div{flex:0 0 64px;position:relative}.chat-previews img{object-fit:cover;border-radius:9px;width:64px;height:64px}.chat-previews button{color:#fff;cursor:pointer;background:#0f172abf;border:0;border-radius:50%;width:20px;height:20px;position:absolute;top:0;left:0}.chat-sr-only{clip:rect(0,0,0,0);width:1px;height:1px;position:absolute;overflow:hidden}.chat-panel button:focus-visible,.chat-panel a:focus-visible,.chat-menu-button:focus-visible{outline-offset:2px;outline:2px solid #2563eb}@media (max-width:760px){.management-nav .chat-menu-button{white-space:nowrap;flex-shrink:0;width:auto;padding:9px 11px}.chat-panel{border:0;border-radius:0;width:min(410px,100vw);max-width:100vw;height:100dvh;inset:0 0 auto}.chat-compose{padding-bottom:max(12px,env(safe-area-inset-bottom))}}@media (prefers-reduced-motion:reduce){.chat-backdrop{-webkit-backdrop-filter:none;backdrop-filter:none}}
