.voice-recorder-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

.voice-recorder-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 10px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #cbd5e1;
    border-bottom: none;
    border-radius: 10px 10px 0 0;
}

.voice-recorder-header-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #64748b;
}

.voice-recorder-header-label i {
    color: #0f766e;
    font-size: 12px;
}

.voice-recorder-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.voice-recorder-lang {
    height: 30px;
    min-width: 58px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-size: 11px;
    font-weight: 600;
    padding: 0 6px;
    cursor: pointer;
}

.voice-recorder-lang:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.voice-recorder-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #0f766e;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.voice-recorder-btn:hover:not(:disabled) {
    border-color: #0f766e;
    background: #ecfdf5;
}

.voice-recorder-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.voice-recorder-btn.is-recording {
    color: #fff;
    background: #dc2626;
    border-color: #b91c1c;
    animation: voice-recorder-pulse 1.2s ease-in-out infinite;
}

.voice-recorder-btn.is-processing {
    color: #64748b;
}

@keyframes voice-recorder-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.35); }
    50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
}

.voice-recorder-body {
    display: block;
    width: 100%;
}

.voice-recorder-body > textarea,
.voice-recorder-body > input[type="text"] {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

.voice-recorder-wrap:focus-within .voice-recorder-header {
    border-color: #14b8a6;
    background: linear-gradient(180deg, #ecfdf5 0%, #f0fdfa 100%);
}

.voice-recorder-wrap:focus-within .voice-recorder-header-label {
    color: #0f766e;
}

.voice-recorder-status {
    font-size: 11px;
    color: #64748b;
    margin-top: 4px;
    min-height: 14px;
    padding-left: 2px;
}

.voice-recorder-status.is-error {
    color: #dc2626;
}
