.audio-task {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 1.05rem;
}

.audio-task-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.audio-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1rem;
}

.audio-switch {
  width: min(100%, 330px);
}

.audio-switch .view-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.audio-switch .view-thumb {
  width: calc((100% - 8px) / 3);
}

.audio-switch[data-view="wheel"] .view-thumb {
  transform: translateX(100%);
}

.audio-switch[data-view="student"] .view-thumb {
  transform: translateX(200%);
}

.audio-switch .view-options label {
  padding-inline: .45rem;
}

.audio-teacher dialog .actions {
  margin-top: 1.3rem;
}

.audio-teacher .cards {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
}

.audio-submissions {
  display: grid;
  gap: .55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.audio-submission {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1rem;
  padding: .75rem 1rem;
  background: #eef3f5a8;
  border-radius: 12px;
  overflow-wrap: anywhere;
}

.audio-submission-info {
  display: grid;
}

.audio-submission-info small {
  color: var(--muted);
}

.audio-presentation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 380px);
  align-items: center;
  gap: 2.5rem;
  min-height: 66svh;
}

.audio-presentation .audio-task {
  font-size: clamp(1rem, 2.2vw, 1.5rem);
}

#share-access {
  text-align: center;
}

#join-code {
  font-size: clamp(1.5rem, 4.5vw, 2.5rem);
  margin-bottom: .15rem;
}

.audio-wheel {
  text-align: center;
}

.audio-wheel-stage {
  position: relative;
  width: min(100%, 700px, max(340px, 70svh));
  margin: 0 auto;
  aspect-ratio: 1;
}

.audio-wheel-stage svg {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  filter: drop-shadow(0 10px 22px #23323a30);
  overflow: visible;
}

.audio-wheel-pointer {
  position: absolute;
  z-index: 1;
  top: -.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1.7rem;
  height: 1.55rem;
  background: #273744;
  clip-path: polygon(0 0,100% 0,50% 100%);
  pointer-events: none;
}

.audio-wheel-target {
  cursor: pointer;
  outline: none;
}

.audio-wheel-target:hover path,
.audio-wheel-target:hover circle,
.audio-wheel-target:focus-visible path,
.audio-wheel-target:focus-visible circle {
  filter: brightness(.93);
  stroke: #354852;
  stroke-width: 4;
}

.audio-wheel-stage[aria-busy="true"] .audio-wheel-target {
  pointer-events: none;
  cursor: default;
}

.audio-wheel-count {
  margin: .8rem 0 .55rem;
  color: #324755;
  font-size: .9rem;
}

.audio-wheel-actions {
  justify-content: center;
}

.audio-wheel-actions button {
  min-height: 44px;
}

.audio-player {
  position: sticky;
  bottom: 1rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .45rem .85rem;
  width: fit-content;
  max-width: 100%;
  margin: 1rem auto 0;
  padding: .4rem .65rem .4rem .9rem;
  border: 1px solid #ffffffcd;
  border-radius: 18px;
  background: #f7fafbe8;
  box-shadow: 0 5px 22px #22313f24;
  backdrop-filter: blur(20px);
}

.audio-player span {
  overflow-wrap: anywhere;
}

.audio-player audio {
  width: min(100%, 250px);
  height: 38px;
}

.audio-player button {
  min-height: 40px;
  padding: .4rem .65rem;
}

.audio-decoded-player {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.audio-decoded-player progress {
  width: min(24vw, 8rem);
  accent-color: var(--accent);
}

.audio-student {
  max-width: 660px;
}

.audio-capture-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.5rem;
}

.audio-recording {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem;
  margin-top: 1rem;
}

.audio-recording span {
  font-family: var(--display);
}

#submission-form {
  margin-top: 1.65rem;
}

#preview {
  display: block;
  width: 100%;
}

@media (max-width: 700px) {
  .audio-presentation {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 1.25rem;
  }
  .audio-student .panel {
    padding: 1.35rem;
  }
}

@media (max-width: 420px) {
  .audio-switch {
    width: 100%;
  }
}
