.input-area { position: relative; }

.voice-overlay {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0; left: 0;
    display: flex; flex-direction: column; gap: 6px;
    padding: 10px 14px;
    background: rgba(20, 20, 30, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    opacity: 0; pointer-events: none;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease;
    z-index: 10;
}
.voice-overlay.visible { opacity: 1; transform: translateY(0); }

.voice-status {
    font-size: 13px; color: #cfd2dc;
    display: flex; align-items: center; gap: 6px;
}
.voice-status .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #888;
}
.voice-status.waiting  .dot { background: #e2b93b; animation: vpulse 1s infinite; }
.voice-status.speaking .dot { background: #5ec26a; box-shadow: 0 0 8px #5ec26a; }
.voice-status.silence  .dot { background: #e28a3b; }
.voice-status.processing .dot { background: #4a90e2; animation: vpulse 1s infinite; }
@keyframes vpulse { 50% { opacity: .4; } }

.level-bar {
    width: 100%; height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px; overflow: hidden;
}
.level-fill {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, #4a90e2, #5ec26a);
    border-radius: 3px;
    transition: width .05s linear;
}

.mic-button.recording {
    background: #b53c3c !important;
    animation: vrec 1.2s infinite;
}
@keyframes vrec { 50% { box-shadow: 0 0 0 8px rgba(181, 60, 60, 0.25); } }