/* ── Voice tab ────────────────────────────────────────────────── */
#voice-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 24px;
    padding: 24px;
}

/* ── Main button ── */
.voice-btn {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--surface2);
    color: var(--text-dim);
    font-size: 36px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.voice-btn:hover {
    border-color: var(--accent);
    color: var(--text);
    background: var(--surface3);
}

.voice-btn.active {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-dim);
    animation: voice-pulse 2s ease-in-out infinite;
}

.voice-btn.connecting {
    border-color: var(--warning);
    color: var(--warning);
    background: var(--warning-dim);
    cursor: wait;
    animation: voice-pulse 1s ease-in-out infinite;
}

.voice-btn.speaking {
    border-color: var(--warning);
    color: var(--warning);
    background: var(--warning-dim);
    cursor: default;
    animation: voice-speak-pulse 1.5s ease-in-out infinite;
}

.voice-btn.error {
    border-color: var(--error);
    color: var(--error);
    background: var(--error-dim);
}

@keyframes voice-pulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--accent-dim); }
    50%      { box-shadow: 0 0 0 16px transparent; }
}

@keyframes voice-speak-pulse {
    0%, 100% { box-shadow: 0 0 0 0 var(--warning-dim); }
    50%      { box-shadow: 0 0 0 12px transparent; }
}

/* ── Status text ── */
.voice-status {
    font-size: 11px;
    color: var(--text-dim);
    text-align: center;
    min-height: 16px;
    letter-spacing: 0.5px;
}

.voice-status.error { color: var(--error); }

/* ── Visualizer ── */
.voice-visualizer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 40px;
    min-width: 80px;
}

.voice-bar {
    width: 3px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
    transition: height 0.08s ease;
}

.voice-visualizer.idle .voice-bar {
    height: 4px;
    background: var(--border);
}

/* ── Info area ── */
.voice-info {
    font-size: 10px;
    color: var(--text-faint);
    text-align: center;
    max-width: 300px;
    line-height: 1.6;
}