.voice-live-page { --vl-accent: #a78bfa; max-width: 1400px; }

.voice-live-grid {
  display: grid;
  grid-template-columns: 280px 1fr 320px;
  gap: 1rem;
  min-height: 520px;
}
@media (max-width: 1100px) {
  .voice-live-grid { grid-template-columns: 1fr; }
}

.voice-panel {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(10, 14, 20, 0.9);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.voice-mic-zone { align-items: center; text-align: center; }
.voice-mic-btn {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid rgba(167, 139, 250, 0.45);
  background: radial-gradient(circle at 30% 30%, rgba(167, 139, 250, 0.25), rgba(15, 20, 25, 0.95));
  color: #f8fafc;
  font-size: 2.5rem;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  margin: 0.5rem auto 1rem;
}
.voice-mic-btn:hover { border-color: rgba(167, 139, 250, 0.8); transform: scale(1.03); }
.voice-mic-btn.is-listening {
  border-color: #f87171;
  box-shadow: 0 0 0 8px rgba(248, 113, 113, 0.2);
  animation: vl-pulse 1.2s ease-in-out infinite;
}
.voice-mic-btn.is-busy {
  border-color: #38bdf8;
  box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.15);
}
.voice-mic-btn.is-handsfree {
  border-color: #34d399;
  box-shadow: 0 0 0 8px rgba(52, 211, 153, 0.18);
  animation: vl-pulse-hf 2s ease-in-out infinite;
}
@keyframes vl-pulse-hf {
  0%, 100% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.12); }
  50% { box-shadow: 0 0 0 12px rgba(52, 211, 153, 0.22); }
}
@keyframes vl-pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(248, 113, 113, 0.15); }
  50% { box-shadow: 0 0 0 14px rgba(248, 113, 113, 0.28); }
}

.voice-status {
  font-size: 0.82rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 0.35rem;
}
.voice-status-sub { font-size: 0.72rem; color: #64748b; margin-bottom: 0.75rem; }

.voice-live-preview {
  width: 100%;
  min-height: 3.5rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(15, 20, 25, 0.85);
  border: 1px dashed rgba(167, 139, 250, 0.35);
  font-size: 0.85rem;
  color: #cbd5e1;
  text-align: left;
  line-height: 1.4;
}
.voice-live-preview.is-interim { color: #94a3b8; font-style: italic; }
.voice-live-preview strong { color: #a78bfa; font-size: 0.68rem; text-transform: uppercase; display: block; margin-bottom: 0.25rem; }

.voice-toggles { display: flex; flex-direction: column; gap: 0.45rem; margin-top: 1rem; text-align: left; }
.voice-toggles label { font-size: 0.78rem; color: #94a3b8; display: flex; align-items: center; gap: 0.4rem; cursor: pointer; }

.voice-chat-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.voice-chat-head h2 { margin: 0; font-size: 0.95rem; color: #f8fafc; }
.voice-chat-log {
  flex: 1;
  overflow-y: auto;
  max-height: 480px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-right: 0.25rem;
}
.voice-bubble {
  max-width: 92%;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.45;
}
.voice-bubble-user {
  align-self: flex-end;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.3);
}
.voice-bubble-agent {
  align-self: flex-start;
  background: rgba(167, 139, 250, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.28);
}
.voice-bubble-meta { font-size: 0.68rem; color: #64748b; margin-bottom: 0.25rem; }
.voice-bubble-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  background: rgba(167, 139, 250, 0.2);
  color: #c4b5fd;
  margin-bottom: 0.35rem;
}
.voice-bubble p { margin: 0; white-space: pre-wrap; word-break: break-word; }

.voice-side-head { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: #64748b; margin: 0 0 0.5rem; }
.voice-pipeline { list-style: none; margin: 0 0 1rem; padding: 0; max-height: 220px; overflow-y: auto; }
.voice-pipeline li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.35rem;
  font-size: 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}
.voice-pipeline .vl-phase {
  font-size: 0.62rem;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
}
.voice-pipeline .vl-label { color: #e2e8f0; font-weight: 600; }
.voice-pipeline .vl-detail { grid-column: 2; color: #94a3b8; font-size: 0.72rem; }
.voice-pipeline li.is-running .vl-label { color: #38bdf8; }
.voice-pipeline li.is-error .vl-label { color: #f87171; }

.voice-feed { max-height: 200px; overflow-y: auto; font-size: 0.72rem; }
.voice-feed-item { padding: 0.35rem 0; border-bottom: 1px solid rgba(148, 163, 184, 0.08); color: #94a3b8; }
.voice-feed-item strong { color: #c4b5fd; }
.voice-feed-item .vl-ts { color: #64748b; margin-right: 0.35rem; }

.voice-manual-row { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.voice-manual-row .form-input { flex: 1; font-size: 0.82rem; }

.voice-confirm-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.35);
}
.voice-confirm-text { font-size: 0.82rem; color: #fde68a; }
.voice-confirm-text strong { display: block; color: #fbbf24; font-size: 0.72rem; text-transform: uppercase; margin-bottom: 0.2rem; }
.voice-confirm-actions { display: flex; gap: 0.5rem; }

.voice-results-modal { z-index: 1400; }
.voice-results-card { width: min(720px, 96vw); max-height: 85vh; display: flex; flex-direction: column; }
.voice-results-table-wrap { overflow: auto; max-height: 50vh; margin: 0.5rem 0 1rem; border: 1px solid rgba(148,163,184,0.12); border-radius: 8px; }
.voice-results-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.voice-results-table th { text-align: left; padding: 0.5rem 0.65rem; background: rgba(15,20,25,0.9); color: #64748b; font-size: 0.65rem; text-transform: uppercase; position: sticky; top: 0; }
.voice-results-table td { padding: 0.45rem 0.65rem; border-top: 1px solid rgba(148,163,184,0.08); color: #cbd5e1; }
.voice-results-table a { color: #38bdf8; text-decoration: none; }
.voice-results-table a:hover { text-decoration: underline; }
