/* ═══════════════════════════════════════════════════════════════
   Voice Studio — extracted from style.css in Phase 5.
   All selectors are prefixed with .vs-* and live under page-voice_studio.
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   Elevenlabs Boost Tool
   Lives entirely inside #vs-root. Prefix every selector with .vs-*.
   ═══════════════════════════════════════════════════════════════ */
.vs-root { display: flex; flex-direction: column; gap: 14px; }
.vs-muted { color: var(--gray-500); font-size: .82rem; }

.vs-subtabs {
    display: flex; align-items: center; gap: 4px;
    padding: 6px; background: var(--surface);
    border: 1px solid var(--border-light); border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.vs-subtab {
    padding: 8px 14px; border: 0; background: transparent;
    border-radius: var(--radius-sm); cursor: pointer;
    font-weight: 600; color: var(--gray-700); font-size: .9rem;
    transition: var(--transition);
}
.vs-subtab:hover { background: var(--gray-100); }
.vs-subtab.active { background: var(--primary); color: white; }
.vs-subtabs-spacer { flex: 1; }
.vs-credit-summary {
    padding: 0 12px; font-size: .85rem;
    display: flex; align-items: center; gap: 6px;
}
.vs-credit-num { font-weight: 700; color: var(--gray-900); font-size: 1rem; }

.vs-card {
    background: var(--surface); border: 1px solid var(--border-light);
    border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm);
}
.vs-card-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 14px; gap: 12px;
}
.vs-card-head h3 { font-size: 1rem; font-weight: 700; color: var(--gray-800); }

.vs-row { display: flex; align-items: center; }
.vs-empty {
    padding: 28px; text-align: center; color: var(--gray-500);
    border: 1px dashed var(--border); border-radius: var(--radius-sm);
    background: var(--gray-50);
}

/* Inputs / selects */
.vs-textarea, .vs-input, .vs-select {
    width: 100%; padding: 10px 12px; font-family: var(--font);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--white); font-size: .9rem; color: var(--text);
    transition: var(--transition);
}
.vs-textarea:focus, .vs-input:focus, .vs-select:focus {
    outline: 0; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(229,57,53,.12);
}
.vs-textarea { resize: vertical; min-height: 200px; line-height: 1.5; }
.vs-select { width: auto; min-width: 140px; }

/* Generate panel */
.vs-gen-grid {
    display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 14px;
}
@media (max-width: 1100px) {
    .vs-gen-grid { grid-template-columns: 1fr; }
}

.vs-voice-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; padding: 10px 12px; background: var(--gray-50);
    border: 1px solid var(--border-light); border-radius: var(--radius-sm);
    margin-bottom: 12px;
}
.vs-voice-meta { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vs-voice-name { font-weight: 700; color: var(--gray-900); }
.vs-voice-labels { display: flex; flex-wrap: wrap; gap: 4px; }
.vs-pill {
    display: inline-block; padding: 2px 8px; border-radius: 999px;
    background: var(--gray-100); color: var(--gray-700);
    font-size: .7rem; font-weight: 600; text-transform: lowercase;
}
.vs-pill-cat { background: var(--blue-100); color: var(--blue-500); }
.vs-pill-ok { background: var(--green-100); color: var(--green-500); }
.vs-pill-warn { background: var(--amber-100); color: var(--amber-500); }

.vs-settings { display: flex; flex-direction: column; gap: 14px; }
.vs-slider label {
    display: flex; justify-content: space-between; font-size: .82rem;
    font-weight: 600; color: var(--gray-700); margin-bottom: 4px;
}
.vs-slider-val { font-weight: 700; color: var(--gray-900); }
.vs-slider input[type="range"] { width: 100%; cursor: pointer; }
.vs-toggle {
    display: flex; align-items: center; gap: 8px; cursor: pointer;
    font-size: .85rem; font-weight: 600; color: var(--gray-700);
}
.vs-toggle input[type="checkbox"] {
    width: 18px; height: 18px; cursor: pointer; accent-color: var(--primary);
}

.vs-plan {
    margin-top: 14px; padding: 12px; background: var(--gray-50);
    border: 1px solid var(--border-light); border-radius: var(--radius-sm);
    font-size: .82rem;
}
.vs-plan-head { font-weight: 600; color: var(--gray-700); margin-bottom: 8px; }
.vs-plan-row {
    display: flex; justify-content: space-between;
    padding: 4px 0; border-top: 1px dashed var(--border-light); color: var(--gray-600);
}
.vs-plan-row:first-of-type { border-top: 0; }
.vs-plan-warn {
    background: #fff4f4; border-color: var(--red-200); color: var(--red-700);
    font-weight: 600;
}



/* Accounts table */
.vs-bar-wrap {
    width: 100%; height: 8px; border-radius: 4px;
    background: var(--gray-200); overflow: hidden;
}
.vs-bar { height: 100%; transition: width .3s ease; }
.vs-bar-ok { background: var(--green-500); }
.vs-bar-mid { background: var(--amber-500); }
.vs-bar-low { background: var(--red-500); }
.vs-status {
    display: inline-block; padding: 2px 8px; border-radius: 999px;
    font-size: .7rem; font-weight: 700; text-transform: uppercase;
}
.vs-status-active   { background: var(--green-100); color: var(--green-500); }
.vs-status-exhausted{ background: var(--amber-100); color: var(--amber-500); }
.vs-status-error    { background: var(--red-100, #ffebee); color: var(--red-700); }
.vs-status-disabled { background: var(--gray-200); color: var(--gray-600); }
.vs-status-running  { background: var(--blue-100); color: var(--blue-500); }
.vs-status-queued   { background: var(--gray-100); color: var(--gray-700); }
.vs-status-complete { background: var(--green-100); color: var(--green-500); }
.vs-status-failed   { background: #ffebee; color: var(--red-700); }
.vs-status-cancelled{ background: var(--gray-200); color: var(--gray-600); }

/* History percentage progress bar (rendered for queued / running / complete) */
.vs-progress {
    position: relative;
    display: inline-block;
    width: 90px; height: 18px;
    background: var(--gray-200);
    border-radius: 999px;
    overflow: hidden;
    font-size: .7rem; font-weight: 700;
    vertical-align: middle;
}
.vs-progress-fill {
    position: absolute; left: 0; top: 0; bottom: 0;
    background: linear-gradient(90deg, var(--blue-400, #60a5fa), var(--blue-500, #3b82f6));
    transition: width .35s ease;
}
.vs-progress-label {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    color: var(--gray-800, #1f2937);
    text-shadow: 0 0 2px rgba(255,255,255,.55);
}
.vs-progress.is-complete .vs-progress-fill {
    background: linear-gradient(90deg, var(--green-400, #4ade80), var(--green-500, #22c55e));
}

.vs-config-grid {
    display: grid; gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.vs-cfg-field {
    display: flex; flex-direction: column; gap: 4px;
}
.vs-cfg-field label {
    font-size: .8rem; font-weight: 600; color: var(--gray-700);
}
.vs-cfg-field input, .vs-cfg-field select {
    padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: .85rem; color: var(--text); background: var(--white);
}

/* History */
.vs-history-list { display: flex; flex-direction: column; gap: 10px; }
.vs-history-card {
    padding: 12px; border: 1px solid var(--border-light);
    border-radius: var(--radius-sm); background: var(--white);
    display: flex; flex-direction: column; gap: 6px;
}
.vs-history-head {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.vs-history-text {
    font-size: .82rem; color: var(--gray-600); line-height: 1.5;
    max-height: 60px; overflow: hidden; text-overflow: ellipsis;
}
.vs-history-progress {
    font-size: .75rem; color: var(--gray-500); font-style: italic;
}
.vs-history-error {
    font-size: .8rem; color: var(--red-700); font-weight: 600;
    background: #fff4f4; padding: 6px 8px; border-radius: 4px;
}
.vs-history-chunks { display: flex; flex-wrap: wrap; gap: 4px; }
.vs-chunk {
    padding: 2px 6px; border-radius: 4px; background: var(--gray-100);
    color: var(--gray-700); font-size: .7rem;
}
.vs-chunk-complete { background: var(--green-100); color: var(--green-500); }
.vs-chunk-failed   { background: #ffebee; color: var(--red-700); }
.vs-chunk-pending  { background: var(--gray-100); color: var(--gray-600); }
.vs-history-actions {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin-top: 6px;
}
.vs-history-actions audio { flex: 1; max-width: 360px; }

/* Banners + import result lists */
.vs-banner {
    padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 12px;
    font-size: .85rem; line-height: 1.5;
}
.vs-banner-warn  { background: var(--amber-100); color: #8a5a00; border: 1px solid #f0c25c; }
.vs-banner-error { background: #ffebee; color: var(--red-700); border: 1px solid var(--red-200); }
.vs-banner-info  { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.vs-banner a { color: inherit; font-weight: 700; text-decoration: underline; }

/* Voice Studio Settings panel — sectioned config blocks */
.vs-settings-block {
    border: 1px solid var(--border-light); border-radius: var(--radius-sm);
    padding: 14px; margin-bottom: 14px; background: var(--gray-50);
}
.vs-settings-block h4 {
    margin: 0 0 10px 0; font-size: .9rem; font-weight: 700;
    color: var(--gray-700); text-transform: uppercase; letter-spacing: .04em;
}
.vs-settings-block-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10px;
}
.vs-settings-block-head h4 { margin: 0; }
.vs-cfg-field textarea {
    padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm);
    font-size: .8rem; color: var(--text); background: var(--white);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical;
}

/* Voice Studio proxy pool snapshot + test result */
.vs-proxy-pool { margin-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.vs-proxy-pool-row {
    display: flex; justify-content: space-between; padding: 4px 8px;
    background: var(--white); border: 1px solid var(--border-light);
    border-radius: 4px; font-size: .8rem;
}
.vs-proxy-test-result {
    margin-top: 10px; padding: 8px 12px; border-radius: var(--radius-sm);
    font-size: .85rem; line-height: 1.4;
}
.vs-proxy-test-result.ok  { background: var(--green-100); color: var(--green-500); border: 1px solid #a5d6a7; }
.vs-proxy-test-result.err { background: #ffebee; color: var(--red-700); border: 1px solid var(--red-200); }

.vs-import-list { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.vs-import-row {
    padding: 6px 10px; border-radius: 4px; font-size: .8rem;
    border: 1px solid var(--border-light);
}
.vs-import-ok   { background: var(--green-100); color: var(--green-500); border-color: #a5d6a7; }
.vs-import-skip { background: var(--amber-100); color: #8a5a00; border-color: #f0c25c; }

/* Voice Studio bulk-action bar (accounts table) */
.vs-batch-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 12px; margin: 0 16px 12px 16px;
    background: var(--gray-50); border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
}
.vs-batch-count {
    font-size: .85rem; font-weight: 600; color: var(--gray-700);
    margin-right: auto;
}
.vs-row-selected td { background: rgba(59, 130, 246, .06); }
.vs-row-check { cursor: pointer; }

/* ═══════════════════════════════════════════════════════════════════════
   VOICE STUDIO — Voice Picker Modal
   The shared #modal-overlay opens at max-width:480px by default; the
   .vs-picker-mode class flips that container into the wide two-column
   picker (catalog + favorites rail) used on the Generate panel.
   ═══════════════════════════════════════════════════════════════════════ */

/* Wide modal variant — overrides the default 480px modal */
/* Wide modal variant — overrides the default 480px modal */

/* Voice-trigger card — the "Select a voice" button on the Generate panel */
.vs-voice-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    background: var(--gray-50, #fafafa);
    border: 1.5px solid var(--border);
    border-radius: var(--radius, 10px);
    cursor: pointer;
    transition: var(--transition, all .15s ease);
    text-align: left;
    font: inherit;
    color: inherit;
}
.vs-voice-trigger:hover {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, .08);
}
.vs-voice-trigger.has-voice {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 100%);
    border-color: var(--primary);
}
.vs-voice-trigger-avatar {
    width: 36px; height: 36px;
    flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
}
.vs-voice-trigger-meta {
    display: flex; flex-direction: column;
    flex: 1; min-width: 0;
}
.vs-voice-trigger-name {
    font-weight: 700; font-size: .95rem;
    color: var(--gray-900);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vs-voice-trigger-sub {
    font-size: .78rem;
    color: var(--text-secondary);
    text-transform: capitalize;
}
.vs-voice-trigger-empty { flex: 1; }
.vs-voice-trigger-empty strong {
    display: block; color: var(--gray-900); font-size: .95rem;
}
.vs-voice-trigger-empty small {
    display: block; color: var(--text-secondary); font-size: .78rem;
    margin-top: 2px;
}
.vs-voice-trigger-arrow {
    font-size: 1.5rem; line-height: 1;
    color: var(--text-secondary);
    transition: transform .15s ease;
}
.vs-voice-trigger:hover .vs-voice-trigger-arrow { transform: translateX(3px); color: var(--primary); }

/* Compact selected-voice info (under the trigger) */
.vs-voice-row-compact {
    display: flex; flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 12px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm, 8px);
}

/* Keyboard hint chip */
.vs-kbd-hint kbd {
    display: inline-block;
    padding: 1px 5px;
    font-family: ui-monospace, monospace;
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--gray-700);
    background: var(--gray-100);
    border: 1px solid var(--border);
    border-bottom-width: 2px;
    border-radius: 4px;
}

/* ── Picker layout (Wide Table Mode) ────────────────────────────────── */

.modal.vs-picker-mode {
    max-width: 1200px !important;
    width: 94vw !important;
    height: 85vh !important;
    display: flex;
    flex-direction: column;
    margin: auto;
}

.modal.vs-picker-mode .modal-body {
    padding: 0;
    flex: 1;
    overflow: hidden;
    display: flex;
}

.vs-picker-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 20px 24px;
    box-sizing: border-box;
    background: var(--surface);
    overflow: hidden;
}

.vs-picker-sub {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    margin-top: -6px;
}

/* Action bar: Search + Buttons */
.vs-picker-action-bar {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: nowrap;
}

.vs-picker-search-container {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
}

.vs-picker-search-icon {
    position: absolute;
    left: 16px;
    color: var(--gray-500);
    pointer-events: none;
    transition: color var(--transition);
}

.vs-picker-search-input {
    width: 100%;
    height: 44px;
    padding: 0 16px 0 44px;
    font-size: 0.95rem;
    font-family: var(--font);
    background: var(--gray-50);
    border: 1.5px solid var(--border);
    border-radius: 999px;
    outline: none;
    transition: all 0.2s ease;
    color: var(--text);
    box-sizing: border-box;
}

.vs-picker-search-input:focus {
    background: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.12);
}

.vs-picker-search-container:focus-within .vs-picker-search-icon {
    color: var(--primary);
}

.vs-picker-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.vs-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    height: 44px;
    width: auto !important;
    margin-top: 0 !important;
    box-sizing: border-box;
    white-space: nowrap;
    flex-shrink: 0;
}

.vs-action-btn svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.vs-action-btn:hover {
    border-color: var(--gray-400);
    background: var(--gray-50);
    color: var(--gray-900);
}

.vs-action-btn.active {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

.vs-action-btn.active svg {
    transform: scale(1.05);
}

/* Heart icon in favorites btn */
.vs-action-btn .vs-heart-static {
    color: var(--primary);
    margin-right: 2px;
}

/* Collapsible Filters Drawer */
.vs-picker-filter-drawer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease, margin 0.35s ease, border-color 0.35s ease;
    background: var(--gray-50);
    border-radius: 12px;
    padding: 0 20px;
    margin-bottom: 0;
    border: 1.5px solid transparent;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.vs-picker-filter-drawer.open {
    max-height: 600px;
    padding: 20px;
    margin-bottom: 16px;
    border-color: var(--border-light);
    overflow-y: auto;
}

.vs-picker-filter-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.vs-picker-filter-group {
    display: flex;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1.5px solid var(--border-light);
    gap: 24px;
}

.vs-picker-filter-group:last-child {
    border-bottom: none;
}

.vs-picker-filter-group label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-700);
    width: 120px;
    flex-shrink: 0;
    padding-top: 8px;
    margin-bottom: 0;
}

.vs-picker-select {
    max-width: 280px;
    width: 100%;
    padding: 9px 12px;
    font-size: 0.88rem;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    outline: none;
    cursor: pointer;
    transition: all 0.15s ease;
    color: var(--text);
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.vs-picker-select:hover {
    border-color: var(--gray-400);
    background-color: var(--gray-50);
}

.vs-picker-select:focus {
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.12);
}

.vs-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.vs-filter-pill {
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 500;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.2s ease;
}

.vs-filter-pill:hover {
    border-color: var(--gray-400);
    color: var(--gray-900);
    background: var(--gray-50);
}

.vs-filter-pill.active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(229, 57, 53, 0.15);
}

@media (max-width: 600px) {
    .vs-picker-filter-group {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
        padding: 12px 0;
    }
    .vs-picker-filter-group label {
        width: auto;
        padding-top: 0;
    }
}

.vs-picker-filter-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
    border-top: 1px solid var(--border-light);
    padding-top: 12px;
}

.vs-picker-clear {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.vs-picker-clear:hover:not(:disabled) {
    background: var(--primary-light);
}

.vs-picker-clear:disabled,
.vs-picker-clear.is-disabled {
    color: var(--gray-400);
    cursor: not-allowed;
}

/* Wide table mode layout */
.vs-picker-table-header {
    display: grid;
    grid-template-columns: minmax(0, 3fr) 1.2fr 1.2fr 130px;
    gap: 16px;
    padding: 12px 24px;
    background: var(--gray-50);
    border: 1.5px solid var(--border);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    align-items: center;
    margin-top: 4px;
    flex-shrink: 0;
}

.vs-th-actions {
    text-align: right;
    padding-right: 12px;
}

.vs-picker-list.vs-table-mode {
    flex: 1;
    overflow-y: auto;
    border: 1.5px solid var(--border);
    border-radius: 0 0 12px 12px;
    background: var(--surface);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.vs-picker-row {
    display: grid;
    grid-template-columns: minmax(0, 3fr) 1.2fr 1.2fr 130px;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1.5px solid var(--border-light);
    align-items: center;
    cursor: pointer;
    transition: all 0.15s ease;
    background: var(--surface);
}

.vs-picker-row:last-child {
    border-bottom: none;
}

.vs-picker-row:hover {
    background: var(--gray-50);
}

.vs-picker-row.is-active {
    background: linear-gradient(90deg, var(--primary-light) 0%, var(--surface) 100%);
    position: relative;
}

.vs-picker-row.is-active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
}

.vs-picker-row-col {
    display: flex;
    align-items: center;
    min-width: 0;
}

.vs-picker-row-col.name-col {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.vs-picker-row-col.name-col strong {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--gray-900);
}

.vs-picker-row-bio {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.vs-picker-row-col.lang-col {
    gap: 10px;
    font-size: 0.9rem;
    color: var(--gray-800);
    font-weight: 500;
}

.vs-table-flag {
    width: 22px;
    height: 15px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.06);
    flex-shrink: 0;
}

.vs-picker-row-col.usecase-col {
    display: flex;
}

.vs-category-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    background: var(--gray-100);
    color: var(--gray-700);
    border: 1px solid var(--border-light);
    text-transform: capitalize;
    white-space: nowrap;
}

.vs-picker-row-col.actions-col {
    justify-content: flex-end;
    gap: 10px;
}

/* Table Icon Buttons */
.vs-table-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--white);
    border: 1.5px solid var(--border);
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    padding: 0;
}

.vs-table-icon-btn svg {
    transition: transform 0.15s ease;
}

.vs-table-icon-btn:hover:not(:disabled) {
    background: var(--gray-900);
    color: var(--white);
    border-color: var(--gray-900);
    transform: scale(1.08);
}

.vs-table-icon-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Play button state */
.vs-table-icon-btn.vs-btn-play.is-playing {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    animation: vsPulsePlay 1.6s infinite;
}

@keyframes vsPulsePlay {
    0% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.45); }
    70% { box-shadow: 0 0 0 6px rgba(229, 57, 53, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0); }
}

/* Favorite button state (+) -> (✓) */
.vs-table-icon-btn.vs-btn-fav.is-fav {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: #a5d6a7;
}

.vs-table-icon-btn.vs-btn-fav.is-fav:hover {
    background: #c8e6c9;
    color: #1b5e20;
    border-color: #81c784;
}

/* Voice list loading / error states */
.vs-picker-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.vs-spinner {
    width: 20px;
    height: 20px;
    border: 2.5px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: vsSpin 0.8s linear infinite;
}

@keyframes vsSpin {
    to { transform: rotate(360deg); }
}

.vs-picker-empty,
.vs-picker-error {
    padding: 60px 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.vs-picker-error {
    color: var(--red-700);
    font-weight: 600;
}

/* Infinite scroll loader */
.vs-picker-row-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 24px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    border-top: 1.5px solid var(--border-light);
    background: var(--surface);
}

.vs-picker-row-loader .vs-spinner {
    width: 16px;
    height: 16px;
}

/* Dropdown Menu Styles */
.vs-dropdown-wrap {
    position: relative;
    display: inline-block;
}

.vs-dropdown-menu {
    position: absolute;
    top: 105%;
    left: 0;
    z-index: 100;
    display: none;
    min-width: 180px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 6px 0;
    box-sizing: border-box;
}

.vs-dropdown-menu.show {
    display: block;
}

.vs-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.vs-dropdown-item:hover {
    background: var(--gray-50);
    color: var(--gray-900);
}

.vs-dropdown-item.active {
    color: var(--primary);
    font-weight: 600;
}

.vs-dropdown-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* Scrollbar polish */
.vs-picker-list::-webkit-scrollbar {
    width: 8px;
}

.vs-picker-list::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

.vs-picker-list::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

/* Picker Pagination controls */
.vs-picker-paging {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1.5px solid var(--border-light);
    background: var(--surface);
    flex-shrink: 0;
    margin-top: auto;
}

.vs-page-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.vs-page-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.vs-page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.vs-page-number {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-800);
    min-width: 60px;
    text-align: center;
}

/* ═══ MODERN AUDIO PLAYER BAR ═══ */
.vs-player-bar {
    position: fixed;
    bottom: -90px;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(12px);
    border-top: 1.5px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vs-player-bar.show {
    bottom: 0;
}

.vs-player-container {
    width: 100%;
    max-width: 1200px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.vs-player-info {
    min-width: 200px;
    max-width: 320px;
    flex-shrink: 0;
}

.vs-player-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vs-player-subtitle {
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vs-player-controls {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 600px;
}

.vs-player-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
    flex-shrink: 0;
}

.vs-player-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.08);
}

.vs-player-time {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--gray-400);
    min-width: 40px;
    user-select: none;
}

.vs-player-slider-wrap {
    flex: 1;
    display: flex;
    align-items: center;
}

.vs-player-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.15);
    transition: background 0.15s;
    appearance: none;
}

.vs-player-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    border-radius: 3px;
}

.vs-player-slider::-webkit-slider-thumb {
    height: 14px;
    width: 14px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    appearance: none;
    margin-top: -4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    transition: transform 0.1s;
}

.vs-player-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.vs-player-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.vs-player-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.vs-player-action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.vs-player-close-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.1rem;
}

.vs-player-close-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
}

.vs-table-icon-btn.vs-history-play-btn.is-playing {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    animation: vsPulsePlay 1.6s infinite;
}

/* Voice Studio table scrolling & sticky headers */
.vs-root .vs-card .table-wrap {
    max-height: calc(100vh - 320px);
    overflow-y: auto;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
}

.vs-root .vs-card .table-wrap thead th {
    position: sticky;
    top: 0;
    background: var(--gray-50);
    z-index: 10;
    box-shadow: inset 0 -2px 0 var(--border-light);
}


