.question-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  color: #fff;
  background: #d76552;
  font-size: 11px;
  font-weight: 800;
}

.questions-panel {
  padding: 24px;
}

.teacher-question-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.teacher-question-filters button {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 12px;
  font-weight: 700;
}

.teacher-question-filters button.active {
  border-color: var(--navy);
  color: #fff;
  background: var(--navy);
}

.teacher-questions-inbox {
  display: grid;
  gap: 16px;
}

.teacher-question-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
}

.teacher-question-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.teacher-question-heading h2 {
  margin: 4px 0;
  font-size: 19px;
}

.teacher-question-student {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.teacher-question-status {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--peach);
  font-size: 11px;
  font-weight: 800;
}

.teacher-question-status.answered {
  background: var(--mint);
  color: var(--mint-strong);
}

.teacher-question-status.overdue {
  background: #f9d6d1;
  color: #8d3027;
}

.teacher-question-video-time {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: #165f99;
  background: #e8f1f8;
  font-size: 12px;
  font-weight: 700;
}

.teacher-question-text {
  margin: 18px 0;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.teacher-question-reply {
  display: grid;
  gap: 9px;
}

.teacher-question-reply label {
  font-weight: 700;
}

.teacher-question-reply textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  resize: vertical;
}

.teacher-question-reply input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.question-audio-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.teacher-question-reply audio {
  width: 100%;
}

.teacher-question-reply .button {
  justify-self: start;
}

.teacher-question-answer {
  padding: 14px;
  border-radius: 12px;
  background: #eef7f1;
}

.teacher-question-answer p {
  margin: 8px 0 0;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.speaking-review-panel {
  margin-top: 24px;
}

.teacher-speaking-audio:not(.hidden) {
  display: block;
  width: 100%;
  margin-top: 12px;
}

@media (max-width: 600px) {
  .questions-panel,
  .teacher-question-card {
    padding: 16px;
  }

  .teacher-question-heading {
    flex-direction: column;
    gap: 8px;
  }
}
