/* Load after styles.css. All rules belong to the student cabinet. */
.student-wrap {
  min-height: 100dvh;
  padding-bottom: max(32px, env(safe-area-inset-bottom));
}

.student-card {
  min-width: 0;
  overflow-wrap: anywhere;
}

.student-card h2,
.student-card h3 {
  font-size: 24px;
}

.student-card .brand {
  min-height: 46px;
  padding: 8px 0;
  align-items: center;
}

.student-card .row > *,
.student-card .list,
.student-card .list-item,
.student-card .audio-card,
.student-card .actions > * {
  min-width: 0;
  max-width: 100%;
}

.student-card .btn {
  white-space: normal;
  overflow-wrap: anywhere;
  touch-action: manipulation;
}

.student-card .field select {
  min-width: 0;
  max-width: 100%;
  font-size: 20px;
}

.student-card .divider a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 8px 0;
}

.student-card audio {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 600px) {
  .student-wrap {
    padding: 12px max(10px, env(safe-area-inset-right))
      max(20px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  }

  .student-card {
    padding: 16px;
  }

  .student-card .page-title {
    margin-top: 20px;
  }

  .student-card .reading-text {
    margin: 20px 0;
  }

  .student-card .list-item,
  .student-card .audio-card,
  .student-card .status {
    padding: 12px;
  }

  .student-card .actions {
    gap: 10px;
  }
}

.student-card .recording-indicator { margin-top: 16px; padding: 12px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.student-card .recording-heading { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.student-card #recording-time { margin-left: auto; font-variant-numeric: tabular-nums; }
.student-card .recording-dot { width: 12px; height: 12px; border-radius: 50%; background: #c74236; flex: 0 0 12px; animation: recording-pulse 1s ease-in-out infinite; }
.student-card .microphone-level { height: 12px; margin: 12px 0 8px; background: var(--blue-light); border-radius: 6px; overflow: hidden; }
.student-card .microphone-level span { display: block; width: 0; height: 100%; background: #26795d; transition: width 80ms linear; }
@keyframes recording-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
  .student-card .recording-dot { animation: none; }
  .student-card .microphone-level span { transition: none; }
}

@media (max-width: 480px) {
  .student-card .actions > .btn,
  .student-card .list-item .row > .btn,
  .student-card form > .btn,
  .student-card > .btn,
  .student-card #retry-upload {
    width: 100%;
  }
}
