/* FUTKAR — Floating voice type control */
.voice-fill-root {
  position: fixed;
  right: 1rem;
  bottom: 5.5rem;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  pointer-events: none;
}
.voice-fill-root > * { pointer-events: auto; }

.voice-fill-btn {
  position: relative;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #0f172a, #334155);
  box-shadow: 0 12px 28px -10px rgba(15, 23, 42, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.15);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.voice-fill-btn:hover { transform: translateY(-1px); }
.voice-fill-btn.is-listening {
  background: linear-gradient(135deg, #dc2626, #e11d48);
  box-shadow: 0 12px 28px -8px rgba(225, 29, 72, 0.65);
}
.voice-fill-icon { width: 1.35rem; height: 1.35rem; }
.voice-fill-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  border: 2px solid rgba(248, 113, 113, 0.7);
  opacity: 0;
  pointer-events: none;
}
.voice-fill-btn.is-listening .voice-fill-pulse {
  opacity: 1;
  animation: voice-fill-pulse 1.2s ease-out infinite;
}
@keyframes voice-fill-pulse {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(1.35); opacity: 0; }
}

.voice-fill-panel {
  width: min(18.5rem, calc(100vw - 2rem));
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 0.85rem 0.95rem;
  box-shadow: 0 18px 40px -20px rgba(15, 23, 42, 0.45);
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.dark .voice-fill-panel {
  background: #1e293b;
  border-color: #334155;
}
.voice-fill-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.voice-fill-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.voice-fill-panel-top strong {
  font-size: 0.8125rem;
  font-family: 'Plus Jakarta Sans', Inter, system-ui, sans-serif;
  color: #0f172a;
}
.dark .voice-fill-panel-top strong { color: #f8fafc; }
.voice-fill-langs {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.15rem;
  border-radius: 9999px;
  background: #f1f5f9;
}
.dark .voice-fill-langs { background: #0f172a; }
.voice-fill-langs button {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  color: #64748b;
}
.voice-fill-langs button.active {
  background: #0f172a;
  color: #fff;
}
.dark .voice-fill-langs button.active {
  background: #e2e8f0;
  color: #0f172a;
}
.voice-fill-live {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: #334155;
  min-height: 2.4em;
  margin: 0 0 0.35rem;
}
.dark .voice-fill-live { color: #cbd5e1; }
.voice-fill-status {
  font-size: 0.6875rem;
  margin: 0;
  color: #64748b;
}
.voice-fill-status[data-kind="listening"] { color: #dc2626; font-weight: 600; }
.voice-fill-status[data-kind="ok"] { color: #059669; font-weight: 600; }
.voice-fill-status[data-kind="error"] { color: #dc2626; font-weight: 600; }

@media (max-width: 639px) {
  .voice-fill-root { bottom: 5.75rem; right: 0.75rem; }
}

@media print {
  .voice-fill-root { display: none !important; }
}
