/* M2-09 聊天页任务进度条（v8）——只加样式，不动现有页面结构。 */
#chat-task-progress {
  margin: 6px 0 2px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}
#chat-task-progress .chat-task-bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
#chat-task-progress .chat-task-fill {
  height: 100%;
  width: 0;
  background: currentColor;
  transition: width 160ms ease;
}
#chat-task-progress .chat-task-label {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.8;
}
#chat-task-progress .chat-task-demo {
  margin-left: 6px;
  font-size: 11px;
  opacity: 0.6;
}

#chat-pets {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 4px 0 8px;
}
#chat-pets .chat-pet.current {
  opacity: 0.6;
}
#chat-pets .chat-form-toggle {
  margin-left: auto;
}
/* M2-17：麦克风在收音时要让用户看得见（声音可能发往厂商云端），不能只靠 title。 */
#btn-mic.listening {
  background: var(--accent);
  color: #fff;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
