/* ============================================================
   Verse Studio › Your Versona (studio-versona.js, 2026-10-17): the "Your Versona" sheet every tool opens, and the Audio
   page's "Versona voice" tab. Rides on .modal-overlay / .modal (studio.css) and the Create tools' chips, notes and panel
   (studio-create.css). The editors' rules: the accent is for the one primary button and the focus ring; a chosen card is the
   grey selected fill; radii 10 / 6 / 999; no entrance motion beyond the modal's own. It sits above an editor's export sheet
   (200), the Create lightbox (250) and the Vault's sheets (260).
   ============================================================ */
.vsp-overlay { z-index: 265; }
body:has(.vsp-overlay) .verse-home-pill { visibility: hidden !important; }
.vsp-sheet { max-width: 640px; display: flex; flex-direction: column; overflow: hidden; border-radius: 10px; max-height: min(760px, 92vh); }
.vsp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 4px; }
.vsp-head .modal-title { display: flex; align-items: center; gap: 10px; font-size: 18px; }
.vsp-title-ic { display: inline-flex; color: var(--text-soft); }
.vsp-line { margin: 0; padding: 0 20px 12px; font-size: 13.5px; line-height: 1.5; }
.vsp-body { display: flex; flex-direction: column; gap: 16px; padding: 0 20px 16px; min-height: 0; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.vsp-state { display: flex; align-items: center; gap: 10px; padding: 18px 4px; font-size: 13.5px; line-height: 1.5; color: var(--text-soft); }
.vsp-state-col { flex-direction: column; align-items: flex-start; }
.vsp-state p { margin: 0; max-width: 60ch; }
.vsp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; }
.vsp-card { display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: 10px; border: 1px solid var(--gray-mid); background: var(--black); color: var(--text-soft); text-align: left; transition: border-color .15s, background-color .15s; }
.vsp-card:hover { border-color: var(--border-soft); color: var(--text); }
.vsp-card.is-on { background: var(--gray-light); border-color: var(--text-soft); color: var(--white); }
.vsp-card:focus-visible, .vsp-sheet .btn:focus-visible, .vsp-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.vsp-thumb { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; border-radius: 6px; overflow: hidden; background: #3a4150; }
.vsp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vsp-initial { font-family: var(--font-poster); font-weight: 700; font-size: 34px; color: rgba(255,255,255,.55); }
.vsp-thumb-spin { position: absolute; right: 6px; bottom: 6px; display: inline-flex; color: var(--text-soft); }
.vsp-name { font-size: 13.5px; line-height: 1.4; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vsp-picture { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.vsp-opts { display: flex; flex-direction: column; gap: 14px; }
.vsp-chip { display: inline-flex; align-items: center; gap: 6px; }
.vsp-swatch { width: 14px; height: 14px; border-radius: 999px; border: 1px solid var(--border-soft); background: #3a4150; }
.vsp-swatch[data-bg="#ffffff"] { background: #ffffff; }
.vsp-swatch[data-bg="transparent"], .vsp-preview-box.is-clear { background-color: #2f2f2f; background-image: linear-gradient(45deg, #444 25%, transparent 25%), linear-gradient(-45deg, #444 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #444 75%), linear-gradient(-45deg, transparent 75%, #444 75%); background-size: 12px 12px; background-position: 0 0, 0 6px, 6px -6px, -6px 0; }
.vsp-swatch[data-bg="transparent"] { background-size: 6px 6px; background-position: 0 0, 0 3px, 3px -3px, -3px 0; }
.vsp-preview { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.vsp-preview-box { position: relative; width: 100%; max-height: 300px; border-radius: 6px; overflow: hidden; border: 1px solid var(--gray-mid); background: var(--black); display: flex; align-items: center; justify-content: center; }
.vsp-preview-box img { width: 100%; height: 100%; object-fit: contain; display: block; }
.vsp-preview-note { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 10px; font-size: 12.5px; line-height: 1.45; color: var(--text-muted); text-align: center; }
.vsp-foot { display: flex; flex-direction: column; gap: 10px; padding: 12px 20px 18px; border-top: 1px solid var(--gray-mid); }
.vsp-error { margin: 0; font-size: 13px; line-height: 1.5; color: var(--red-soft); }
.vsp-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.vsp-sheet .btn-primary { color: var(--accent-ink); }
.vsp-use { gap: 6px; max-width: 100%; }
.vsp-use-label { overflow: hidden; text-overflow: ellipsis; max-width: 32ch; }
@media (max-width: 640px) {
  .vsp-overlay { padding: 0; }
  .vsp-sheet { max-height: 100dvh; height: 100dvh; max-width: none; border-radius: 0; }
  .vsp-picture { grid-template-columns: minmax(0, 1fr); }
  .vsp-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
  .vsp-actions .btn { flex: 1 1 auto; }
  .vsp-use-label { max-width: 22ch; }
}
@media (prefers-reduced-motion: reduce) { .vsp-overlay, .vsp-sheet { animation: none; } .vsp-card { transition: none; } }

/* ---- the Audio page's Versona voice tab (the panel is .cr-panel; these are its own parts) ---- */
/* Docked (901 px and up) the Audio tabs wrap inside the 360 px panel: with a sixth tab they keep to two rows by sitting a little closer. */
@media (min-width: 901px) {
  .st-dock > .cr-split > .cr-panel > .cr-audio-tabs:has(> [data-tab="versona"]) { gap: 0; }
  .st-dock > .cr-split > .cr-panel > .cr-audio-tabs:has(> [data-tab="versona"]) .cr-tab { padding-left: 10px; padding-right: 10px; }
}
.vsv-panel { display: flex; flex-direction: column; gap: 14px; }
.vsv-who { display: flex; flex-direction: column; gap: 8px; }
.vsv-who-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; border: 1px solid var(--gray-mid); background: var(--black); }
.vsv-who-thumb { width: 52px; height: 52px; border-radius: 6px; overflow: hidden; background: #3a4150; display: flex; align-items: center; justify-content: center; }
.vsv-who-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vsv-who-thumb .vsp-initial { font-size: 24px; }
.vsv-who-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; line-height: 1.4; }
.vsv-who-name { font-size: 14px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vsv-who-text .text-muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vsv-retry { align-self: flex-start; gap: 6px; }
.vsv-speak-row { display: flex; gap: 8px; }
.vsv-speak { flex: 1 1 auto; gap: 8px; }
.vsv-takes { display: flex; flex-direction: column; gap: 12px; }
.vsv-take { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 10px; border: 1px solid var(--gray-mid); background: var(--gray-dark); }
.vsv-take-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; font-size: 14px; line-height: 1.4; }
.vsv-take-head strong { color: var(--text); font-weight: 600; }
.vsv-take-head .text-muted { font-size: 13px; }
.vsv-take-words { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--text-soft); overflow-wrap: anywhere; max-width: 72ch; }
.vsv-audio { width: 100%; max-width: 560px; height: 40px; }
.vsv-take-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.vsv-take-actions .btn { gap: 6px; }
.vsv-take-actions .btn:focus-visible, .vsv-panel .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
