/* Mathzem AI Tutor - Phase 8 microphone dictation only. */

.mz-feedback-panel.mz-tutor-ui-active .mz-tutor-composer {
  align-items: center;
}

.mz-tutor-mic-btn {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9e1ec;
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
  font: inherit;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.mz-tutor-mic-btn:hover:not(:disabled) {
  background: #eef4ff;
  border-color: #c7d6ef;
}

.mz-tutor-mic-btn:focus-visible {
  outline: 2px solid #4f76b9;
  outline-offset: 2px;
}

.mz-tutor-mic-btn:disabled {
  opacity: .42;
  cursor: default;
}

.mz-tutor-mic-btn.is-recording {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #be123c;
  animation: mzTutorVoicePulse 1.15s ease-in-out infinite;
}

.mz-tutor-mic-btn.is-transcribing {
  cursor: wait;
  opacity: .7;
}

.mz-tutor-mic-icon {
  display: block;
  font-size: 16px;
  line-height: 1;
}

.mz-tutor-voice-status {
  flex: 0 0 auto;
  min-height: 14px;
  margin: -7px 18px 7px;
  color: #667085;
  font-size: 10.5px;
  line-height: 1.35;
  font-weight: 650;
}

.mz-tutor-voice-status[data-state="recording"] { color: #a61b44; }
.mz-tutor-voice-status[data-state="error"] { color: #9f3444; }
.mz-tutor-voice-status[data-state="ready"] { color: #2e6b4a; }

@keyframes mzTutorVoicePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(190, 18, 60, .08); }
  50% { box-shadow: 0 0 0 5px rgba(190, 18, 60, .08); }
}

@media (max-width: 640px) {
  .mz-tutor-mic-btn {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .mz-tutor-voice-status {
    margin: -5px 13px 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mz-tutor-mic-btn.is-recording { animation: none; }
}

/* Phase 18 - clean compact microphone control. */
.mz-tutor-mic-btn {
  position: relative;
  width: 34px;
  height: 34px;
  border-color: #dfe6ef;
  border-radius: 11px;
  background: #f8fafc;
  color: #64748b;
  box-shadow: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.mz-tutor-mic-btn:hover:not(:disabled) {
  background: #f1f5ff;
  border-color: #cbd8ee;
  color: #2563eb;
}

.mz-tutor-mic-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.mz-tutor-mic-btn:focus-visible {
  outline: 2px solid rgba(37, 99, 235, .42);
  outline-offset: 2px;
}

.mz-tutor-mic-btn.is-recording {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #e11d48;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, .08);
}

.mz-tutor-mic-btn.is-transcribing {
  background: #f5f7fb;
  color: #6b7280;
}

.mz-tutor-mic-icon {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mz-tutor-voice-status {
  min-height: 0;
  margin: 0 14px 4px;
  color: #667085;
  font-size: 9.9px;
  line-height: 1.25;
  font-weight: 620;
}

.mz-tutor-voice-status:empty {
  display: none;
}

@media (max-width: 640px) {
  .mz-tutor-mic-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .mz-tutor-voice-status {
    margin: 0 10px 4px;
    font-size: 9.7px;
  }
}
