
.chat-compose{position:relative}
.compose-tools{gap:8px;align-items:center;flex-wrap:wrap}
.compose-tools select{max-width:180px;background:#fff;color:#211a32;border:1px solid #efdde7;border-radius:9px;padding:8px}
.compose-tools .text-btn,.emojiBtn{background:#e92e83!important;color:#fff!important;border:1px solid #e92e83!important;border-radius:8px;padding:9px 12px}
.compose-tools .tool-active{background:#ad1c60!important}
.color-tool{display:inline-flex;align-items:center;gap:6px;background:#fff0f6;border:1px solid #f1cada;border-radius:8px;padding:5px 8px;font-weight:800;color:#e92e83}
.color-tool input[type=color]{width:27px;height:27px;border:0;padding:0;background:transparent;cursor:pointer}
.image-tool{display:inline-flex;align-items:center;padding:8px 12px;background:#e92e83;color:#fff;border:1px solid #e92e83;border-radius:8px;font-weight:700;cursor:pointer}
.emoji-picker{display:grid;grid-template-columns:repeat(10,minmax(28px,1fr));gap:4px;max-height:180px;overflow:auto;padding:10px;margin:8px 0;background:#fff;border:1px solid #f0d3e1;border-radius:12px;box-shadow:0 8px 25px #4a173012}
.emoji-picker[hidden]{display:none}
.emoji-picker .emoji-choice{padding:5px 0!important;min-width:0;border-radius:7px;font-size:21px;line-height:1.3;background:#fff0f6!important;border:1px solid transparent!important}
.emoji-picker .emoji-choice:hover{background:#fbd4e6!important}
.chat-attachment-preview{display:block;width:192px;height:192px;max-width:100%;object-fit:cover;border-radius:10px;border:1px solid #f0c9dc;cursor:zoom-in;margin:4px 0}
.chat-image-viewer[hidden]{display:none}
.chat-image-viewer{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;padding:32px;background:rgba(18,12,24,.9)}
.chat-image-viewer img{max-width:calc(100vw - 64px);max-height:calc(100vh - 64px);width:auto;height:auto;object-fit:contain;background:#fff;border-radius:8px}
.chat-image-close{position:absolute;right:22px;top:16px;width:44px;height:44px;border-radius:50%;font-size:28px;line-height:1}
@media(max-width:650px){.emoji-picker{grid-template-columns:repeat(7,minmax(28px,1fr))}.compose-tools select{max-width:140px}.chat-image-viewer{padding:12px}.chat-image-viewer img{max-width:calc(100vw - 24px);max-height:calc(100vh - 24px)}}

.chat-image-pending{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:8px 0;padding:10px 12px;border:1px solid #f0c9dc;background:#fff7fb;border-radius:12px}.chat-image-pending[hidden]{display:none}.chat-image-pending .chat-attachment-preview{width:192px;height:192px;object-fit:cover;margin:0}.chat-image-pending .text-btn{padding:7px 10px;border-radius:8px;background:#e92e83!important;color:#fff!important}
