/* Dictation stays with its document; playback floats below the global header. */
.dictation-strip {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 12px 16px;
  color: var(--accent);
}
.dictation-strip canvas {
  display: block;
  width: 100%;
  height: 32px;
  color: var(--accent);
}
.dictation-status {
  color: var(--text-2);
  font-size: var(--fs-xs);
  line-height: 1.4;
}
.pane > .dictation-strip {
  flex: 1;
  min-height: 0;
}
.composer > .dictation-strip {
  min-height: 44px;
  padding: 4px;
}
.dictation-field-hidden {
  display: none;
}
.dictation-document {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-width: 0;
  padding: 8px 12px;
  margin-block: 4px;
  border-radius: var(--r-lg);
  background: var(--glass-strong);
  box-shadow: var(--glass-edge), var(--shadow-1);
}
.dictation-document .dictation-strip {
  flex: 1;
  padding: 0;
}
.dictation-document .btn {
  flex: none;
}
.dictation-paused canvas {
  opacity: 0.5;
}
.speech-player {
  position: fixed;
  z-index: 30;
  top: calc(max(var(--player-top, 0px), env(safe-area-inset-top)) + 4px);
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  animation: speech-player-in 200ms var(--ease);
}
.auth-required .speech-player,
.speech-player[hidden] {
  display: none;
}
.speech-player.is-closing {
  animation: none;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}
.speech-player-track {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 6px;
}
.speech-player-times {
  display: flex;
  justify-content: space-between;
  color: var(--text-2);
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.speech-player-waveform {
  position: relative;
  min-width: 0;
  height: 32px;
  color: var(--accent);
  touch-action: none;
  cursor: pointer;
}
.speech-player-waveform canvas {
  display: block;
  width: 100%;
  height: 32px;
}
.speech-player-waveform input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}
.speech-player-waveform:has(input:focus-visible) {
  outline: 1px solid var(--border-strong);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}
@keyframes speech-player-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .speech-player {
    animation: none;
    transition: none;
  }
}
@media (max-width: 859px) {
  .dictation-document {
    flex-wrap: wrap;
  }
  .dictation-document .dictation-strip {
    min-width: 120px;
  }
}
