/* THE ADD VOICE WINDOW, TWO PARTS (34f-voice-modal.js). Simon, 28 Oct 2026:
   "...and add the option update the add voice option for character
   generation" -- a voice (record / upload or drop / your voices / generate)
   and, once there is one, the character's video reference (face + voice). */
#cv-card { width: min(500px, 100%); max-height: calc(100vh - 40px); overflow: auto; }
#cv-card .cv-voice .cv-choose { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0; }
#cv-card .cv-voice .cv-opt { background: var(--bg); padding: 9px 11px; }
#cv-card .cv-voice .cv-opt.on { border-color: #e2304a; background: rgba(226, 48, 74, .14); }
#cv-card .cv-voice.over { border-color: var(--accent); }
#cv-card .cv-have { display: flex; align-items: center; gap: 8px; }
#cv-card .cv-have .cv-play { flex: 1; min-width: 0; }
#cv-card .cv-saved { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
#cv-card .cv-gen { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
#cv-card .cv-gen .sec-title { margin: 0; }
#cv-card .cv-gen .cv-sub { margin-top: 4px; }
/* Generate new voice on Seedance (Simon, 1 Nov 2026): the voice type and the
   description are the only two things asked; the clip it was taken from
   plays above the sample once there is one. */
#cv-card .cv-gen select { height: 32px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; font-size: 12px; padding: 0 8px; }
#cv-card .cv-take { width: 100%; max-height: 200px; border-radius: var(--radius-sm); background: #000; margin-bottom: 8px; display: block; }
#cv-card .cv-wide { width: 100%; }
#cv-card .cv-refvid { width: 100%; max-height: 220px; border-radius: var(--radius-sm); background: #000; margin-bottom: 8px; display: block; }
#cv-card .cv-refrow { display: flex; gap: 8px; align-items: center; }
#cv-card .cv-refrow select { flex: 1; min-width: 0; height: 32px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; font-size: 12px; padding: 0 8px; }
#cv-card .cv-refrow .btn { white-space: nowrap; }
#cv-card .cv-ask { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; padding: 8px 10px;
  border: 1px solid var(--accent); border-radius: var(--radius-sm); font-size: 11.5px; }
#cv-card .cv-ask span { flex: 1 1 200px; }
#cv-card .cn-foot { flex-direction: row; align-items: center; }
#cv-card .cn-foot .cn-cost { flex: 1; text-align: left; }
#cv-card .cn-foot .btn.big { width: auto; padding: 0 22px; }
