.voice-icon { width: 22px; height: 22px; flex: 0 0 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.composer, .composer.has-text { grid-template-columns: minmax(0, 1fr) repeat(4, 38px); }
.composer.direct-composer { grid-template-columns: minmax(0, 1fr) repeat(4, 38px) 96px; }
.composer textarea { order: 10; }
.composer > button[type=submit] { order: 20; }
.composer > .voice-record { order: 30; }
.composer > .attach-button { order: 40; }
.composer > .sticker-toggle { order: 50; }
.composer > .burn-after-toggle { order: 60; }
.composer > .voice-record { grid-column: 3; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 5px; background: #e4e4e4; color: #444; }
.composer > .attach-button, .composer.has-text > .attach-button { grid-column: 4; display: grid; }
.composer > .sticker-toggle, .composer.has-text > .sticker-toggle { grid-column: 5; }
.composer > .burn-after-toggle, .composer.has-text > .burn-after-toggle { grid-column: 6; }
.composer > .burn-after-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 4px; width: 96px; height: 38px; margin: 0; color: #555; font-size: 12px; white-space: nowrap; cursor: pointer; }
.burn-after-toggle input { width: 16px; height: 16px; margin: 0; accent-color: #bd3636; }
.burn-after-toggle:has(input:checked) { color: #b13b3b; font-weight: 600; }
.media-trigger.ephemeral-media { display: grid; place-items: center; width: 180px; max-width: 100%; height: 72px; aspect-ratio: auto; color: #b13b3b; background: #fff2f2; border: 1px dashed #dca5a5; }
.ephemeral-media > .ephemeral-label { position: static; transform: none; display: block; padding: 10px; background: transparent; color: inherit; font-size: 13px; }
.burned-media { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; min-height: 42px; padding: 8px 12px; box-sizing: border-box; color: #888; background: #f1f1f1; font-size: 13px; }
.media-loading { color: #fff; font-size: 14px; }
.media-viewer { padding: max(64px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom)); }
.media-viewer img, .media-viewer video { max-height: calc(100dvh - 96px); }
.voice-message { display: flex; align-items: center; gap: 8px; width: 220px; max-width: 100%; min-height: 42px; padding: 4px 0; background: transparent; color: inherit; text-align: left; white-space: nowrap; }
.voice-label { font-size: 14px; }
.voice-time { margin-left: auto; font-size: 12px; font-variant-numeric: tabular-nums; }
.voice-dialog { width: min(380px, calc(100% - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 20px; box-sizing: border-box; overflow: auto; border: 1px solid #ddd; border-radius: 8px; color: #222; background: #fff; }
.voice-dialog::backdrop { background: #0007; }
.voice-dialog h2 { margin: 0; font-size: 18px; font-weight: 600; }
.voice-target { margin: 8px 0 20px; color: #666; overflow-wrap: anywhere; font-size: 14px; }
.voice-status { min-height: 44px; margin: 12px 0; font-size: 15px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.voice-error { color: #ba3434; }
.voice-dialog audio { display: block; width: 100%; height: 44px; margin: 12px 0; }
.voice-dialog footer { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 20px; }
.voice-dialog button { min-height: 40px; padding: 8px 14px; border-radius: 5px; color: #333; background: #eee; font-size: 14px; }
.voice-dialog .voice-stop { width: 100%; color: #b42b2b; background: #fff1f1; }
.voice-dialog [data-voice-send] { background: #07a654; color: #fff; }
.voice-dialog button:disabled { opacity: .5; cursor: default; }
.voice-dialog [hidden] { display: none; }
@media (max-width: 480px) {
  .composer, .composer.has-text { display: flex; flex-wrap: wrap; gap: 6px; }
  .composer textarea { flex: 0 0 100%; }
  .composer > button[type=submit], .composer.has-text > button[type=submit] { order: 70; width: 40px; flex: 0 0 40px; margin-left: auto; }
  .composer > .voice-record, .composer > .attach-button, .composer > .sticker-toggle { width: 40px; flex: 0 0 40px; }
  .composer > .burn-after-toggle { flex: 0 0 96px; }
}
