/* Ditado por voz (Web Speech API) — padrão PanelDX */
.btn-voz-campo {
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
    color: #5b21b6;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
    font-family: inherit;
}
.btn-voz-campo:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.btn-voz-campo.mic-voz-ouvindo {
    background: #fef2f2;
    border-color: #ef4444;
    color: #b91c1c;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}
.btn-voz-campo.mic-voz-ouvindo .mic-label {
    font-weight: 800;
}
.ditado-voz-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 8px;
}
textarea.ditado-ativo,
input.ditado-ativo {
    border-color: #7c3aed !important;
    box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.12);
}
textarea.ditado-recebeu,
input.ditado-recebeu {
    border-color: #059669 !important;
    box-shadow: 0 0 0 0.2rem rgba(5, 150, 105, 0.18);
}
.ditado-status {
    font-size: 0.78rem;
    color: #64748b;
    min-height: 1.2rem;
    margin: 0 0 6px;
}
.ditado-stop-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 14px;
    margin: 0 0 10px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.1), rgba(108, 92, 231, 0.08));
    border: 1px solid rgba(239, 68, 68, 0.35);
    animation: ditado-pulse-bar 1.6s ease-in-out infinite;
}
.ditado-stop-bar[hidden] {
    display: none !important;
}
@keyframes ditado-pulse-bar {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.15); }
    50%      { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.05); }
}
.ditado-stop-bar__hint {
    font-size: 0.82rem;
    color: #4A2E80;
    font-weight: 600;
}
.ditado-stop-bar__hint kbd {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e2e8f0;
    font-size: 0.78rem;
    font-weight: 800;
    color: #b91c1c;
}
.btn-ditado-stop {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-weight: 800;
    font-size: 0.82rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
    font-family: inherit;
}
.btn-ditado-stop:hover {
    filter: brightness(1.05);
}
