{$t('chat.planningQuestion')}
{#if pending}
{$t('chat.questionProgress', { current: questionIndex + 1, total: questions.length })} ยท {$t('chat.pausedWhileVisible')}
{:else if item.timed_out || resolved.timed_out}
{$t('chat.recommendationsUsed')}
{/if}
{#if question} {#key question.id}
{question.header}
{question.question}
{#if pending}
{#each question.options || [] as option, optionIndex} {/each} {#if selections[question.id] === '__other__'} (otherAnswers = { ...otherAnswers, [question.id]: event.currentTarget.value })} /> {/if}
{:else}
{resolved.answers?.[question.id]?.answers?.join(', ') || $t('chat.noAnswerRecorded')}
{/if}
{/key} {/if}
{#if questionIndex < questions.length - 1} {:else if pending} {/if}