.microphone-launch {
  margin-top: 18px;
  padding: 12px 18px;
  color: white;
  background: #731f3d;
  border: 0;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
}

.microphone-pending-panel {
  border-top: 4px solid #f28c28;
}

.microphone-pending-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.microphone-pending-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: #fffaf4;
  border: 1px solid #f0dfce;
  border-radius: 11px;
}

.microphone-pending-item strong {
  color: #174b7a;
  font-size: 18px;
}

.microphone-pending-item span {
  padding: 7px 10px;
  color: #765019;
  background: #fff0d3;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.microphone-pending-actions {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-direction: column;
}

.microphone-process-button {
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  background: #138a65;
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.microphone-process-button:hover:not(:disabled) {
  background: #0f7053;
}

.microphone-process-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.microphone-processing-message {
  grid-column: 1 / -1;
  width: 100%;
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
}

.microphone-processing-message.processing {
  background: #eaf4fb;
  color: #174f73;
}

.microphone-processing-message.success {
  background: #dcf5e9;
  color: #126747;
}

.microphone-processing-message.error {
  background: #fde5e8;
  color: #a32939;
}

@media (max-width: 720px) {
  .microphone-pending-actions {
    align-items: flex-start;
    width: 100%;
  }
}

.microphone-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  padding: 20px;
  background: rgba(18, 26, 34, 0.8);
  overflow-y: auto;
}

.microphone-overlay.open {
  display: block;
}

.microphone-dialog {
  width: min(900px, 100%);
  margin: 20px auto;
  background: white;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.microphone-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  color: white;
  background: linear-gradient(
    120deg,
    #451126,
    #731f3d,
    #174b7a
  );
}

.microphone-header h2 {
  margin: 0 0 4px;
  color: white;
}

.microphone-header button {
  width: 38px;
  height: 38px;
  color: white;
  background: rgba(255, 255, 255, 0.15);
  border: 0;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
}

.microphone-body {
  padding: 22px;
}

.microphone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.microphone-span-two {
  grid-column: 1 / -1;
}

.microphone-research-heading {
  margin-top: 10px;
  padding: 13px 14px;
  color: #174b7a;
  background: #f2f8fc;
  border-left: 4px solid #f28c28;
  border-radius: 9px;
}

.microphone-research-heading strong,
.microphone-research-heading small {
  display: block;
}

.microphone-research-heading small {
  margin-top: 4px;
  color: #697682;
  line-height: 1.4;
}

.microphone-body label {
  display: block;
  margin: 12px 0 6px;
  color: #697682;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.microphone-body input[type="text"],
.microphone-body select,
.microphone-body textarea {
  width: 100%;
  padding: 11px 12px;
  color: #17212b;
  background: white;
  border: 1px solid #dfe7ec;
  border-radius: 9px;
  font: inherit;
}

.microphone-body textarea {
  min-height: 82px;
  resize: vertical;
}

.microphone-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  background: #eaf4fb;
  border-radius: 10px;
}

.microphone-consent label {
  margin: 0;
  color: #17212b;
  font-size: 14px;
  text-transform: none;
}

.microphone-recorder-panel {
  margin: 18px 0;
  padding: 18px;
  background: #fffaf4;
  border: 1px solid #f0dfce;
  border-radius: 13px;
}

.microphone-recorder-status {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

#mr-timer {
  color: #731f3d;
  font-size: 20px;
  font-weight: 900;
}

.microphone-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.microphone-controls button {
  padding: 11px 16px;
  border: 0;
  border-radius: 9px;
  font-weight: 800;
  cursor: pointer;
}

#mr-record {
  color: white;
  background: #c23d4b;
}

#mr-stop {
  color: white;
  background: #17212b;
}

#mr-rerecord {
  color: #174b7a;
  background: #eaf4fb;
}

#mr-playback {
  width: 100%;
  margin: 8px 0;
}

.microphone-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.microphone-actions button {
  padding: 11px 17px;
  border: 0;
  border-radius: 9px;
  font-weight: 800;
  cursor: pointer;
}

.microphone-cancel {
  color: #174b7a;
  background: #eaf4fb;
}

.microphone-save {
  color: white;
  background: #16805c;
}

.microphone-success,
.microphone-error {
  margin-top: 14px;
  padding: 14px;
  border-radius: 9px;
}

.microphone-success {
  color: #0b6144;
  background: #dff7ed;
}

.microphone-error {
  color: #8d2533;
  background: #fde4e7;
}

@media (max-width: 720px) {
  .microphone-overlay {
    padding: 8px;
  }

  .microphone-dialog {
    margin: 8px auto;
  }

  .microphone-grid {
    grid-template-columns: 1fr;
  }

  .microphone-span-two {
    grid-column: auto;
  }

  .microphone-actions {
    flex-direction: column;
  }

  .microphone-pending-item {
    align-items: flex-start;
    flex-direction: column;
  }
}

.microphone-turnstile-panel {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #cfe0ea;
  border-radius: 12px;
  background: #f4f9fc;
}

.microphone-turnstile-panel strong {
  display: block;
  margin-bottom: 10px;
  color: #174b7a;
}

.microphone-turnstile-message {
  margin-top: 8px;
  color: #697682;
  font-size: 13px;
}

.microphone-turnstile-message.success {
  color: #16805c;
}

.microphone-turnstile-message.error {
  color: #c23d4b;
}