.chat-media-tools{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.chat-media-tool,.chat-media-tools .chat-media-tool{display:inline-flex;position:relative;align-items:center;min-height:32px;padding:4px 10px;border:1px solid #ded9f1;border-radius:7px;background:#f7f4ff;color:#4b3ca1;font:inherit;font-size:.85rem;cursor:pointer;text-decoration:none}
.chat-media-tool:hover{background:#efe9fc}
.chat-media-tool.is-busy{cursor:wait}
.chat-media-tool:focus-within{outline:2px solid #8777ee;outline-offset:1px}
.chat-media-tool input[type=file]{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.chat-attachment{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:7px}
.chat-attachment-preview{width:70px;height:50px;object-fit:contain;background:#f7f6fc;border:1px solid #e3def2;border-radius:7px}
.chat-link-row input{flex:1 1 140px;min-width:0;width:auto;border:1px solid #e0dcef;border-radius:7px;padding:6px 8px;color:#19213a;background:#fff}
.chat-message-link{color:#49349e;text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}
.chat-message-media{margin-top:5px;min-height:24px;min-width:0}
.chat-message-image{display:block;max-width:min(100%,340px);max-height:280px;width:auto;height:auto;object-fit:contain;border-radius:8px}
.chat-media-status{font-size:.85rem;color:#586680}
