.tts-card { padding: 28px; }
.tts-title-bar { background: linear-gradient(135deg, var(--site-dark, #0f766e) 0%, var(--site-dark-2, #115e59) 100%); border-radius: 10px 10px 0 0; padding: 18px 24px; margin: -28px -28px 24px; }
.tts-title-bar h1 { color: #fff; margin: 0; font-size: 1.4em; text-align: center; }

.tts-unsupported { display: none; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; border-radius: 8px; padding: 12px 14px; font-size: .92em; margin-bottom: 18px; }
.tts-unsupported.show { display: block; }

.tts-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.tts-field > label, .tts-field > .tts-label { font-weight: 600; font-size: .88em; color: #374151; }
.tts-textarea { width: 100%; min-height: 180px; resize: vertical; border: 1px solid #ddd; border-radius: 8px; padding: 12px 14px; font: inherit; font-size: .98em; line-height: 1.55; box-sizing: border-box; outline: none; }
.tts-textarea:focus, .tts-select:focus, .tts-btn:focus-visible, .tts-range:focus-visible { outline: 3px solid rgba(20,184,166,.45); outline-offset: 2px; }

.tts-meta-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .85em; color: #6b7280; }
.tts-warn { display: none; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 8px; padding: 10px 12px; font-size: .88em; line-height: 1.45; }
.tts-warn.show { display: block; }

.tts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; margin-bottom: 20px; }
.tts-select { width: 100%; border: 1px solid #ddd; border-radius: 8px; padding: 10px 12px; font-size: .95em; background: #fff; box-sizing: border-box; }
.tts-voice-note { font-size: .82em; color: #6b7280; }
.tts-slider { display: flex; flex-direction: column; gap: 6px; }
.tts-slider-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: .88em; color: #374151; }
.tts-slider-head output { font-variant-numeric: tabular-nums; color: var(--site-dark, #0f766e); }
.tts-range { width: 100%; accent-color: var(--site-dark, #0f766e); }

.tts-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 18px; }
.tts-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 30px; padding: 10px 20px; font-weight: 600; font-size: .92em; cursor: pointer; transition: background .2s ease, opacity .2s ease; }
.tts-btn:disabled { opacity: .45; cursor: not-allowed; }
.tts-btn-primary { background: var(--site-dark, #0f766e); color: #fff; }
.tts-btn-primary:hover:not(:disabled) { background: var(--site-dark-2, #115e59); }
.tts-btn-ghost { background: #f3f4f6; color: #374151; border-color: #ddd; }
.tts-btn-ghost:hover:not(:disabled) { background: #eceef1; }

.tts-status { text-align: center; font-size: .9em; color: #374151; min-height: 1.4em; }
.tts-status-state { display: inline-block; font-weight: 700; margin-right: 6px; color: var(--site-dark, #0f766e); }

@media (max-width: 600px) {
    .tts-card { padding: 20px 16px; }
    .tts-title-bar { margin: -20px -16px 20px; }
    .tts-grid { grid-template-columns: 1fr; }
    .tts-actions { flex-direction: column; }
    .tts-btn { justify-content: center; width: 100%; }
    .tts-textarea { min-height: 150px; }
}
