.voice-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
}

.voice-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.voice-head h1 {
    margin: 0;
    font-size: 26px;
}

.voice-subtitle {
    margin-top: 6px;
    color: #667085;
    font-size: 14px;
}

.voice-layout {
    display: grid;
    grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.voice-panel {
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.voice-panel h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.voice-recorder {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.voice-record-button {
    min-height: 76px;
    border: 0;
    border-radius: 8px;
    background: #155eef;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

.voice-record-button.recording {
    background: #c01048;
}

.voice-actions,
.voice-draft-actions,
.voice-settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.voice-btn {
    border: 1px solid #cfd4dc;
    background: #fff;
    color: #101828;
    border-radius: 8px;
    min-height: 42px;
    padding: 0 14px;
    cursor: pointer;
    font-weight: 600;
}

.voice-btn.primary {
    background: #155eef;
    border-color: #155eef;
    color: #fff;
}

.voice-btn.danger {
    border-color: #f3b4c6;
    color: #b42318;
}

.voice-btn:disabled,
.voice-record-button:disabled {
    opacity: .55;
    cursor: default;
}

.voice-audio {
    width: 100%;
}

.voice-status {
    min-height: 22px;
    color: #475467;
    font-size: 14px;
}

.voice-transcript textarea,
.voice-field textarea,
.voice-field input,
.voice-field select,
.voice-settings-grid input,
.voice-settings-grid select {
    width: 100%;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
    box-sizing: border-box;
}

.voice-transcript textarea {
    min-height: 120px;
    resize: vertical;
}

.voice-draft-grid,
.voice-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.voice-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #344054;
    font-size: 13px;
}

.voice-field.wide {
    grid-column: 1 / -1;
}

.voice-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.voice-history-table th,
.voice-history-table td {
    border-bottom: 1px solid #eef2f6;
    padding: 10px;
    text-align: left;
    vertical-align: top;
}

.voice-history-table tr {
    cursor: pointer;
}

.voice-history-table tr:hover {
    background: #f8fafc;
}

.voice-history-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    border: 1px solid #f3b4c6;
    background: #fff;
    color: #b42318;
    border-radius: 6px;
    min-height: 30px;
    padding: 0 10px;
    cursor: pointer;
    font-weight: 600;
}

.voice-history-delete:hover {
    background: #fff1f3;
}

.voice-history-delete:disabled {
    opacity: .55;
    cursor: default;
}

.voice-settings-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

@media (max-width: 900px) {
    .voice-page {
        padding: 12px;
    }

    .voice-layout,
    .voice-draft-grid,
    .voice-settings-grid {
        grid-template-columns: 1fr;
    }

    .voice-head {
        flex-direction: column;
    }

    .voice-btn,
    .voice-record-button {
        width: 100%;
    }
}
