/* Conversation stage. The dictate microphone stays on the composer. */

#chat-overlay.is-voice .chat-input-wrapper,
#chat-overlay.is-voice .chat-starter-wrap,
#chat-overlay.is-voice .chat-empty-header,
#chat-overlay.is-voice #chat-suggested-actions-container {
    display: none !important;
}

.chat-voice-stage {
    display: none;
}

#chat-overlay.is-voice .chat-main.is-empty .chat-input-area,
#chat-overlay.is-docked.is-voice .chat-main.is-empty .chat-input-area {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    grid-template-rows: none;
}

#chat-overlay.is-voice .chat-voice-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    margin-top: auto;
    padding: 8px 8px calc(14px + env(safe-area-inset-bottom, 0px));
}

.chat-voice-caption {
    margin: 0;
    min-height: 48px;
    max-height: 96px;
    overflow: auto;
    width: 100%;
    text-align: center;
    font-size: 18px;
    line-height: 1.35;
    color: var(--text-primary);
}

.chat-voice-caption.is-placeholder {
    color: var(--text-muted);
    font-size: 15px;
}

.chat-voice-mic {
    width: 76px;
    height: 76px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #3a4150;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.chat-voice-mic svg,
.chat-voice-speaker svg,
.chat-voice-x svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chat-voice-mic.is-muted,
.chat-voice-speaker.is-muted {
    color: var(--text-muted);
}

.chat-voice-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
}

.chat-voice-plus {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.chat-voice-plus svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#chat-overlay.is-voice .chat-run-header,
#chat-overlay.is-voice .chat-run-body {
    display: none !important;
}

.chat-voice-speaker {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-secondary, rgba(255, 255, 255, 0.72));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.chat-voice-speaker svg {
    width: 22px;
    height: 22px;
}

.chat-voice-x {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.chat-voice-x svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.2;
}

html[data-theme="light"] .chat-voice-mic {
    background: #f2f3f5;
    color: #3a4150;
    box-shadow: 0 6px 16px rgba(20, 24, 33, 0.08);
}

html[data-theme="light"] .chat-voice-speaker {
    color: #5c6370;
}

html[data-theme="light"] .chat-voice-x {
    background: #111;
    color: #fff;
}
