.captions-plugin {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 8px;
  background: #fffaf0;
  color: #252c28;
  overflow: hidden;
  box-sizing: border-box;
}
.captions-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.captions-controls button {
  min-height: 44px;
  min-width: 44px;
}
.captions-controls .caption-diagnostics-copy {
  flex-shrink: 0;
  white-space: nowrap;
}
.caption-cues-toggle {
  margin-left: auto;
  font-size: 1rem;
}
.captions-transcript {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
  overscroll-behavior: contain;
}
.caption-entry {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  overflow-wrap: anywhere;
}
.caption-avatar {
  position: sticky;
  top: 0;
  flex: 0 0 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: hsl(var(--speaker-hue) 30% 86%);
  color: hsl(var(--speaker-hue) 35% 30%);
}
.caption-avatar::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  top: 7px;
  left: 13px;
}
.caption-avatar::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 15px;
  border-radius: 50% 50% 0 0;
  background: currentColor;
  top: 20px;
  left: 7px;
}
.caption-avatar img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.caption-text {
  min-width: 0;
  padding-top: 5px;
  line-height: 1.55;
  white-space: pre-wrap;
}
.caption-cue {
  color: #687267;
  font-size: 0.9em;
  font-style: italic;
}
