/* Messages UI CSS */
.msg{--messages-tail:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2217%22%20height%3D%2218%22%20viewBox%3D%220%200%2017%2018%22%3E%3Cpath%20d%3D%22M1.8%2011C2.79%2011%203.44%2011.31%204.77%2012.24C5.48%2012.74%208.22%2014.84%2010.49%2016.09C12.45%2017.17%2014.13%2017.91%2014.55%2017.94C15.81%2018.04%2015.97%2016.85%2015.48%2016.21C14.99%2015.57%2014.43%2014.74%2014.21%2014.29C13.73%2013.28%2013.58%2012.75%2013.58%2011.24C13.58%209.38%2014.9%208%2015.94%207.08C16.03%207%2016.15%206.9%2016.29%206.79C16.53%206.6%2016.76%206.41%2016.99%206.22V0H0V11H1.8Z%22%2F%3E%3C%2Fsvg%3E")}
.chat{display:flex;flex-direction:column;align-items:flex-start;max-width:680px;margin:0 auto 30px;isolation:isolate;user-select:none}.chat>*{box-sizing:border-box}.msg{box-sizing:border-box;position:relative;width:fit-content;max-width:70%;min-height:40px;margin:0 0 4px;padding:9px 12px;border-radius:20px;font-size:17px;line-height:22px;overflow-wrap:break-word;align-content:center}.msg:not(.pic)>p{margin:0;font:inherit}.msg.sent,.emoji.sent{align-self:flex-end;margin-left:auto}.msg.received,.emoji.received{align-self:flex-start;margin-right:auto}.msg.sent{color:#fff;background:#0088ff linear-gradient(to bottom,#4ebaff 0%,#0088ff 50%,#0088ff 100%) fixed;background-size:100% 100vh}.msg.received{color:#333;background:#e0e0e0}.msg.last{margin-bottom:10px}.msg:not(.pic).last:before,.msg.pic.info.last:before{content:"";position:absolute;bottom:-6.95px;width:17px;height:18px;background:inherit;-webkit-mask:var(--messages-tail) center/100% 100% no-repeat;mask:var(--messages-tail) center/100% 100% no-repeat}.msg.sent.last:before{right:7.03px}.msg.received.last:before{left:7.03px;transform:scaleX(-1)}.msg.sent a{color:inherit;text-decoration:underline}.msg.pic{width:70%;padding:0;line-height:0}.msg.pic img{display:block;width:100%;height:auto;border-radius:20px}.msg.pic.info img,.msg.pic.info>div:first-child{display:block;width:100%;border-radius:20px 20px 0 0}.msg.pic.info p{box-sizing:border-box;margin:0!important;padding:9px 12px;font-size:17px;font-weight:400;line-height:22px;user-select:none}.msg.pic.info audio{display:block;width:100%}.msg.pic:not(.info):not(.last){overflow:hidden}.msg.pic:not(.info).last{border-radius:0;--image-mask:linear-gradient(#000 0 0) center top/calc(100% - 40px) calc(100% - 7px) no-repeat,linear-gradient(#000 0 0) center 20px/100% calc(100% - 47px) no-repeat,radial-gradient(circle at 20px 20px,#000 20px,transparent 20.5px) left top/40px 40px no-repeat,radial-gradient(circle at 20px 20px,#000 20px,transparent 20.5px) right top/40px 40px no-repeat,radial-gradient(circle at 20px 20px,#000 20px,transparent 20.5px) left bottom 7px/40px 40px no-repeat,radial-gradient(circle at 20px 20px,#000 20px,transparent 20.5px) right bottom 7px/40px 40px no-repeat,var(--messages-tail) right 7.03px bottom/17px 18px no-repeat;-webkit-mask:var(--image-mask);mask:var(--image-mask)}.msg.pic:not(.info).last img{border-radius:0}.msg.pic.received:not(.info).last{transform:scaleX(-1)}.msg.pic.received:not(.info).last img{transform:scaleX(-1)}.emoji{position:relative;width:fit-content;font-size:48px;line-height:1;margin:6px 0}.chat>.emoji{line-height:1}.emoji:not(img){font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif}img.emoji{font-size:inherit;line-height:inherit;margin:0}.timestamp{align-self:stretch;color:#6f6f6f;text-align:center;font-size:14px;font-weight:700;line-height:18px;margin:32px 0}.timestamp+.timestamp{margin-top:-24px}@supports selector(:has(*)){.timestamp:has(+.timestamp){margin-bottom:0}.timestamp+.timestamp{margin-top:8px}}.sparetime{align-self:stretch;height:8px}.chat>.sparetime{max-width:none;margin:0;clear:none}.bubble{--typing-bubble-default:#e0e0e0;--typing-dot-default:#aaa;--typing-dot-active-default:#777;position:relative;align-self:flex-start;display:block;width:110px;height:51px;margin:8px 0}.bubble-1,.bubble-2,.bubble-3{position:absolute;background:var(--typing-bubble,var(--typing-bubble-default));border-radius:50%}.bubble-1{left:0;top:0;width:77px;height:44px;border-radius:22px}.bubble-2{left:0;top:32px;width:16px;height:16px}.bubble-3{left:-6px;top:43px;width:8px;height:8px}.dot-1,.dot-2,.dot-3{position:absolute;top:16px;width:11px;height:11px;border-radius:50%;background:var(--typing-dot,var(--typing-dot-default));animation:typing-pulse 1.2s infinite}.dot-1{left:14px}.dot-2{left:32px;animation-delay:.2s}.dot-3{left:50px;animation-delay:.4s}@keyframes typing-pulse{0%,100%{background:var(--typing-dot,var(--typing-dot-default))}50%{background:var(--typing-dot-active,var(--typing-dot-active-default))}}@media(prefers-reduced-motion:reduce){.dot-1,.dot-2,.dot-3{animation:none}}.chat>:last-child:not(.timestamp){margin-bottom:0}.msg.sent.mobile-bg{background-image:none}@media(max-width:1024px){.msg.sent{background-image:none}}@media(prefers-color-scheme:dark){.msg.received{background-color:#393939;color:#f5f5f7}.timestamp{color:#a8a8a8}.bubble{--typing-bubble-default:#393939;--typing-dot-default:#888;--typing-dot-active-default:#bbb}}
