/* Дауыс жүйесі: 🔊 батырмалары, жүктелу белгісі, баптаулар, жүктеу терезесі */
.tts-say { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: 6px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; line-height: 1; vertical-align: middle; transition: transform .12s, background .15s; }
.tts-say:hover { transform: scale(1.08); border-color: var(--accent); }
.tts-say.on { background: var(--accent); border-color: var(--accent); animation: tts-pulse 1.2s ease-in-out infinite; }
.msg.bot .bubble .tts-say { float: right; margin: -2px -4px 0 8px; }
.bc-msg.bot .tts-say { float: right; margin: -2px -4px 0 8px; }
@keyframes tts-pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 50% { box-shadow: 0 0 0 6px transparent; } }

.tts-chip { position: fixed; z-index: 90; left: 50%; top: 14px; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 8px 14px; border-radius: 999px; background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow-2); font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tts-set { margin: 14px 0 0; }
.tts-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; }
.tts-row label, label.tts-row { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.tts-row span { flex: none; min-width: 84px; font-weight: 600; font-size: 13px; }
.tts-row select { flex: 1; min-width: 0; padding: 7px 8px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); font-size: 12.5px; }
.tts-rate { display: grid; gap: 4px; padding: 8px 0; font-size: 13px; }
.tts-rate input { width: 100%; accent-color: var(--accent); }
.tts-models { display: grid; gap: 4px; padding: 6px 0; border-top: 1px dashed var(--border); margin-top: 6px; }
.tts-model { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; }

.tts-dl h3 { margin: 0 0 6px; }
.tts-dl-btns { display: grid; gap: 8px; margin: 14px 0 8px; }
.tts-dl-btns .btn { width: 100%; justify-content: center; }

@media (max-width: 760px) {
  .tts-row span { min-width: 70px; }
  .tts-row select { font-size: 16px; }
}
