/* Optional post-call voice notes stay secondary to the selected outcome. */
.completed-contact-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
}

.voice-note-row-action {
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #ffffff;
  color: #475569;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
}

.voice-note-row-action:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #94a3b8;
}

.voice-note-row-action.is-saved {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.voice-note-row-action.is-uploading { color: #2563eb; }
.voice-note-row-action.is-failed { color: #b91c1c; border-color: #fca5a5; }
.voice-note-row-action:disabled { cursor: default; opacity: 1; }

.voice-note-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
}

.voice-note-card {
  position: relative;
  width: min(100%, 430px);
  padding: 26px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

.voice-note-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 24px;
  cursor: pointer;
}

.voice-note-kicker {
  color: #2563eb;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.voice-note-card h2 {
  margin: 8px 34px 8px 0;
  color: #0f172a;
  font-size: 21px;
  text-transform: none;
  letter-spacing: 0;
}

.voice-note-description,
.voice-note-privacy {
  color: #64748b;
  font-size: 12px;
  line-height: 1.5;
}

.voice-note-privacy {
  padding: 9px 10px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.voice-note-timer {
  margin: 20px 0 6px;
  color: #0f172a;
  font-family: var(--mono);
  font-size: 28px;
  font-weight: 800;
  text-align: center;
}

.voice-note-timer-warning { color: #dc2626; }

.voice-note-status {
  min-height: 20px;
  color: #64748b;
  font-size: 12px;
  text-align: center;
}

.voice-note-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.voice-note-primary,
.voice-note-secondary {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.voice-note-primary { border: 1px solid #0f172a; background: #0f172a; color: #ffffff; }
.voice-note-secondary { border: 1px solid #cbd5e1; background: #ffffff; color: #475569; }
.voice-note-primary:disabled { cursor: wait; opacity: 0.65; }

@media (max-width: 767px) {
  .completed-contact-actions { justify-content: space-between; gap: 6px; }
  .completed-contact-actions .c-badge-completed { width: auto !important; flex: 1 1 auto; }
  .voice-note-row-action { min-height: 36px; padding: 7px 9px; }
  .voice-note-card { padding: 22px 18px; }
  .voice-note-actions > button { flex: 1; }
}
