.cf-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2147483000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.cf-panel {
  width: 340px;
  background: #11131a;
  color: #e9ecf3;
  border-radius: 18px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  border: 1px solid #232634;
}
.cf-widget.cf-hidden { display: none; }
.cf-head {
  padding: 16px 18px 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.cf-title { font-size: 15px; font-weight: 600; }
.cf-status { font-size: 12px; color: #8b93a7; margin-top: 2px; }
.cf-close {
  background: transparent;
  border: none;
  color: #8b93a7;
  cursor: pointer;
  padding: 2px;
  line-height: 0;
  border-radius: 6px;
  flex: none;
}
.cf-close:hover { color: #fff; background: #232634; }
.cf-log {
  height: 220px;
  overflow-y: auto;
  padding: 6px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cf-log .line { font-size: 13px; line-height: 1.45; }
.cf-log .line .r { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: #6c7488; margin-bottom: 2px; }
.cf-log .line.user .t { color: #cfe3ff; }
.cf-log .line.agent .t { color: #e9ecf3; }
.cf-mic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 8px auto 18px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #2f6bff, #6b3bff);
  transition: transform .15s, box-shadow .2s;
}
.cf-mic:hover { transform: scale(1.05); }
.cf-mic.connecting { background: #3a3f52; animation: cf-pulse 1s infinite; }
.cf-mic.listening {
  background: linear-gradient(135deg, #ff3b6b, #ff6b3b);
  box-shadow: 0 0 0 0 rgba(255, 59, 107, 0.6);
  animation: cf-ring 1.4s infinite;
}
@keyframes cf-ring {
  0% { box-shadow: 0 0 0 0 rgba(255, 59, 107, 0.55); }
  70% { box-shadow: 0 0 0 18px rgba(255, 59, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 107, 0); }
}
@keyframes cf-pulse { 50% { opacity: .6; } }
