.voice-preparation { text-align: left; margin: 20px 0; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #eef0e7; }
.voice-preparation p { font-size: 11px; line-height: 1.8; color: #59614f; }
.voice-preparation #voice-allowance { font-size: 13px; font-weight: 600; color: var(--olive); margin-bottom: 8px; white-space: pre-line; }
.voice-captions-section { text-align: left; margin: 17px 0; border-top: 1px solid var(--line); padding-top: 8px; }
.caption-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.caption-heading h3 { font-size: 12px; font-weight: 600; }
.caption-heading button { font-size: 11px; min-height: 40px; }
.voice-captions { max-height: 145px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 5px; }
.voice-caption { margin: 8px 0; padding: 10px 12px; border-radius: 10px; background: var(--white); }
.voice-caption.user { background: var(--sage); }
.voice-caption strong { display: block; font-size: 10px; color: #59614f; margin-bottom: 4px; }
.voice-caption p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.7; }
.voice-caption-empty { color: var(--muted); font-size: 11px; line-height: 1.8; padding: 10px 0; }
.voice-summary { font-size: 12px; line-height: 1.8; padding: 13px; border-radius: 10px; background: var(--sage); margin: 15px 0; white-space: pre-line; }
.voice-followup { display: grid; gap: 9px; margin: 15px 0; padding: 16px; border: 1px solid var(--story-line); border-radius: 10px; background: var(--story-panel); text-align: left; }
.voice-followup[hidden] { display: none; }
.voice-followup h3 { margin: 0; font-size: 17px; line-height: 1.3; }
.voice-followup p { margin: 0; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.voice-followup .button { width: 100%; margin-top: 3px; }
.voice-dialog .voice-actions { flex-wrap: wrap; }
.voice-dialog[data-status="preparing"] .voice-wave,
.voice-dialog[data-status="ready"] .voice-wave,
.voice-dialog[data-status="ended"] .voice-wave,
.voice-dialog[data-status="error"] .voice-wave { display: none; }
.voice-dialog:has(#voice-captions-section:not([hidden])) .voice-portrait { height: 95px; width: 95px; margin: 22px auto; }
.voice-dialog { overscroll-behavior: contain; }
.conversation-copy .draft-preview { color: var(--olive); }
.conversation-copy .story-recap-preview { margin-top: 4px; font-size: 11px; opacity: .8; }
.recap-form label { display: block; margin: 12px 0 8px; color: var(--story-muted); font-size: 11px; }
.recap-form textarea { display: block; width: 100%; min-height: 100px; padding: 10px; resize: vertical; border: 1px solid var(--story-line); border-radius: 8px; background: var(--story-panel); color: var(--story-cream); font-size: 12px; line-height: 1.5; }
.recap-form .button { width: 100%; margin-top: 8px; }
.recap-form .form-error { margin-top: 8px; }
.recap-suggestion { margin-top: 10px; padding: 12px; border: 1px solid var(--story-line); border-radius: 8px; background: var(--story-panel); }
.recap-suggestion strong { font-size: 12px; }
.recap-suggestion p { margin: 8px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.recap-suggestion .button { width: 100%; margin-top: 8px; }
.pending-message { display: flex; align-items: center; gap: 9px; }
.pending-dots { animation: pending-pulse 1.2s ease-in-out infinite; }
.message-options { margin-top: 4px; }
.message-bubble .story-action { font-family: Georgia, serif; font-style: italic; }
.message-options summary { display: flex; align-items: center; width: fit-content; min-height: 40px; padding: 6px 3px; color: var(--story-muted); cursor: pointer; font-size: 11px; }
.message-options summary, .story-choices > summary { list-style: none; }
.message-options summary::-webkit-details-marker, .story-choices > summary::-webkit-details-marker { display: none; }
.message-options summary::after, .story-choices > summary::after { content: ''; display: inline-block; width: 6px; height: 6px; margin: -3px 3px 0 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); flex-shrink: 0; }
.message-options[open] summary::after, .story-choices[open] > summary::after { transform: rotate(225deg); margin-top: 3px; }
.episode-decision.story-choices { display: block; padding: 0 14px; }
.story-choices > summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; cursor: pointer; font-size: 12px; font-weight: 600; }
.story-choices > summary:focus-visible { outline: 2px solid var(--story-accent); outline-offset: 2px; }
.story-choices[open] > :not(summary) { margin: 0 0 12px; }
.message-options summary:focus-visible { outline: 2px solid var(--story-accent); outline-offset: 2px; }
.message-options .message-tools { gap: 12px; padding-bottom: 4px; }
.message-options .message-tools .text-button { min-height: 36px; }
@keyframes pending-pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .pending-dots { animation: none; } }
