.shf-voice-panel {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(239, 246, 255, 0.92), rgba(255, 255, 255, 0.84));
  color: #172554;
}

.shf-voice-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.shf-voice-panel__title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}

.shf-voice-panel__badge {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
}

.shf-voice-panel__description,
.shf-voice-panel__prompt,
.shf-voice-panel__status,
.shf-voice-panel__transcript {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.55;
}

.shf-voice-panel__description {
  color: #475569;
}

.shf-voice-panel__prompt {
  padding: 11px 12px;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  background: rgba(219, 234, 254, 0.76);
  color: #172554;
  font-size: 14px;
  font-weight: 800;
}

.shf-voice-panel__status {
  min-height: 20px;
  color: #1e40af;
  font-weight: 700;
}

.shf-voice-panel__status[data-tone="error"] {
  color: #b91c1c;
}

.shf-voice-panel__status[data-tone="success"] {
  color: #15803d;
}

.shf-voice-panel__status[data-tone="recording"] {
  color: #b91c1c;
  font-size: 14px;
}

.shf-voice-panel__transcript {
  display: none;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  color: #334155;
  word-break: break-word;
}

.shf-voice-panel__transcript:not(:empty) {
  display: block;
}

.shf-voice-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.shf-voice-btn {
  min-height: 52px;
  padding: 9px 14px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
}

.shf-voice-panel__actions .shf-voice-btn:first-child {
  flex: 1 1 230px;
}

.shf-voice-btn.is-listening {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.17);
  animation: shf-voice-pulse 1.2s ease-in-out infinite;
}

.shf-voice-btn:hover:not(:disabled) {
  filter: brightness(1.04);
}

.shf-voice-btn:disabled {
  cursor: wait;
  opacity: 0.64;
}

.shf-voice-btn--secondary {
  border: 1px solid rgba(37, 99, 235, 0.26);
  background: rgba(255, 255, 255, 0.88);
  color: #1d4ed8;
}

.shf-voice-inline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
}

body.shf-voice-busy .shf-voice-inline-btn:not([data-active="true"]) {
  opacity: 0.55;
}

@media (max-width: 680px) {
  .shf-voice-panel {
    padding: 12px;
  }

  .shf-voice-panel__actions,
  .shf-voice-panel__actions .shf-voice-btn {
    width: 100%;
  }

  .shf-voice-panel__actions .shf-voice-btn {
    min-height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shf-voice-btn {
    transition: none;
  }

  .shf-voice-btn.is-listening {
    animation: none;
  }
}

@keyframes shf-voice-pulse {
  50% {
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0.06);
  }
}
