.composer-left {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
}

.voice-button {
    position: relative;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-strong);
    border-radius: 11px;
    color: var(--muted);
    background: rgba(255,255,255,.025);
    cursor: pointer;
    transition: color .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.voice-button:hover:not(:disabled) {
    color: var(--text);
    border-color: var(--border-gold);
    background: rgba(198,162,91,.055);
    transform: translateY(-1px);
}

.voice-button:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.voice-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.voice-button[aria-pressed="true"] {
    color: var(--gold-bright);
    border-color: var(--border-gold);
    background: rgba(198,162,91,.10);
    box-shadow: 0 0 0 3px rgba(198,162,91,.055);
}

.voice-button[aria-pressed="true"]::after {
    content: "";
    position: absolute;
    inset: -4px;
    border: 1px solid rgba(198,162,91,.22);
    border-radius: 14px;
    opacity: .55;
    animation: voice-ring 1.9s ease-out infinite;
    pointer-events: none;
}

.voice-state {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 10px;
    white-space: nowrap;
}

.voice-state[hidden] { display: none; }

.voice-state-dot {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 999px;
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(111,189,147,.07);
}

.voice-state[data-mode="hearing"] .voice-state-dot,
.voice-state[data-mode="transcribing"] .voice-state-dot {
    background: var(--gold-bright);
    box-shadow: 0 0 0 4px rgba(198,162,91,.08);
}

.voice-state[data-mode="speaking"] .voice-state-dot {
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(198,162,91,.08);
}

.voice-state[data-mode="error"] {
    color: #e59a9a;
}

.voice-state[data-mode="error"] .voice-state-dot {
    background: var(--danger);
    box-shadow: 0 0 0 4px rgba(216,118,118,.08);
}

.voice-bars {
    height: 14px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.voice-bars i {
    width: 2px;
    height: 4px;
    border-radius: 999px;
    background: currentColor;
    opacity: .45;
    transform-origin: center;
}

.voice-state[data-mode="hearing"] .voice-bars i,
.voice-state[data-mode="speaking"] .voice-bars i {
    animation: voice-bar .74s ease-in-out infinite alternate;
}

.voice-bars i:nth-child(2) { animation-delay: -.18s !important; }
.voice-bars i:nth-child(3) { animation-delay: -.36s !important; }
.voice-bars i:nth-child(4) { animation-delay: -.54s !important; }

.voice-state-text {
    overflow: hidden;
    text-overflow: ellipsis;
}

.composer.is-voice-active {
    border-color: rgba(198,162,91,.22);
}

@keyframes voice-ring {
    0% { transform: scale(.96); opacity: .55; }
    70%, 100% { transform: scale(1.08); opacity: 0; }
}

@keyframes voice-bar {
    from { height: 4px; opacity: .35; }
    to { height: 13px; opacity: .95; }
}

@media (max-width: 760px) {
    .composer-left { flex: 1; }
    .voice-state { max-width: min(52vw, 280px); }
}

@media (max-width: 520px) {
    .voice-state { max-width: 42vw; }
}

@media (prefers-reduced-motion: reduce) {
    .voice-button[aria-pressed="true"]::after,
    .voice-state[data-mode="hearing"] .voice-bars i,
    .voice-state[data-mode="speaking"] .voice-bars i {
        animation: none;
    }
}
