/* Audio controls use one explicit surface/text palette in every state. */
.social-ghost {
  --social-audio-bg: #201929;
  --social-audio-ink: #f5edff;
  --social-audio-muted: #c9bdd8;
  --social-audio-line: #79628f;
  --social-audio-control: #332440;
  --social-audio-input: #15101e;
  --social-audio-accent: #dfc4ff;
}
.social-ghost #audioPanel,
.social-ghost .audio-post {
  background: var(--social-audio-bg) !important;
  color: var(--social-audio-ink) !important;
  border-color: var(--social-audio-line) !important;
}
.social-ghost #audioPanel .audio-heading > span,
.social-ghost #audioPanel label,
.social-ghost .audio-post-head,
.social-ghost .audio-post-head b {
  color: var(--social-audio-ink) !important;
}
.social-ghost #audioPanel .audio-heading { gap: 8px; flex-wrap: wrap; font-size: 14px; }
.social-ghost #audioPanel .demo-pill {
  background: var(--social-audio-control) !important;
  color: var(--social-audio-accent) !important;
  border-color: var(--social-audio-line) !important;
}
.social-ghost #audioPanel .u10-rights {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  line-height: 1.6;
}
.social-ghost #audioRights { flex: 0 0 18px; width: 18px !important; height: 18px; margin: 3px 0 0; }
.social-ghost #audioPanel .audio-controls button,
.social-ghost #removeAudio {
  background: var(--social-audio-control) !important;
  color: var(--social-audio-ink) !important;
  border: 1px solid var(--social-audio-line) !important;
  border-radius: 10px;
  min-height: 44px;
  font-size: 12px;
  padding: 8px 11px;
}
.social-ghost #audioPanel .audio-controls button:not(:disabled):hover,
.social-ghost #removeAudio:hover { border-color: var(--social-audio-accent) !important; }
.social-ghost #audioPanel .voice-stop {
  background: #ae284a !important;
  border-color: #ae284a !important;
  color: #fff !important;
}
.social-ghost #audioPanel .audio-policy,
.social-ghost #audioPanel .voice-state,
.social-ghost #audioPanel .audio-file-row,
.social-ghost #audioPanel .audio-volume,
.social-ghost .audio-post-head small {
  color: var(--social-audio-muted) !important;
  font-size: 12px;
}
.social-ghost #audioPanel .voice-state.is-recording { color: var(--social-audio-accent) !important; }
.social-ghost #audioTitle {
  background: var(--social-audio-input) !important;
  color: var(--social-audio-ink) !important;
  border-color: var(--social-audio-line) !important;
}
.social-ghost #audioTitle::placeholder { color: var(--social-audio-muted) !important; opacity: 1; }
.social-ghost #audioPanel svg,
.social-ghost .audio-post svg { color: inherit; stroke: currentColor; }
.social-ghost #audioPanel :focus-visible { outline: 2px solid var(--social-audio-accent); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .social-ghost {
    --social-audio-bg: #fff;
    --social-audio-ink: #30223f;
    --social-audio-muted: #665574;
    --social-audio-line: #b6a5cb;
    --social-audio-control: #f1eafa;
    --social-audio-input: #fbf9fe;
    --social-audio-accent: #6333a3;
  }
}
