
.input-options-combined-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.input-options-combined-panel .input-options-dev-panel {
    padding-top: 4px;
    border-top: 1px solid rgba(220, 234, 250, 0.14);
}

.vocal-scripts-dock {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.vocal-script-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(80, 151, 186, 0.52);
    background: linear-gradient(140deg, rgba(12, 44, 78, 0.5), rgba(18, 57, 88, 0.42));
}

.vocal-script-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.vocal-script-title {
    color: rgba(243, 250, 255, 0.92);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: none;
}

.vocal-script-subtitle {
    color: rgba(251, 191, 36, 0.95);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.vocal-script-shell {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vocal-script-field-label {
    color: rgba(220, 236, 252, 0.9);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.long-pause-preview {
    width: 100%;
    border: 1px solid rgba(251, 191, 36, 0.55);
    border-radius: 8px;
    padding: 8px 10px;
    background: rgba(9, 21, 43, 0.52);
    color: rgba(251, 224, 123, 0.96);
    font-size: 13px;
    line-height: 1.45;
    letter-spacing: 0.01em;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    resize: vertical;
    font-style: italic;
}

.vocal-script-full-preview {
    min-height: 72px;
    height: 80px;
    max-height: 160px;
}

.vocal-script-full-preview[readonly] {
    cursor: text;
}

.long-pause-preview.is-empty {
    opacity: 0.82;
}

.input-option-card-body .privacy-tail-input,
.vocal-script-input {
    min-height: 74px;
    height: 82px;
    max-height: 140px;
    border: 1px solid rgba(99, 158, 201, 0.4);
    border-radius: 8px;
    background: rgba(10, 29, 59, 0.52);
    color: #e8f3ff;
    font-size: 15px;
    line-height: 1.45;
    padding: 10px 12px;
    resize: vertical;
}

.input-option-card-body .privacy-tail-input:focus,
.vocal-script-input:focus {
    border-color: rgba(56, 233, 176, 0.78);
    box-shadow: 0 0 0 2px rgba(56, 233, 176, 0.2);
    outline: none;
}

.input-options-voice-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    max-height: 100%;
    overflow: auto;
    padding-right: 2px;
}

.voice-menu-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.voice-selector-dock {
    width: 100%;
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--input-dock-menu-section-border-color);
    background: var(--input-dock-menu-section-background);
}

.voice-selector-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 120px;
}

.voice-selector-label {
    color: rgba(225, 238, 252, 0.88);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.voice-selector-id {
    color: #f8c55f;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.voice-selector-buttons {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.voice-selector-btn {
    border: 1px solid rgba(206, 232, 255, 0.45);
    border-radius: 9px;
    padding: 9px 12px;
    min-width: 92px;
    background: rgba(8, 21, 53, 0.56);
    color: rgba(240, 248, 255, 0.94);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.voice-selector-btn:hover {
    border-color: rgba(56, 233, 176, 0.82);
    transform: translateY(-1px);
}

.voice-selector-btn.selected {
    background: rgba(251, 191, 36, 0.96);
    border-color: rgba(251, 191, 36, 0.98);
    color: #101828;
    box-shadow: 0 5px 14px rgba(251, 191, 36, 0.3);
}

.voice-selector-dock.locked .voice-selector-btn {
    cursor: not-allowed;
    opacity: 0.58;
}

.voice-selector-dock.locked .voice-selector-btn.selected {
    opacity: 0.82;
}

.voice-selector-dock.locked .voice-selector-btn:hover {
    transform: none;
    border-color: rgba(206, 232, 255, 0.45);
}

.voice-menu-secondary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.voice-slate-toggle-row {
    flex: 0 0 auto;
}

.voice-speaker-group {
    margin-left: auto;
}

.voice-speaker-group .input-options-dev-btn {
    min-width: 170px;
}

.input-options-dev-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: auto;
    max-height: none;
    overflow: visible;
}

.input-options-dev-section {
    border: 1px solid var(--input-dock-menu-section-border-color);
    border-radius: 10px;
    padding: 12px;
    background: var(--input-dock-menu-section-background);
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    height: auto;
    overflow: visible;
}

.input-options-dev-section--speed {
    flex: 0 0 auto;
    min-height: 0;
    justify-content: flex-start;
}

.input-options-dev-section--chunking {
    flex: 0 0 auto;
    height: auto;
}

.input-options-dev-title {
    color: rgba(238, 248, 255, 0.92);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0;
}

.input-options-dev-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
    min-width: 0;
}

.input-options-dev-row:last-child {
    margin-bottom: 0;
}

.input-options-dev-row--stack {
    align-items: stretch;
    flex-direction: column;
}

.input-options-dev-row--toggles {
    flex-wrap: wrap;
}

.input-options-dev-row > span {
    color: rgba(223, 234, 248, 0.92);
    font-size: 12px;
    min-width: 42px;
    font-weight: 600;
    flex: 0 0 auto;
}

.input-options-dev-field-label {
    color: rgba(223, 234, 248, 0.92);
    font-size: 12px;
    font-weight: 600;
}

.input-options-dev-note {
    margin: 0;
    color: rgba(199, 218, 240, 0.78);
    font-size: 11px;
    line-height: 1.45;
}

.input-options-dev-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.speed-preset-group {
    width: 100%;
}

.speed-preset-group .input-options-dev-btn {
    min-width: 72px;
}

.input-options-dev-btn {
    border: 1px solid rgba(186, 220, 250, 0.38);
    border-radius: 7px;
    background: rgba(7, 20, 45, 0.62);
    color: rgba(237, 246, 255, 0.9);
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1.2;
}

.input-options-dev-btn:hover {
    border-color: rgba(56, 233, 176, 0.8);
}

.input-options-dev-btn.selected,
.input-options-dev-btn.active {
    border-color: rgba(251, 191, 36, 0.98);
    background: rgba(251, 191, 36, 0.96);
    color: #111827;
}

.input-options-dev-checkbox {
    width: 14px;
    height: 14px;
}

.input-options-dev-checkbox-label {
    color: rgba(223, 234, 248, 0.92);
    font-size: 12px;
    font-weight: 600;
}

.input-options-dev-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#voiceSlateRow {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 2px 0 0;
}

.custom-voices-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 2px;
}

.custom-voices-single-row,
.custom-voices-order-row {
    align-items: center;
}

.custom-voices-multi-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.custom-voices-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.voice-slate-select,
.voice-slate-input,
.input-options-dev-text {
    width: auto;
    flex: 1 1 140px;
    min-width: 0;
    border: 1px solid rgba(188, 219, 247, 0.38);
    border-radius: 8px;
    background: rgba(7, 20, 45, 0.62);
    color: rgba(240, 248, 255, 0.95);
    font-size: 12px;
    padding: 8px 10px;
}

#devSpeedSlider {
    flex: 1;
    min-width: 0;
}

#devSpeedInput {
    width: 54px;
    border: 1px solid rgba(188, 219, 247, 0.38);
    border-radius: 8px;
    background: rgba(7, 20, 45, 0.62);
    color: rgba(240, 248, 255, 0.95);
    font-size: 12px;
    font-weight: 600;
    padding: 7px 8px;
    text-align: center;
}

#chunkSize {
    width: 88px;
    border: 1px solid rgba(188, 219, 247, 0.38);
    border-radius: 8px;
    background: rgba(7, 20, 45, 0.62);
    color: rgba(240, 248, 255, 0.95);
    font-size: 12px;
    font-weight: 600;
    padding: 7px 8px;
    text-align: center;
}

@media (max-width: 1060px) {
    .vocal-scripts-dock {
        grid-template-columns: 1fr;
    }

    .voice-selector-dock {
        flex-direction: column;
        align-items: stretch;
    }

    .voice-selector-header {
        min-width: 0;
    }

    .voice-selector-buttons {
        justify-content: flex-start;
    }

    .voice-menu-secondary {
        flex-direction: column;
        align-items: stretch;
    }

    .voice-speaker-group {
        margin-left: 0;
    }

    .voice-speaker-group .input-options-dev-btn {
        flex: 1 1 180px;
    }

    .custom-voices-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .input-options-pill-row {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .input-option-pill {
        min-width: 0;
        width: 100%;
        flex: none;
        min-height: 44px;
        padding: 8px 6px;
        font-size: clamp(15px, 3.8vw, 17px);
        line-height: 1.15;
        white-space: normal;
    }

    .input-option-card-head {
        padding: 12px 12px 8px;
    }

    .input-option-card-body {
        padding: 0 12px 12px;
    }

    .voice-selector-btn {
        min-width: 0;
        flex: 1 1 110px;
    }

    .voice-speaker-group .input-options-dev-btn {
        flex: 1 1 100%;
    }

    .speed-preset-group .input-options-dev-btn {
        flex: 1 1 72px;
    }
}
