/* ============================================================
   TTS 服务集成相关样式（增量补充）
   ============================================================ */

/* 侧边栏 TTS 状态指示器 */
.tts-status-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: background 0.15s;
  font-size: 12px;
}

.tts-status-mini:hover {
  background: rgba(255, 255, 255, 0.1);
}

.tts-status-mini .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tts-status-mini .dot.green {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
}

.tts-status-mini .dot.red {
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
}

.tts-status-mini.ok {
  border-color: rgba(34, 197, 94, 0.3);
}

.tts-status-mini.warn {
  border-color: rgba(239, 68, 68, 0.3);
}

/* 任务创建页 TTS 引擎提示 */
.tts-engine-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
}

.tts-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 6px;
}

/* 引擎卡片网格 */
.engine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.engine-card {
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  display: grid;
  gap: 8px;
  align-content: start;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.engine-card.active {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.engine-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.engine-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* 音色卡片网格 */
.voice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.voice-card {
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  display: grid;
  gap: 6px;
  align-content: start;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.voice-card.active {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.voice-card.cloned {
  border-color: #fed7aa;
  background: linear-gradient(180deg, #fffbeb 0%, #fff 60%);
}

.voice-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.voice-card .actions {
  margin-top: 4px;
}

/* 小号按钮 */
.btn.small-btn {
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
}

/* 警告色文本 */
.stat-value.warn-text {
  color: #b45309;
}

/* 紫色标签（用于"支持克隆"等） */
.tag.violet {
  background: #ede9fe;
  color: #5b21b6;
}

/* 表格链接样式 */
td a {
  color: #0891b2;
  text-decoration: none;
}

td a:hover {
  text-decoration: underline;
}

/* 行内代码样式 */
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 4px;
  color: #6d28d9;
  font-size: 0.92em;
}

.empty code {
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 4px;
  color: #6d28d9;
  font-size: 12px;
}
