.story-recorder {
  --recorder-ink: #383b30;
  --recorder-muted: #6c6c5d;
  color: var(--recorder-ink);
  padding: 23px 0 8px;
  border-top: 1px solid #8b866947;
  font: 18px/1.7 'Microsoft YaHei', sans-serif;
}
.story-recorder [hidden] { display: none !important; }
.story-recorder-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.story-recorder-heading p { margin: 0; font-size: 17px; flex: 1; }
.story-recorder-signal { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #929581; }
.story-recorder[data-recorder-state='recording'] .story-recorder-signal { background: #9b4e35; box-shadow: 0 0 0 5px #9b4e3514; }
.story-recorder[data-recorder-state='paused'] .story-recorder-signal { background: #b38c4a; }
.story-recorder-time { font: 19px/1.5 Georgia, serif; letter-spacing: .08em; font-variant-numeric: tabular-nums; color: #5f604f; white-space: nowrap; }
.story-recorder-wave {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 4px 12px;
  margin-bottom: 18px;
  background: #f3ecda88;
  border: 1px solid #9e977738;
  border-radius: 2px;
}
.story-recorder-wave span {
  flex: 1;
  height: 24px;
  border-radius: 2px;
  background: #6f7c54;
  transform: scaleY(0.22);
  transform-origin: center;
  transition: transform .08s ease;
}
.story-recorder[data-recorder-state='paused'] .story-recorder-wave span { background: #a88f5a; opacity: .55; }
.story-recorder-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.story-recorder button { min-height: 48px; padding: 10px 22px; font: inherit; border-radius: 2px; border: 1px solid #7e806860; background: transparent; color: var(--recorder-ink); cursor: pointer; }
.story-recorder button:hover { background: #4a513511; }
.story-recorder button:focus-visible { outline: 3px solid #6e704e; outline-offset: 4px; }
.story-recorder button:disabled { opacity: .45; cursor: default; }
.story-recorder [data-recorder-action='start'],
.story-recorder [data-recorder-action='resume'] { background: #414b38; color: #fbf4e4; border-color: #414b38; }
.story-recorder [data-recorder-action='start']:hover,
.story-recorder [data-recorder-action='resume']:hover { background: #556145; }
.story-recorder .story-recorder-quiet { border-color: transparent; font-size: 16px; color: #626452; }
.story-recorder-playback { margin-top: 24px; }
.story-recorder-playback label { display: block; margin-bottom: 9px; font-size: 16px; color: var(--recorder-muted); }
.story-recorder-playback audio { display: block; width: 100%; min-width: 0; height: 48px; accent-color: #4d573d; color-scheme: light; }
.story-recorder-notice { margin: 18px 0 0; font-size: 14px; line-height: 1.8; color: var(--recorder-muted); }
.story-recorder-confirm { margin-top: 19px; padding: 18px 0; border-top: 1px solid #89866e40; border-bottom: 1px solid #89866e40; }
.story-recorder-confirm p { margin: 0 0 13px; font-size: 16px; }
.story-recorder-confirm > div { display: flex; flex-wrap: wrap; gap: 10px; }
.story-recorder-confirm button { font-size: 16px; }
.story-recorder[data-recorder-state='error'] .story-recorder-status { color: #895338; }
@media (max-width: 600px) {
  .story-recorder { padding-top: 20px; }
  .story-recorder-heading { flex-wrap: wrap; gap: 10px; }
  .story-recorder-heading p { font-size: 16px; }
  .story-recorder-controls { gap: 8px; }
  .story-recorder button { padding: 10px 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .story-recorder-wave span { transition: none; }
}
