.voice-workspace {
  overflow-wrap: anywhere;
}
.voice-workspace p,
.voice-panel p {
  margin-top: 14px;
  line-height: 1.8;
}
.voice-entry {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  margin: 10px 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  color: inherit;
  background: var(--background);
}
.voice-panel {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 20px;
  overflow-wrap: anywhere;
}
.voice-panel h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
}
.voice-panel label {
  display: block;
  margin: 16px 0 8px;
}
.voice-panel select,
.voice-panel textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  color: inherit;
  background: var(--background);
}
.voice-panel textarea {
  resize: vertical;
}
.voice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.voice-panel button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  color: inherit;
  background: var(--background);
}
.voice-panel button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.voice-panel :focus-visible,
.voice-entry:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}
.voice-note {
  padding-left: 14px;
  border-left: 3px solid var(--primary);
}
.voice-dialog {
  width: min(92vw, 680px);
  max-height: calc(100dvh - 24px);
  overflow: auto;
  margin: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--foreground);
  background: var(--background);
}
.voice-dialog .voice-panel {
  border: 0;
  margin: 0;
}
.voice-dialog::backdrop {
  background: rgb(0 0 0 / 60%);
}
.voice-panel [hidden] {
  display: none !important;
}
