.chat-upload-tools{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:5px 0 9px}.chat-attach-button{display:inline-flex!important;align-items:center;gap:5px!important;padding:7px 10px!important;border:1px solid #dce7f6!important;background:#f6faff!important;border-radius:9px!important;font-size:11px!important;color:#3777bd!important;position:relative;cursor:pointer;font-weight:400!important;margin:0!important;overflow:hidden}.chat-attach-button>span:first-child{font-size:19px}.chat-attach-button input[type=file]{position:absolute!important;width:100%!important;height:100%!important;inset:0;opacity:0;padding:0!important;cursor:pointer;margin:0!important}.chat-upload-preview{display:flex;flex-wrap:wrap;gap:7px;font-size:11px;color:#b04959}.chat-upload-preview>span{position:relative;width:58px;height:58px}.chat-upload-preview img{height:58px;width:58px;object-fit:cover;border-radius:9px;border:1px solid #d5e2f2}.chat-upload-preview button{position:absolute;right:-4px;top:-5px;width:21px;height:21px;border-radius:50%;border:1px solid #d6e1ef;background:#fff;color:#8a5261;font-size:15px;line-height:1;padding:0}.chat-message-images{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;max-width:360px;margin-top:5px}.chat-message-images:has(button:only-child){grid-template-columns:1fr}.chat-message-images button{padding:0;border:0;border-radius:11px;overflow:hidden;background:#dce7f7;cursor:zoom-in;max-width:240px}.chat-message-images img{width:100%;height:150px;object-fit:cover;display:block}.chat-image-viewer{border:1px solid #d9e4f3;border-radius:17px;padding:14px;max-width:min(900px,94vw);max-height:94dvh;background:#fff;box-shadow:0 20px 90px #10234460}.chat-image-viewer::backdrop{background:#0c1a32cc;backdrop-filter:blur(4px)}.chat-image-viewer header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:10px;font-size:13px;color:#2c507a}.chat-image-viewer header button{width:32px;height:32px;border-radius:50%;border:0;background:#edf3fc;color:#426b9e;font-size:23px}.chat-image-viewer>img{display:block;max-width:100%;max-height:calc(90dvh - 115px);width:auto;height:auto;margin:auto;object-fit:contain}.chat-image-viewer>a{display:block;text-align:right;margin-top:10px;color:#286fc8;font-size:12px}.chat-message-images:has(button:only-child) img{height:auto;max-height:260px;object-fit:contain}

.chat-attach-button>svg{width:18px;height:18px;flex-shrink:0}

.chat-emoji-tools{position:relative;display:inline-flex;align-self:center}.chat-emoji-toggle{display:grid;place-items:center;width:35px;height:35px;background:#edf4ff;color:#0866ff;border:1px solid #d6e3f6;border-radius:10px;padding:7px;cursor:pointer}.chat-emoji-toggle svg{width:21px;height:21px}.chat-emoji-toggle:hover,.chat-emoji-toggle[aria-expanded=true]{background:#dbeaff}.chat-emoji-picker{position:absolute;bottom:calc(100% + 12px);left:0;width:min(292px,calc(100vw - 72px));padding:13px;background:#fff;border:1px solid #d3deef;border-radius:16px;box-shadow:0 9px 35px #17386d29;z-index:12;color:#182c48}.chat-emoji-picker[hidden]{display:none!important}.chat-emoji-picker>strong{display:block;font-size:13px;line-height:1.5;margin:0 0 10px;font-family:inherit;color:#182c48}.chat-emoji-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px;max-height:245px;overflow-y:auto}.chat-emoji-grid button{display:grid;place-items:center;width:100%;min-width:0;height:37px;font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-size:23px;line-height:1;background:#fff;color:#172333;border:0;border-radius:8px;padding:4px;cursor:pointer}.chat-emoji-grid button:hover,.chat-emoji-grid button:focus-visible{background:#edf4ff;outline:2px solid #91b7fa;outline-offset:-2px}.chat-emoji-toggle:focus-visible{outline:2px solid #0866ff;outline-offset:2px}
