.chat-message-meta,.has-sticker .chat-message-meta{display:flex;align-items:center;justify-content:flex-start;gap:5px;flex-wrap:wrap;align-self:flex-start;margin:5px 0 0;padding:0;background:transparent;min-height:32px;width:auto;color:#51435f}
.chat-message.mine .chat-message-meta{align-self:flex-end;justify-content:flex-end}
.chat-meta-chip{display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:4px 8px;min-height:28px;background:#f6f3fa;border:1px solid #d5ccdf;border-radius:8px;font-size:11px;line-height:1.4}
.chat-meta-chip svg{width:16px;height:16px}.chat-meta-chip.chat-delivery svg{width:22px}
.chat-message .chat-message-menu,.chat-message.mine .chat-message-menu{order:0;opacity:1;align-self:auto;display:inline-flex;width:44px;min-width:44px;height:36px;min-height:36px;padding:7px 10px;border:1px solid #a99bb8;background:#fff;color:#433052;border-radius:9px;flex:none}
.chat-message-menu svg,.chat-header .chat-details-button svg{width:24px;height:24px;stroke-width:3;stroke-linecap:round}
.chat-message .chat-message-menu:hover,.chat-header .chat-details-button:hover{background:#e8def6;border-color:#796397}
.chat-header .chat-details-button{background:#f4eff9;border:1px solid #b5a8c3;border-radius:10px;color:#433052}
.chat-sticker-info{display:block;max-width:100%;padding:0;background:transparent;border-radius:12px}.chat-sticker-info:hover{background:#e8dff280}
.chat-video{display:block;max-width:100%;max-height:360px;border-radius:10px;background:#171719}
.chat-file.is-circle{background:transparent;border:0;padding:0;max-width:248px}.chat-circle-player{width:224px;max-width:100%;margin:auto}
.chat-circle-frame{position:relative;aspect-ratio:1;border-radius:50%;overflow:hidden;background:#242329}
.chat-circle-frame video{display:block;width:100%;height:100%;object-fit:cover}
.chat-circle-play{position:absolute;inset:0;margin:auto;width:48px;height:48px;min-height:48px;display:grid;place-items:center;border-radius:50%;background:#f3eff5eb;color:#332744;border:1px solid #cbbddc;padding:12px}
.chat-circle-player.playing .chat-circle-play{inset:auto 12px 12px auto;margin:0;width:44px;height:44px;min-height:44px;padding:11px;background:#f3eff5d9}
.chat-circle-controls{display:flex;align-items:center;gap:8px}.chat-circle-controls input{padding:0;min-height:36px;accent-color:#70538f;flex:1;min-width:0}.chat-circle-controls small{font-variant-numeric:tabular-nums}
.chat-transcript{margin-top:5px}.chat-transcript>button{display:inline-flex;align-items:center;gap:6px;font-size:12px;min-height:44px;padding:7px 10px;background:#f4eff9;border:1px solid #d5ccdf}
.chat-transcript svg{width:16px;height:16px}.chat-transcript small{display:block;max-width:34ch;font-size:11px;line-height:1.5;color:#823e47;margin:4px 0}
.chat-transcript details{font-size:12px;max-width:44ch}.chat-transcript summary{min-height:44px;align-content:center;cursor:pointer;color:#5a3c78}.chat-transcript p{white-space:pre-wrap;overflow-wrap:anywhere;margin:0;line-height:1.6;padding:8px 0}
.chat-record-menu{display:grid;padding:4px;gap:4px}.chat-record-menu button{display:flex;align-items:center;gap:10px;text-align:left;min-height:44px;background:transparent;font-size:13px}.chat-record-menu button:hover{background:#eee7f8}
.chat-record-panel{flex:none;display:grid;justify-items:center;gap:8px;padding:12px;background:#f6f2fa;border-top:1px solid #d5ccdf;max-height:55vh;overflow:auto}
.chat-record-preview{width:168px;height:168px;border-radius:50%;object-fit:cover;background:#242329;transform:scaleX(-1)}.chat-record-preview.recorded{transform:none}.chat-record-time{font-size:12px;text-align:center;line-height:1.5;font-variant-numeric:tabular-nums}.chat-record-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}.chat-record-actions button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;font-size:12px}.chat-record-panel audio{max-width:100%}.chat-record-error{font-size:12px;margin:0}
.chat-media-categories:has([data-sticker-pack]){gap:6px}.chat-media-categories [data-sticker-pack]{width:auto;min-width:44px;padding:6px 10px;font-size:12px;white-space:nowrap}.chat-pack-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.chat-pack-heading>button{width:44px;padding:11px;min-height:44px;background:transparent}.chat-sticker-grid .sticker-create-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;border:1px dashed #a18db9;background:#f7f3fb;border-radius:12px;min-height:108px}.sticker-create-tile svg{width:30px;height:30px}.sticker-create-tile span{font-size:11px;line-height:1.4;color:#544161}.sticker-pack-info>p{font-size:13px;color:#655673}.sticker-pack-info .chat-sticker-grid{max-height:50vh;overflow:auto;margin-bottom:16px}.sticker-pack-info .chat-sticker-grid>img{width:100%;height:auto;aspect-ratio:1;object-fit:contain}.sticker-pack-info>button{margin:0 8px 8px 0}
.sticker-preview{display:grid;justify-items:center;gap:8px;padding:12px;border:1px solid #d5ccdf;background:#efebf5;border-radius:12px}.sticker-preview img{width:180px;height:180px;object-fit:contain}.sticker-preview small{color:#5e506b}.sticker-preview[hidden]{display:none}#sticker-create .modal-footer button{display:inline-flex;align-items:center;gap:6px}#sticker-create input[type=file]{font-size:12px}
@media(max-width:600px){.chat-circle-player{width:200px}.chat-message-meta,.has-sticker .chat-message-meta{gap:4px}.chat-message .chat-message-menu{height:44px;min-height:44px}.chat-meta-chip{min-height:30px}.chat-composer-row{gap:2px}.chat-composer-row>.icon-button{width:40px;min-width:40px;padding:10px}.chat-composer-row textarea{min-width:0}.chat-record-preview{width:144px;height:144px}}
@media(prefers-reduced-motion:reduce){.chat-circle-play{transition:none}}

.chat-message.has-circle .chat-bubble{background:transparent;box-shadow:none;padding:0}.chat-message.has-circle .chat-file-info{padding:5px 0}.chat-message.has-circle .chat-file-info strong{font-size:11px}.chat-circle-frame{border:1px solid #d5ccdf}
