/* Voice page (/voice, owner 2026-11-27): Sume's and Higgsfield's Text to speech, in the studio's own look. */

/* the chosen voice (Sume's voice card) */
.vc-card { position: relative; min-height: 112px; padding: 16px; border-radius: 16px; overflow: hidden; display: flex; align-items: flex-end; gap: 12px; cursor: pointer;
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 60%), var(--s-wash); }
.vc-card .ch-change { top: 10px; right: 10px; }
.vc-play { width: 36px; height: 36px; flex: none; border-radius: 999px; background: color-mix(in srgb, #000 45%, transparent); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.vc-play svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.vc-play:hover:not(:disabled) { background: color-mix(in srgb, #000 65%, transparent); }
.vc-play:disabled { opacity: .4; cursor: default; }
.vc-play.sm { width: 32px; height: 32px; background: var(--s-wash-2); }
.vc-who { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vc-who b { font-weight: 500; font-size: 16px; line-height: 22px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc-who span { color: var(--ink-2); font-size: 12px; line-height: 16px; }
.vc-create { height: 36px; border-radius: 12px; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--ink); font-size: 13px; }
.vc-create:hover { background: var(--s-wash); }
.vc-create svg { width: 14px; height: 14px; }
.vc-create:disabled { opacity: .5; cursor: not-allowed; }
.vc-create:disabled:hover { background: none; }
.vc-soon { margin-left: 4px; padding: 1px 6px; border-radius: 6px; font-size: 11px; color: var(--ink-2); background: var(--s-wash); }
.vc-create.in-list { width: 100%; margin-top: 10px; }

/* script */
.vc-script-head { display: flex; justify-content: space-between; align-items: baseline; }
.vc-count { color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.vc-tip, .vc-note, .vc-rate { margin: 0; color: var(--ink-3); font-size: 12px; line-height: 16px; }
.vc-tip code, .vc-tag { font-family: var(--mono); font-size: 11px; color: var(--accent); }
.vc-note { padding: 0 4px; }
.vc-rate { text-align: center; padding: 0 4px 12px; }
.tile:disabled { opacity: .5; cursor: default; }
.tile:disabled:hover { background: none; }

/* History: one card per take */
.vc-takes { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 24px; }
.vc-take { padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--wash); display: flex; flex-direction: column; gap: 10px; }
.vc-take.failed { border-color: color-mix(in srgb, #d0342c 40%, transparent); }
.vc-take-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.vc-take-top b { font-weight: 500; }
.vc-take-top .muted { font-size: 12px; }
.vc-take-top .badge { margin-left: auto; }
.vc-take audio { width: 100%; height: 40px; color-scheme: dark; }
.vc-wait { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13px; }
.vc-wait .spin { width: 14px; height: 14px; border-width: 2px; }
.vc-err { margin: 0; color: #f08a84; font-size: 13px; line-height: 18px; }
.vc-script { margin: 0; color: var(--ink-2); font-size: 13px; line-height: 19px; white-space: pre-wrap; max-height: 5.9em; overflow: hidden; -webkit-mask: linear-gradient(#000 70%, transparent); mask: linear-gradient(#000 70%, transparent); }
.vc-actions { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.vc-link { color: var(--ink-2); font-size: 12px; line-height: 16px; text-decoration: none; }
.vc-link:hover { color: var(--ink); }
.vc-more { display: flex; justify-content: center; }

/* How it works */
.vc-how { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 16px; }
.vc-how-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--s-wash); font-size: 13px; }
.vc-how-row i { width: 22px; height: 22px; border-radius: 999px; background: var(--s-wash-2); flex: none; }
.vc-how-row.on { outline: 1px solid var(--accent); }
.vc-how-row.on i { background: var(--accent); }
.vc-how-row b { font-weight: 500; flex: none; width: 72px; }
.vc-bars { flex: auto; height: 14px; background: repeating-linear-gradient(90deg, var(--ink-3) 0 2px, transparent 2px 5px); -webkit-mask: linear-gradient(90deg, #000 10%, #0006 30%, #000 50%, #0008 75%, #000); mask: linear-gradient(90deg, #000 10%, #0006 30%, #000 50%, #0008 75%, #000); opacity: .6; }
.vc-bars.wide { height: 28px; }
.vc-how-write p { margin: 0; padding: 12px; border-radius: 10px; background: var(--s-wash); font-size: 13px; line-height: 19px; }
.vc-how-listen { flex-direction: row; align-items: center; }
.vc-how-play { width: 40px; height: 40px; border-radius: 999px; background: var(--accent); color: var(--on-accent); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.vc-how-play svg { fill: currentColor; stroke: none; }

/* Voices window */
.vc-sheet { width: min(760px, 100%); }
.vc-sheet h2 { margin: 0 0 4px; }
.vc-filters { display: flex; gap: 8px; margin: 14px 0 10px; }
.vc-search { flex: auto; height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2); display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.vc-search input { flex: auto; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--ink); font: inherit; font-size: 15px; }
.vc-search:focus-within { border-color: var(--accent); }
.vc-select { height: 40px; padding: 0 10px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font: inherit; }
.vc-tabs { display: flex; gap: 16px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.vc-tabs button { padding: 8px 0; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.vc-tabs button.on { color: var(--ink); border-bottom-color: var(--accent); }
.vc-list { max-height: min(58vh, 520px); overflow: auto; display: flex; flex-direction: column; gap: 2px; padding-top: 4px; }
.vc-row-item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; cursor: pointer; }
.vc-row-item:hover { background: var(--s-wash); }
.vc-row-item.on { background: var(--s-wash-2); }
.vc-row-item .vc-who { flex: auto; }
.vc-row-item .vc-who b { font-size: 14px; line-height: 20px; }
.vc-pickit { flex: none; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--s-wash-2); display: inline-flex; align-items: center; font-size: 12px; }
.vc-row-item.on .vc-pickit { background: var(--accent); color: var(--on-accent); }
.vc-empty { padding: 16px 8px; margin: 0; }

/* Create a voice window (Sume's Clone a voice) */
.vc-clone h2 { margin: 0 0 4px; }
.vc-drop { position: relative; margin: 14px 0 8px; min-height: 120px; padding: 16px; border: 1px dashed var(--line-2); border-radius: 16px; background: var(--wash); display: grid; place-items: center; text-align: center; cursor: pointer; }
.vc-drop:hover { background: var(--s-wash); }
.vc-drop #cloneEmpty { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.vc-drop #cloneEmpty span { color: var(--ink-3); font-size: 12px; }
.vc-drop #cloneEmpty svg { width: 22px; height: 22px; margin-bottom: 4px; }
.vc-drop #cloneHave { width: 100%; display: flex; flex-direction: column; gap: 8px; align-items: center; cursor: default; }
.vc-drop audio { width: 100%; height: 40px; color-scheme: dark; }
.vc-drop #cloneLen { color: var(--ink-2); font-size: 12px; }
.vc-req { position: absolute; top: 8px; right: 10px; font-size: 11px; color: var(--ink-3); background: var(--s-wash); padding: 1px 8px; border-radius: 999px; }
.vc-rec { height: 32px; padding: 0 12px; border-radius: 999px; background: var(--s-wash-2); display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.vc-rec svg { width: 14px; height: 14px; }
.vc-rec.on { background: #d0342c; color: #fff; }
.vc-lbl { display: block; margin-top: 14px; color: var(--ink-2); font-size: 12px; line-height: 16px; }
.vc-clone .field { margin: 6px 0 0; }
.vc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vc-row .vc-select { width: 100%; margin-top: 6px; }
.vc-seg { display: flex; margin-top: 6px; border-radius: 12px; background: var(--s-wash); padding: 3px; }
.vc-seg button { flex: 1; height: 34px; border-radius: 9px; color: var(--ink-2); font-size: 13px; }
.vc-seg button.on { background: var(--s-wash-2); color: var(--ink); }
.vc-consent { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; padding: 12px; border: 1px solid var(--line-2); border-radius: 12px; font-size: 13px; line-height: 18px; color: var(--ink-2); cursor: pointer; }
.vc-consent input { margin-top: 2px; accent-color: var(--accent); width: 16px; height: 16px; flex: none; }
.vc-mine { margin: 4px 0 16px; }
.vc-mine #cloneMine { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.vc-chip { padding: 2px 10px; border-radius: 999px; background: var(--s-wash-2); font-size: 12px; line-height: 20px; }
.small { font-size: 12px; }

@media (max-width: 760px) {
  .vc-filters { flex-direction: column; }
  .vc-row { grid-template-columns: 1fr; }
}
