.episode-shell{--chat-inspector-width:clamp(320px, 28vw, 360px);grid-template-rows:48px minmax(0,1fr);min-width:0;min-height:0;display:grid;position:relative}.episode-header{border-bottom:1px solid var(--theme-line-subtle,#3a3a35);flex-wrap:nowrap;gap:8px;width:100%;min-width:0;max-width:780px;height:48px;margin:auto;padding:0 20px}.episode-header>a{min-width:0;color:inherit;white-space:nowrap;text-overflow:ellipsis;flex:1;align-items:center;gap:4px;font-size:14px;text-decoration:none;display:flex;overflow:hidden}.episode-header>a svg{flex-shrink:0;transform:rotate(-90deg)}.episode-header .episode-model{border-radius:6px;width:auto;max-width:44%;height:36px;min-height:36px;padding:7px 9px;font-size:12px}.episode-header>.ui-button{width:28px;height:36px;min-height:36px;color:var(--theme-text-secondary,#929287);padding:2px}.episode-shell .episode-header>.episode-model.ui-button{border-radius:20px;gap:6px;width:auto;min-width:0;max-width:44%;height:44px;min-height:44px;padding:8px 10px;font-size:12px}.episode-header>.episode-model span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.episode-header>.episode-model svg{flex-shrink:0}.chat-reply-settings h2{margin:0 0 12px;font-size:15px}.chat-reply-model{padding:16px 0 28px}.chat-reply-model .episode-model{width:100%;min-height:48px}.chat-reply-limits.ui-radio-group{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:20px 0 0}.chat-reply-limits .ui-radio-option{border:1px solid var(--theme-line-subtle);border-radius:12px;align-items:center;min-height:64px;padding:12px}.chat-reply-limits .ui-radio-option:has(input:checked){border-color:var(--color-accent);background:color-mix(in srgb, var(--color-accent) 8%, transparent)}.chat-reply-limits .ui-radio-option:has(input:focus-visible){outline:2px solid var(--color-accent);outline-offset:2px}.episode-main{max-width:780px;min-height:0;padding:16px 20px 168px}.episode-main .work-text{font-size:16px;line-height:26px}.episode-main .work-text p{line-height:26px}.episode-message-actions{justify-content:flex-end;margin:16px 0 32px;display:flex}.episode-message-actions .ui-button{width:28px;min-height:28px;color:var(--theme-text-secondary,#8e8e83);background:0 0;border:0;padding:4px}.episode-suggestions{gap:12px;margin-top:24px;display:grid}.episode-suggestions>div{justify-content:flex-end;align-items:flex-end;gap:8px;display:flex}.episode-suggestions .ui-button{width:28px;min-height:28px;color:var(--theme-text-secondary,#838379);padding:4px}.episode-suggestions>div>button:last-child{background:var(--theme-surface-2,#30302e);max-width:90%;color:var(--theme-text-primary,#eee);font:inherit;text-align:left;cursor:pointer;border:0;border-radius:24px;padding:12px}.episode-suggestions .work-text p{margin:0}.episode-guide{border-block:1px solid #65432f;margin-top:20px;padding:16px}.episode-guide h2{color:#efa45b;margin:0 0 12px;font-size:14px;font-weight:600}.episode-guide .work-text{color:var(--theme-text-secondary,#b1b1a5);font-size:14px}.episode-composer{left:max(20px,50% - 370px);right:max(31px,50% - 370px);bottom:max(16px, env(safe-area-inset-bottom));border:1px solid var(--theme-line-subtle,#383835);background:var(--theme-surface-0,#080807);box-shadow:0 0 16px 12px var(--theme-surface-0,#131311);border-radius:12px;padding:10px 12px 12px;position:absolute}.episode-composer>.ui-textarea{resize:none;height:32px;min-height:32px;max-height:120px;box-shadow:none;background:0 0;border:0;padding:0;font-size:14px}.episode-composer>div{align-items:center;gap:8px;margin-top:8px;display:flex}.episode-composer>div>.ui-button{border:1px solid var(--theme-line-subtle,#3c3c35);width:auto;height:28px;min-height:28px;color:var(--theme-text-secondary,#97978a);border-radius:24px;padding:3px 10px;font-size:14px}.episode-composer>div>.ui-button-icon{width:28px;padding:4px}.episode-composer .episode-send.ui-button{background:var(--home-accent);color:var(--home-brand-ink);border-color:#0000;margin-left:auto}.episode-composer .episode-send svg{fill:none}@media (min-width:640px){.episode-main{padding-inline:36px}.episode-composer{left:max(36px,50% - 354px);right:max(47px,50% - 354px)}}.episode-shell{overflow:hidden}.episode-header,.episode-scroll,.episode-composer{transition:transform .16s}.episode-shell.has-settings>.episode-header,.episode-shell.has-settings>.episode-scroll,.episode-shell.has-settings>.episode-composer{transform:none}.episode-main[data-show-images=false] .public-narrative .work-text img,.episode-main[data-show-images=false] .public-character-bubble>img{display:none}.chat-sidebar{width:var(--chat-inspector-width);overscroll-behavior:contain;background:var(--theme-surface-1,#1c1c1a);border-left:1px solid var(--theme-line-subtle,#373732);color:var(--theme-text-primary,#d7d7ce);scrollbar-width:thin;flex-direction:column;padding:16px;display:flex;position:absolute;top:48px;bottom:0;right:0;overflow:hidden}.chat-sidebar h2{color:var(--theme-text-secondary,#87877c);margin:24px 0 10px;font-size:12px;font-weight:500}.chat-gallery-heading{width:100%;color:var(--theme-text-primary,#eee);font:inherit;cursor:pointer;background:0 0;border:0;align-items:center;gap:4px;padding:0;font-size:12px;display:flex}.chat-gallery-heading>span{color:var(--theme-text-secondary,#8d8d82)}.chat-gallery-heading>svg{margin-left:auto;transform:rotate(-90deg)}.chat-gallery-thumbnails{min-width:0;margin:18px 0 40px}.chat-gallery-thumbnails .ui-scroll-rail-track{scroll-snap-type:none;scrollbar-width:none;gap:12px;padding:0;display:flex}.chat-gallery-thumbnails .ui-scroll-rail-track::-webkit-scrollbar{display:none}.chat-gallery-thumbnails button{background:var(--theme-surface-2,#30302a);aspect-ratio:1;cursor:pointer;border:0;border-radius:12px;flex:0 0 96px;width:96px;height:96px;padding:0;overflow:hidden}.chat-gallery-thumbnails img{object-fit:cover;width:100%;height:100%;display:block}.chat-setting-row{width:100%;min-height:56px;color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:12px;padding:14px 0;font-size:16px;text-decoration:none;display:flex}.chat-setting-row>svg{color:var(--theme-text-secondary,#97978b);flex-shrink:0}.chat-setting-row>span{overflow-wrap:anywhere;flex:1;min-width:0;line-height:1.5}.chat-setting-row>span>small{color:var(--theme-text-secondary);margin-top:3px;font-size:13px;font-weight:400;line-height:1.5;display:block}button.chat-setting-row:hover,a.chat-setting-row:hover{color:var(--home-accent-text)}.chat-setting-row>small{text-overflow:ellipsis;max-width:88px;color:var(--theme-text-secondary,#87877c);font-size:13px;overflow:hidden}.chat-setting-row>svg:last-child{transform:rotate(-90deg)}.chat-setting-row .ui-switch{flex-shrink:0}.chat-sidebar hr{border:0;border-top:1px solid var(--theme-line-subtle,#383833);margin:20px 0}.chat-start-info{flex-direction:column;gap:10px;padding:12px 0 16px;font-size:12px;display:flex}.chat-start-info span{color:var(--theme-text-secondary,#909085)}.chat-start-info strong{font-weight:400}.play-model-menu{width:min(366px,100vw - 24px);max-height:min(450px, var(--radix-select-content-available-height));background:var(--theme-surface-2,#252523);border-radius:8px}.play-model-menu .ui-select-viewport{padding:8px}.play-model-menu .ui-select-option{min-height:50px;padding:6px 8px;font-size:12px}.play-model-menu .ui-select-option[data-state=checked]:not([data-highlighted]){background:0 0}.play-model-menu .ui-select-option[data-highlighted]{background:var(--theme-surface-3,#40403e)}.play-model-menu .ui-select-option-label{gap:4px}.play-model-menu .mode-symbol{width:14px;height:14px}.play-model-menu .ui-select-option-heading{gap:5px}.play-model-menu .ui-select-description{color:var(--theme-text-secondary,#919185);margin-top:2px;font-size:12px;line-height:18px}.ui-popover.quick-model-menu{background:var(--theme-surface-2);border-radius:12px;width:240px;padding:6px}.quick-model-choices{gap:2px;display:grid}.quick-model-menu .ui-button{text-align:left;white-space:normal;width:100%;min-height:44px;color:var(--theme-text-primary);background:0 0;border:0;border-radius:7px;justify-content:flex-start;gap:8px;padding:10px;font-size:13px;line-height:20px}.quick-model-choices .ui-button>span{overflow-wrap:anywhere;flex:1;min-width:0}.quick-model-choices .ui-button small{color:var(--theme-text-secondary);font-size:11px}.quick-model-choices .ui-button[data-unavailable]:disabled{opacity:1}.quick-model-choices .ui-button[aria-pressed=true]{background:var(--theme-surface-3)}.quick-model-choices .ui-button[aria-pressed=true] svg{color:var(--theme-accent,#ff4f99)}.quick-model-menu .ui-button:hover:not(:disabled){background:var(--theme-surface-3)}.quick-model-menu .ui-button:focus-visible{outline:2px solid var(--theme-text-secondary);outline-offset:-2px}.quick-model-menu .quick-model-settings{border-top:1px solid var(--theme-line-subtle);border-radius:0 0 7px 7px;margin-top:6px}.quick-model-settings svg:last-child{margin-left:auto;transform:rotate(-90deg)}.quick-model-menu p{color:var(--theme-text-secondary);margin:8px 10px;font-size:12px;line-height:18px}.play-model-price{background:var(--theme-surface-0,#171714);color:var(--theme-text-secondary,#99998a);border-radius:3px;align-items:center;gap:2px;padding:1px 4px;font-size:10px;display:inline-flex}.play-model-price svg{color:#e3b651}.play-model-recommended{background:var(--theme-action-tint,#341e1a);color:var(--home-accent);border-radius:4px;padding:2px 4px;font-size:9px}.chat-sheet.ui-modal{border:1px solid var(--theme-line-subtle,#414139);background:var(--theme-surface-0,#0d0d0c);width:min(100%,500px);max-width:100%;height:auto;max-height:calc(100dvh - 16px);color:var(--theme-text-primary,#d9d9d0);box-sizing:border-box;border-radius:16px 16px 0 0;flex-direction:column;margin:auto auto 0;padding:0;display:flex;overflow:hidden}.chat-sheet.ui-modal::backdrop{background:#0000009e}.chat-sheet .ui-modal-header{flex-shrink:0;align-items:center;gap:12px;min-height:64px;margin:0;padding:16px 20px 12px 24px;display:flex}.chat-sheet .ui-modal-header h1{flex:1;margin:0;font-size:16px;font-weight:600;line-height:24px}.chat-sheet .ui-modal-close.ui-button{background:var(--theme-surface-2,#30302b);width:44px;height:44px;min-height:44px;color:var(--theme-text-secondary,#a1a193);border-radius:50%;padding:10px}.chat-sheet-body{overscroll-behavior:contain;scrollbar-width:thin;flex:1;min-height:0;padding:0 20px 16px;overflow-y:auto}.chat-sheet-help{color:var(--theme-text-secondary,#aaa99d);margin:0 0 18px;font-size:14px;line-height:26px}.chat-sheet-footer{flex-shrink:0;gap:8px;padding:16px 20px 24px;display:flex}.chat-sheet-footer .ui-button{min-height:44px}.chat-sheet-note.ui-modal{width:min(640px,100%);height:fit-content}.chat-sheet-note .ui-modal-header{padding-bottom:10px}.chat-sheet-note .chat-sheet-body{flex:0 auto;padding-top:0}.chat-note-editor-heading{justify-content:space-between;align-items:baseline;gap:16px;margin-bottom:8px;display:flex}.chat-note-editor-heading label{font-size:16px;font-weight:600;line-height:1.5}.chat-note-editor-heading>span{color:var(--theme-text-secondary);font-variant-numeric:tabular-nums;flex-shrink:0;font-size:14px}.chat-note-editor-heading>span.is-invalid{color:var(--theme-error-text)}.chat-user-note.ui-textarea{resize:none;background:var(--theme-surface-0);border:1px solid var(--theme-line-subtle);border-radius:8px;width:100%;height:240px;min-height:240px;padding:14px;font-size:16px;line-height:1.7}.chat-note-options{border-top:1px solid var(--theme-line-subtle);margin-top:20px;padding-top:12px}.chat-note-extension-button{width:100%;min-height:48px;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:4px;justify-content:space-between;align-items:center;gap:16px;padding:8px 0;display:flex}.chat-note-extension-button strong{overflow-wrap:anywhere;min-width:0;font-size:16px;font-weight:600;line-height:1.5}.chat-note-extension-button:focus-visible{outline:2px solid var(--color-accent);outline-offset:4px}.chat-note-extension-button:disabled{opacity:.5;cursor:default}.chat-sheet-note .note-extension-price{margin:4px 0 0;font-size:14px}.chat-sheet-note .note-extension-price summary{cursor:pointer;min-height:44px;padding-block:10px}.chat-sheet-note .chat-sheet-footer{border-top:1px solid var(--theme-line-subtle);padding-bottom:max(16px,env(safe-area-inset-bottom));gap:12px}.chat-sheet-note .chat-sheet-body>.ui-button,.chat-sheet-note .note-extension-price .ui-button{min-height:48px;font-size:16px}.chat-sheet-note .chat-note-conflict h2{font-size:16px}.chat-sheet-note .chat-note-conflict-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%;display:grid}.chat-sheet-note .chat-note-conflict-actions>button{white-space:normal;min-width:0;min-height:48px;font-size:16px}@media (max-width:480px){.chat-sheet-note .chat-note-conflict-actions{grid-template-columns:minmax(0,1fr)}}.chat-note-price{color:var(--theme-text-secondary,#969687);align-items:center;gap:4px;margin:6px 0 0;font-size:12px;display:flex}.chat-note-price>span{color:#65a2f7;align-items:center;gap:2px;display:inline-flex}.chat-sheet-note .chat-sheet-footer>.ui-button{width:100%}.chat-sheet-output.ui-modal{height:min(717px,100dvh - 16px)}.chat-sheet-output .ui-modal-header{min-height:68px;padding-left:20px}.chat-sheet-output .chat-sheet-body{padding-block:0}.chat-sheet-output .chat-sheet-footer{flex-wrap:wrap;justify-content:flex-end}.chat-sheet-output .chat-sheet-footer .detail-error{width:100%}.chat-sheet-output .chat-sheet-footer>.ui-button{min-width:88px}.chat-sheet-output .chat-sheet-footer>.ui-button:disabled{opacity:1;background:var(--theme-surface-4,gray);color:var(--theme-text-inverse,#292929)}.chat-sheet-output .chat-sheet-help{margin-bottom:6px}.chat-output-row{border-bottom:1px solid var(--theme-line-subtle,#292927);min-height:141px;padding:22px 0 12px}.chat-output-row:last-child{border:0;min-height:139px}.chat-reply-settings .chat-output-row{padding-top:16px}.chat-reply-settings .model-output-cost p{margin:6px 0;line-height:21px}.chat-reply-settings .chat-reply-limits{margin-top:14px}.chat-output-amount,.chat-output-amount>span{align-items:center;gap:5px;display:flex}.chat-output-amount{justify-content:space-between}.chat-output-amount>span{flex-wrap:wrap;font-size:18px;font-weight:500}.chat-output-amount [role=img]{display:flex}.chat-output-amount strong{color:var(--theme-text-primary,#efeee4);font-size:20px}.chat-output-amount>div{white-space:nowrap;color:var(--theme-text-secondary,#aaa99b);align-items:center;gap:3px;font-size:12px;display:flex}.chat-output-extra{color:var(--theme-text-secondary,#848477);justify-content:flex-end;align-items:center;gap:3px;margin:5px 0 18px;font-size:11px;display:flex}.chat-output-row .ui-step-slider{margin:0 4px 0 0}.chat-sheet-memory.ui-modal{height:fit-content;max-height:min(720px,100dvh - 16px)}.chat-sheet-memory .chat-sheet-body{flex-direction:column;padding-inline:20px;display:flex}.chat-memory-intro p{margin:0 0 4px;font-size:15px;line-height:24px}.chat-memory-intro>span{color:var(--theme-text-secondary);font-size:13px;line-height:21px;display:block}.chat-memory-tabs{border-bottom:1px solid var(--theme-line-subtle);flex-shrink:0;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin-top:20px;display:grid}.chat-memory-tabs>button{min-height:44px;color:var(--theme-text-secondary);font:inherit;cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;border-radius:0;padding:10px 4px;font-size:13px;line-height:20px;transition:color .12s,border-color .12s}.chat-memory-tabs>button[aria-pressed=true]{color:var(--theme-text-primary);border-bottom-color:var(--home-accent);font-weight:600}@media (prefers-reduced-motion:reduce){.chat-memory-tabs>button{transition:none}}.chat-memory-tabs>button:focus-visible,.chat-memory-list>button:focus-visible{outline:2px solid var(--theme-line-focus);outline-offset:2px}.chat-memory-category-help,.chat-memory-summary-status,.chat-memory-editor-category{color:var(--theme-text-secondary);margin:12px 0 0;font-size:13px;line-height:21px}.chat-memory-tools{justify-content:space-between;align-items:center;gap:12px;min-height:44px;padding:12px 0;font-size:14px;display:flex}.chat-memory-tools strong span{color:var(--theme-text-secondary);margin-left:6px;font-weight:400}.chat-memory-tools .ui-select-trigger{width:auto;min-height:44px;color:var(--theme-text-secondary);background:0 0;font-size:13px}.chat-memory-empty{color:var(--theme-text-secondary);text-align:center;margin:0;padding:28px 8px 36px;font-size:14px;line-height:24px}.chat-memory-empty strong{color:var(--theme-text-primary);font-size:16px;display:block}.chat-memory-empty p{max-width:34ch;margin:8px auto 0}.chat-sheet-memory .chat-sheet-footer{padding:16px 20px max(16px, env(safe-area-inset-bottom));border-top:1px solid var(--theme-line-subtle)}.chat-sheet-memory .chat-sheet-footer .ui-button{width:100%;min-height:48px}.chat-memory-list{gap:12px;display:grid}.chat-memory-list>button{text-align:left;color:var(--theme-text-primary);background:var(--theme-surface-1);border:1px solid var(--theme-line-subtle);cursor:pointer;font:inherit;white-space:pre-wrap;overflow-wrap:anywhere;border-radius:12px;flex-direction:column;gap:12px;padding:16px;font-size:15px;line-height:1.7;display:flex}.chat-memory-row-heading{justify-content:space-between;align-items:center;gap:12px;width:100%;display:flex}.chat-memory-row-heading small,.chat-memory-edit-label{color:var(--theme-text-secondary);font-size:12px;line-height:20px}.chat-memory-edit-label{white-space:nowrap}.chat-memory-list>button:hover{border-color:var(--theme-line-focus)}.chat-memory-pagination{justify-content:space-between;align-items:center;gap:12px;margin:8px 0 0;font-size:14px;display:flex}.chat-memory-pagination .ui-button{min-height:44px}.chat-memory-editor-category{margin:16px 0 12px}.chat-sheet-memory-edit.ui-modal{height:fit-content;max-height:calc(100dvh - 16px)}.chat-sheet-memory-edit .ui-textarea{resize:vertical;width:100%;min-height:180px}.chat-sheet-memory-edit .chat-sheet-footer{border-top:1px solid var(--theme-line-subtle);justify-content:flex-end;gap:12px}.chat-sheet-memory-edit .chat-sheet-footer>.ui-button{flex:1;min-height:48px}.chat-sheet-gallery{height:min(700px,100dvh - 16px)}.chat-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.chat-gallery-grid figure{margin:0}.chat-gallery-grid img{border-radius:6px;width:100%}.chat-shortcut{border:0;border-bottom:1px solid var(--theme-line-subtle,#3a3a33);color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;flex-direction:column;gap:8px;width:100%;padding:14px 0;display:flex}.chat-shortcut span{color:var(--theme-text-secondary,#97978a);font-size:12px}.chat-keyboard-list{font-size:12px}.chat-keyboard-list>div{justify-content:space-between;align-items:center;gap:16px;padding:10px 0;display:flex}.chat-keyboard-list dd{margin:0}.chat-keyboard-list kbd{background:var(--theme-surface-2,#2a2a26);border:1px solid var(--theme-line-subtle,#4a4a41);border-radius:4px;padding:4px}@media (min-width:640px){.chat-sheet.ui-modal{border-radius:16px;margin:auto}}@media (min-width:1024px){.episode-shell.has-settings{padding-right:var(--chat-inspector-width)}.episode-shell.has-settings>.episode-header,.episode-shell.has-settings>.episode-scroll,.episode-shell.has-settings>.episode-composer{transform:none}.episode-shell.has-settings>.episode-composer{left:max(36px, calc((100% - var(--chat-inspector-width) - 708px) / 2));right:max(calc(var(--chat-inspector-width) + 47px), calc((100% + var(--chat-inspector-width) - 708px) / 2))}}@media (prefers-reduced-motion:reduce){.episode-header,.episode-scroll,.episode-composer{transition:none}}.chat-sheet .ui-modal-header .ui-modal-close{flex-shrink:0;position:static}.chat-output-row .ui-step-slider input::-webkit-slider-runnable-track{background:linear-gradient(to right, var(--home-accent) 0 var(--slider-fill), var(--theme-surface-2,#262625) var(--slider-fill) 100%)}.chat-output-row .ui-step-slider input::-moz-range-track{background:var(--theme-surface-2,#262625)}.chat-output-row .ui-step-slider input::-moz-range-progress{background:var(--home-accent)}.chat-output-row .ui-step-slider-labels{color:var(--theme-text-primary,#d4d4d0);margin-top:12px;font-size:12px;line-height:18px}.chat-sheet-note .chat-sheet-footer{padding-bottom:max(16px,env(safe-area-inset-bottom));border-top:1px solid var(--theme-line-subtle)}.chat-note-price svg{color:#e3b651}.chat-sheet .ui-modal-close.ui-button{border:1px solid var(--theme-line-subtle,#44443e);background:0 0}.chat-sheet-output .chat-sheet-body{scrollbar-gutter:stable}.chat-sheet-output .chat-sheet-help{white-space:pre-line;margin-bottom:0}.chat-sheet-output .chat-sheet-footer{padding-bottom:16px}.chat-output-amount>span{gap:4px;line-height:24px}.chat-output-amount .mode-symbol{vertical-align:middle;width:24px;height:24px;margin-right:4px}.chat-output-extra{justify-content:flex-start;margin:0 0 6px 32px;font-size:14px;line-height:18px}.chat-output-amount>div svg{color:#e3b651}.chat-sheet-note .chat-sheet-help{margin-bottom:20px;font-size:16px}.chat-sheet-note .chat-user-note{font-size:16px;line-height:24px}.chat-sheet-note .chat-note-options{gap:24px}.chat-sheet-note .chat-note-options strong{font-size:16px}.chat-sheet-note .ui-modal-header{padding-right:22px}@media (max-width:360px){.chat-sheet-note .chat-note-options{gap:10px}.chat-sheet-note .chat-note-options strong{font-size:14px}}.episode-generation-status{color:var(--theme-text-secondary,#999);flex-wrap:wrap;align-items:center;gap:8px;padding:4px 16px;font-size:12px;display:flex}.episode-generation-status:empty{display:none}.episode-generation-status p{margin:0}.episode-generation-status [role=alert]{width:100%;color:var(--theme-danger,#ff6b67)}.episode-generation-status .ui-button{min-height:32px;padding:4px 10px;font-size:12px}.episode-composer>.episode-generation-status{margin:0 0 8px;padding:0}.episode-shell .episode-main{padding-bottom:var(--episode-composer-height,142px)}.play-ending-result{justify-items:center;gap:16px;margin-top:28px;display:grid}.play-ending-result h2,.play-ending-result p{text-align:center;margin:0}.play-ending-result .ending-preview-card{width:min(100%,320px)}.character-message-help{color:var(--theme-text-secondary);overflow-wrap:anywhere;margin:0 0 10px;font-size:11px;line-height:1.6}.episode-novel-context{border:1px solid var(--theme-line-subtle,#383835);text-align:start;border-radius:12px;padding:10px 12px}.episode-novel-context p{margin:6px 0;font-size:12px;line-height:1.5}.episode-novel-context>div{flex-wrap:wrap;gap:8px;display:flex}.episode-message-context{color:var(--theme-text-secondary,#929287);margin-block:4px 8px;display:block}.chat-settings-heading{border-bottom:1px solid var(--theme-line-subtle);flex-shrink:0;justify-content:space-between;align-items:center;gap:12px;min-height:64px;padding:10px 16px 10px 20px;font-size:16px;display:flex}.chat-settings-heading .ui-button{flex-shrink:0;width:44px;height:44px;min-height:44px}.chat-settings-body{overscroll-behavior:contain;min-height:0;padding:20px 20px max(24px, env(safe-area-inset-bottom));scrollbar-width:thin;flex:1;overflow-y:auto}.chat-settings-body h2{color:var(--theme-text-secondary);margin:24px 0 6px;font-size:13px;font-weight:600}.chat-settings-body h2:first-of-type{margin-top:20px}.chat-settings-character{border-bottom:1px solid var(--theme-line-subtle);align-items:center;gap:12px;margin-bottom:18px;padding:0 0 18px;display:flex}.chat-settings-character>img{object-fit:cover;border-radius:50%;flex-shrink:0;width:44px;height:44px}.chat-settings-character>div{gap:5px;min-width:0;display:grid}.chat-settings-character strong{overflow-wrap:anywhere;font-size:16px}.chat-settings-character span{color:var(--theme-text-secondary);overflow-wrap:anywhere;font-size:13px}body .chat-settings-sheet.ui-modal:not(.ui-sheet){border:0;border-left:1px solid var(--theme-line-subtle);background:var(--theme-surface-0);border-radius:0;flex-direction:column;width:min(380px,100% - 24px);max-width:100%;height:100dvh;max-height:100dvh;margin:0;padding:0;display:flex;position:fixed;inset:0 0 0 auto;overflow:hidden}.chat-settings-sheet .ui-modal-header{border-bottom:1px solid var(--theme-line-subtle);flex-shrink:0;align-items:center;gap:12px;min-height:64px;margin:0;padding:10px 16px 10px 20px;display:flex}.chat-settings-sheet .ui-modal-header h1{flex:1;margin:0;font-size:16px}.chat-settings-sheet .ui-modal-header .ui-modal-close{flex-shrink:0;width:44px;height:44px;min-height:44px;position:static}.chat-settings-body .chat-setting-row{font-size:16px}.chat-settings-body>.chat-setting-row+.chat-setting-row{border-top:1px solid var(--theme-line-subtle)}.chat-settings-body .character-message-help{font-size:13px}.chat-settings-body .chat-gallery-heading{min-height:48px;font-size:16px}.chat-settings-sheet.ui-modal[open]:not(.ui-sheet){animation:.22s cubic-bezier(.2,.7,.2,1) both chat-settings-enter}@keyframes chat-settings-enter{0%{transform:translate(100%)}to{transform:translate(0)}}@media (prefers-reduced-motion:reduce){.chat-settings-sheet.ui-modal[open]:not(.ui-sheet){animation:none}}.chat-note-conflict{border-top:1px solid var(--home-line);margin-top:18px;padding-top:18px;font-size:14px;line-height:1.6}.chat-note-conflict h2{margin:0 0 10px;font-size:15px}.chat-note-latest{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--home-bg);border-radius:8px;max-height:180px;padding:12px;overflow:auto}.chat-note-conflict-actions{flex-wrap:wrap;gap:8px;display:flex}.chat-note-conflict-actions>.ui-button{min-height:44px}@media (max-width:600px){.chat-note-conflict-actions{grid-template-columns:1fr;display:grid}}.chat-sheet-persona-recovery.ui-modal{height:fit-content}.chat-sheet-persona-recovery .chat-sheet-body>h2{margin:18px 0 10px;font-size:15px;line-height:1.5}.chat-sheet-persona-recovery .chat-sheet-body>strong{font-size:16px;display:block}.chat-sheet-persona-recovery .chat-note-latest{padding:12px 0}.episode-header>.episode-character-link{min-height:44px}.episode-character-link>span{text-overflow:ellipsis;overflow:hidden}.episode-header>.ui-button:not(.episode-model){flex-shrink:0}.quick-model-option-copy{text-align:left;gap:6px;display:grid}.quick-model-option-copy small{white-space:normal;font-weight:400;line-height:1.5}.chat-sheet-tier .chat-sheet-body{padding-bottom:8px}.chat-sheet-tier .chat-output-row{padding-block:4px 0}.chat-sheet-tier .chat-sheet-footer>.ui-button{width:100%}.chat-sheet-tier.ui-modal{height:fit-content;top:auto}.history-older{justify-items:center;gap:8px;padding:12px 0 20px;display:grid}.history-older p{text-align:center;max-width:40ch;margin:0;font-size:13px}.chat-sheet-note .ui-modal-header h1{font-size:20px;line-height:1.4}.chat-sheet-note .ui-modal-header .ui-modal-close{flex:0 0 44px;position:static}.chat-sheet-note .chat-sheet-footer>button{min-height:48px;font-size:16px}@media (max-width:600px){.chat-sheet-note .ui-modal-header,.chat-sheet-note .chat-sheet-body,.chat-sheet-note .chat-sheet-footer{padding-inline:16px}}
