.episode-shell{--chat-accent:var(--home-accent,#7565ed);--chat-on-accent:var(--home-brand-ink,#fff)}.episode-shell .episode-composer{background:var(--theme-surface-1,var(--home-surface));box-shadow:none;border-radius:18px;padding:0}.episode-shell .episode-composer:not(.play-compact-composer):focus-within{border-color:var(--chat-accent);box-shadow:0 0 0 1px var(--chat-accent)}.episode-shell .episode-composer>.message-editor{min-height:46px;margin:0;padding:14px 14px 6px;display:block}.episode-shell .episode-composer>.message-editor>div{width:100%}.episode-shell .episode-composer>div:last-child{gap:6px;margin:0;padding:6px 10px 10px}.episode-shell .episode-composer .ui-button{background:0 0;border:0}.episode-shell .episode-composer .episode-send.ui-button{background:var(--chat-accent);width:44px;height:44px;min-height:44px;color:var(--chat-on-accent);flex-shrink:0;margin-left:0;padding:12px;transition:background .15s,opacity .15s,transform .15s}.episode-shell .episode-send:not(:disabled):active{transform:scale(.92)}.episode-shell .episode-send[aria-busy=true]{opacity:1}.episode-shell .episode-send .ui-spinner{width:17px;height:17px;margin:0}.episode-composer div:last-child:not(:has(.chat-assist-tools)) .episode-send{margin-left:auto}.message-awaiting-placeholder{color:var(--theme-text-secondary,var(--home-muted));margin:0;font-size:14px;line-height:26px}.episode-shell .episode-generation-status:empty{display:none}.episode-shell .episode-generation-status:not(:empty){border-bottom:1px solid var(--theme-line-subtle,var(--home-line));flex-wrap:wrap;margin:0;padding:10px 14px;font-size:13px;display:flex}.episode-generation-status p{margin:0}.episode-shell .public-character-row.is-user .public-character-bubble{background:var(--chat-user-bubble)}.episode-shell .character-play-actions{justify-content:flex-end;gap:4px;margin:4px 0 24px 44px}.episode-shell .character-play-actions>span{display:none}.episode-shell .character-play-actions .ui-button{opacity:.65;background:0 0;border:0;width:32px;height:32px}.episode-shell .character-play-actions .ui-button:hover,.episode-shell .character-play-actions .ui-button:focus-visible{opacity:1;background:var(--theme-surface-2,var(--home-hover))}.episode-shell .character-play-messages .public-character-row{margin-bottom:10px}.episode-shell .public-character-message{min-width:0}.episode-shell .work-text{overflow-wrap:anywhere}.turn-progress{padding-top:8px}.turn-pending-message{margin-bottom:24px}.turn-pending-message .public-character-row{margin-bottom:4px}.turn-pending-message>small{text-align:right;color:var(--theme-text-secondary,var(--home-muted));font-size:11px;display:block}.turn-typing{align-items:flex-start;gap:10px;padding-block:8px 20px;animation:.18s ease-out both turn-arrive;display:flex}.turn-typing>img{aspect-ratio:1;object-fit:cover;border-radius:50%;flex-shrink:0}.turn-typing-name{color:var(--theme-text-secondary,var(--home-muted));margin:0 0 10px;font-size:12px;display:block}.turn-typing-line{min-height:32px;color:var(--theme-text-secondary,var(--home-muted));flex-wrap:wrap;align-items:center;gap:12px;font-size:13px;display:flex}.turn-typing-dots{background:var(--theme-surface-2,var(--home-hover));border-radius:0 14px 14px;align-items:center;gap:5px;height:32px;padding:8px 12px;display:flex}.turn-typing-dots i{background:var(--chat-accent);border-radius:50%;width:5px;height:5px;animation:1.3s ease-in-out infinite turn-pulse}.turn-typing-dots i:nth-child(2){animation-delay:.16s}.turn-typing-dots i:nth-child(3){animation-delay:.32s}.turn-typing small{max-width:38ch;color:var(--theme-text-secondary,var(--home-muted));margin-top:8px;font-size:12px;display:block}.episode-continue{flex-wrap:wrap;justify-content:center;gap:8px;margin-block:4px 12px;display:flex}.episode-continue .ui-button{min-height:44px;color:var(--theme-text-secondary,var(--home-muted));border-radius:24px;gap:6px;font-size:13px}.episode-jump-latest.ui-button{z-index:3;bottom:calc(max(var(--character-composer-space,0px), var(--episode-composer-height,112px)) + 8px);background:var(--theme-surface-2,var(--home-hover));border-radius:24px;gap:6px;min-height:44px;padding:10px 14px;font-size:12px;position:absolute;left:50%;transform:translate(-50%);box-shadow:0 3px 12px #00000029}.is-new-message{animation:.22s ease-out both turn-arrive}@keyframes turn-arrive{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@keyframes turn-pulse{0%,65%,to{opacity:.3}30%{opacity:1}}@media (max-width:480px){.episode-shell .episode-main{padding-inline:16px}.episode-shell .episode-composer{left:12px;right:12px;bottom:max(10px, env(safe-area-inset-bottom))}.episode-shell .episode-composer>div:last-child>.ui-button{padding-inline:6px;font-size:12px}.episode-shell .episode-composer .episode-send.ui-button{padding:8px}}@media (prefers-reduced-motion:reduce){.is-new-message,.turn-typing,.turn-typing-dots i{animation:none}.episode-shell .episode-send{transition:none}}.episode-shell .character-play-messages .public-character-row.is-narration{margin-block:18px;padding-inline:4px}.episode-shell .episode-character-link{gap:9px}.episode-shell .episode-character-link>svg{transform:none}.episode-character-link>img{aspect-ratio:1;object-fit:cover;border-radius:50%;flex-shrink:0}.episode-character-link>span{text-overflow:ellipsis;overflow:hidden}.character-turn{margin-block:0 28px}.character-turn-identity{align-items:center;gap:9px;margin-bottom:16px;display:flex}.character-turn-identity img{aspect-ratio:1;object-fit:cover;border-radius:50%;flex-shrink:0}.character-turn-identity strong{font-size:13px;font-weight:600}.episode-shell .character-play-messages .public-character-row.is-narration{margin-block:16px;padding:0}.episode-shell .character-play-messages .public-character-row.is-narration .public-character-bubble{color:var(--theme-text-secondary);background:0 0;padding:0}.episode-shell .character-play-messages .public-character-bubble .work-text{font-size:var(--reading-size,16px)}.episode-shell .character-play-messages .public-character-row.is-character .public-character-bubble{border-radius:14px 14px 14px 4px}.episode-shell .character-play-messages .public-character-row:not(.is-narration) .public-character-message{max-width:92%}.episode-shell .character-play-actions{justify-content:flex-start;margin:4px 0 0}.episode-shell .character-turn.is-user .character-play-actions{justify-content:flex-end}.episode-shell .character-play-actions .ui-button{width:36px;height:36px;min-height:36px}.episode-shell .character-play-actions .character-turn-retry{opacity:1;border-radius:20px;gap:6px;width:auto;padding-inline:8px;font-size:12px}.episode-shell .character-play-disclaimer{margin:0 0 24px;font-size:11px}.episode-shell .episode-composer>div:last-child{flex-wrap:wrap}.episode-shell .episode-composer .episode-send.ui-button{margin-left:auto}.episode-shell .episode-main{padding-top:20px}@media (max-width:480px){.episode-shell .episode-header{gap:5px;padding-inline:12px}.episode-shell .episode-header .episode-model{max-width:40%;font-size:11px}.episode-shell .episode-character-link{gap:6px}.episode-character-link>img{width:28px;height:28px}}.episode-shell .message-editor-input:focus-visible{outline:none}.episode-shell .episode-composer .play-writing-tools{flex-wrap:wrap;gap:6px;margin:0;padding:8px 10px 0;display:flex}.episode-shell .play-writing-tools .ui-button{min-width:44px;height:44px;min-height:44px;color:var(--theme-text-secondary);background:var(--theme-surface-2);border-radius:18px;gap:5px;padding:10px;font-size:12px}.episode-shell .play-writing-tools .ui-button:hover:not(:disabled),.episode-shell .play-writing-tools .ui-button:focus-visible{color:var(--home-accent-text);background:var(--home-accent-soft)}.episode-shell .play-writing-tools .ui-button>span{font-size:14px;font-weight:600}.episode-shell .episode-composer .message-editor{min-height:48px;padding:8px 66px 8px 14px}.episode-shell .episode-composer:not(.is-editing):not(.play-compact-composer)>div:last-child{min-height:0;padding:0 12px}.episode-shell .episode-composer:not(.is-editing):not(.play-compact-composer) .episode-send{border-radius:50%;position:absolute;bottom:11px;right:10px}.episode-shell .episode-composer.is-editing .message-editor{padding:12px}.episode-opening-replies{gap:8px;margin:20px 0;display:grid}.episode-opening-replies>p{color:var(--theme-text-secondary);margin:0 0 2px;font-size:12px}.episode-opening-replies .ui-button{border:1px solid var(--theme-line-subtle);text-align:left;white-space:normal;background:0 0;border-radius:12px;justify-content:flex-start;height:auto;min-height:44px;padding:10px 14px;line-height:1.6}.episode-opening-replies .ui-button:hover{border-color:var(--home-accent-text);background:var(--home-accent-soft)}@media (max-width:480px){.episode-shell .episode-composer .play-writing-tools{gap:5px;padding-inline:8px}.episode-shell .play-writing-tools .ui-button{padding-inline:5px;font-size:12px}}.turn-stream{min-width:0;padding-block:8px 20px}.turn-stream-status{color:var(--theme-text-secondary);flex-direction:column;align-items:flex-start;gap:6px;margin-top:10px;font-size:12px;line-height:1.6;display:flex}.turn-stream-status>span{align-items:center;gap:6px;display:flex}.turn-stream-status>small{max-width:46ch;font-size:12px}.turn-progress.is-offline .turn-stream-status i,.turn-progress.is-offline .turn-typing-dots i{opacity:.45;animation:none}.turn-stream-status i{background:var(--chat-accent);border-radius:2px;width:5px;height:12px;animation:1.3s ease-in-out infinite turn-pulse}.turn-stream-status.is-finalizing i{border-radius:50%;height:5px}.turn-status-sr{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media (prefers-reduced-motion:reduce){.turn-stream-status i{animation:none}}.episode-shell .character-play-messages .public-character-row.is-narration .public-character-message{width:100%;max-width:100%}.episode-shell .turn-stream{padding-block:0}.episode-shell .public-story-block{margin-block:var(--reading-gap,16px)}.episode-shell .public-story-block.is-narration{color:var(--theme-text-secondary)}.episode-shell .story-message.is-assistant .public-story-block.is-dialogue,.episode-shell .turn-stream .public-story-block.is-dialogue{color:var(--reading-dialogue,var(--theme-text-primary))}.episode-shell .story-message.is-assistant .public-story-block.is-dialogue .work-text>p:first-child:before,.episode-shell .turn-stream .public-story-block.is-dialogue .work-text>p:first-child:before{content:"“"}.episode-shell .story-message.is-assistant .public-story-block.is-dialogue .work-text>p:last-child:after,.episode-shell .turn-stream .public-story-block.is-dialogue .work-text>p:last-child:after{content:"”"}@media (max-width:768px){.episode-shell .episode-composer .message-editor-input,.episode-shell .message-awaiting-placeholder{font-size:16px;line-height:24px}.episode-shell .episode-composer .message-editor-input{max-height:min(168px,25dvh)}}.episode-continue[data-drafting=true]{visibility:hidden;pointer-events:none}.episode-scroll [data-message-id]:focus-visible,.episode-scroll .turn-progress:focus-visible{outline:2px solid var(--home-accent);outline-offset:4px;border-radius:8px}.conversation-recovery{flex-wrap:wrap;align-items:center;gap:10px 16px;padding:12px 0;display:flex}.conversation-recovery p{color:var(--theme-text-secondary);flex:220px;margin:0;font-size:13px;line-height:1.6}.credit-required-dialog.ui-modal{width:min(420px,100vw - 32px);padding:24px}.credit-required-dialog.ui-modal .ui-modal-header{gap:12px;min-height:44px;margin:0}.credit-required-dialog.ui-modal .ui-modal-header h1{margin:0;font-size:18px;line-height:26px}.credit-required-dialog .ui-modal-close{flex-shrink:0;position:static}.credit-required-dialog>p{color:var(--theme-text-secondary);margin:16px 0 24px;font-size:14px;line-height:1.7}.credit-required-actions{gap:12px;display:grid}.credit-required-actions>.ui-button{white-space:normal;text-align:center;min-height:48px;padding:12px 16px}.episode-shell .episode-generation-status>.ui-button,.episode-shell .episode-generation-status .conversation-recovery .ui-button{border:1px solid var(--theme-line-subtle);background:var(--theme-surface-2);height:auto;min-height:44px;color:var(--theme-text-primary);white-space:normal;border-radius:12px;flex-shrink:0;padding:10px 14px;font-size:13px}.episode-shell .play-compact-composer .message-editor{min-height:46px;padding:8px 14px 4px}.episode-shell .play-compact-composer .play-tools-toggle.ui-button,.episode-shell .play-compact-composer:not(.is-editing) .episode-send.ui-button{border-radius:50%;flex-shrink:0;width:44px;height:44px;min-height:44px;padding:10px;position:static}.episode-shell .play-compact-composer .play-tools-toggle.ui-button{color:var(--theme-text-primary);background:0 0}.episode-shell .play-compact-composer .play-tools-toggle:hover,.episode-shell .play-compact-composer .play-tools-toggle[aria-expanded=true]{background:var(--theme-surface-2)}.episode-shell .play-compact-composer .play-writing-tools{border-bottom:1px solid var(--theme-line-subtle);gap:8px;padding:10px}.episode-shell .play-compact-composer .play-writing-tools .ui-button{background:0 0;border-radius:10px;padding-inline:10px}.episode-shell .play-compact-composer .play-writing-tools .ui-button:hover:not(:disabled),.episode-shell .play-compact-composer .play-writing-tools .ui-button:focus-visible{background:var(--theme-surface-2);color:var(--theme-text-primary)}@media (max-width:480px){.episode-shell .play-compact-composer .play-writing-tools{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.episode-shell .play-compact-composer .play-writing-tools .ui-button{justify-content:flex-start}}
.reply-review-modal.ui-modal{flex-direction:column;width:min(620px,100vw - 32px);max-height:calc(100dvh - 24px);padding:0;display:flex;overflow:hidden}.reply-review-modal.is-comparison{height:min(760px,100dvh - 24px)}.reply-review-modal .ui-modal-header{border-bottom:1px solid var(--theme-line-subtle);flex-shrink:0;min-height:64px;margin:0;padding:20px}.reply-review-modal .ui-modal-close{top:10px;right:8px}.generated-choice{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex}.generated-choice p{margin:0}.generated-choice-help{flex-shrink:0;gap:8px;max-height:150px;padding:14px 20px;display:grid;overflow-y:auto}.generated-choice-help p,.generated-choice footer small{color:var(--theme-text-secondary);font-size:13px;line-height:1.6}.regeneration-instruction{font-size:13px;line-height:1.6}.regeneration-instruction summary{cursor:pointer;min-height:44px;color:var(--home-accent-text);align-items:center;display:flex}.regeneration-instruction summary:before{content:"+";margin-right:8px}.regeneration-instruction[open] summary:before{content:"−"}.regeneration-instruction p{white-space:pre-wrap;overflow-wrap:anywhere;padding-bottom:8px}.generated-choice [role=alert]{color:var(--theme-danger,#ff6b67)}.generated-choice-error{max-height:140px;padding:12px 20px;font-size:13px;overflow-y:auto}.generated-choice-error p{margin-bottom:8px}.reply-comparison{flex-direction:column;flex:1;min-height:0;padding:0 20px;display:flex}.reply-comparison .ui-tab-list{border-bottom:1px solid var(--theme-line-subtle);flex-shrink:0;gap:8px;padding-bottom:8px;display:flex}.reply-comparison .ui-tab-list .ui-button{min-height:44px;color:var(--theme-text-secondary);background:0 0;border:0;border-radius:8px;flex:1}.reply-comparison .ui-tab-list [aria-selected=true]{color:var(--home-accent-text);background:var(--home-accent-soft)}.reply-comparison-text.reading-sample{overscroll-behavior:contain;overflow-wrap:anywhere;scrollbar-gutter:stable;border:0;flex:1;min-height:0;margin:0;padding:16px 4px 20px;overflow-y:auto}.reply-comparison-text:focus-visible{outline:2px solid var(--home-accent);outline-offset:-2px;border-radius:4px}.reply-comparison-text .work-text{white-space:normal}.reply-comparison-text .public-character-message{max-width:100%}.reply-comparison-text .public-character-row:first-child{margin-top:0}.reply-comparison-text .public-character-row:last-child{margin-bottom:0}.generated-choice-list{overscroll-behavior:contain;flex-direction:column;gap:10px;min-height:0;padding:0 20px 20px;display:flex;overflow-y:auto}.generated-choice-list .ui-button{white-space:pre-wrap;overflow-wrap:anywhere;text-align:left;flex-direction:column;flex-shrink:0;justify-content:flex-start;align-items:stretch;gap:10px;height:auto;padding:14px;line-height:1.65}.suggestion-insert-action{color:var(--home-accent-text);justify-content:flex-end;gap:6px;font-size:12px;display:flex}.generated-choice footer{border-top:1px solid var(--theme-line-subtle);flex-shrink:0;gap:12px;padding:16px 20px;display:grid}.generated-choice footer>div{justify-content:flex-end;gap:10px;display:flex}.generated-choice footer .ui-button{min-height:44px}@media (max-width:600px){.reply-review-modal.ui-modal{border-radius:20px 20px 0 0;width:100%;max-width:100%;max-height:calc(100dvh - 16px);margin:auto auto 0}.reply-review-modal.is-comparison{height:min(760px,100dvh - 16px)}.generated-choice footer{padding-bottom:max(16px, env(safe-area-inset-bottom))}.generated-choice footer>div>button{flex:1}}
