.episode-shell{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-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{color:#102400;background:#29d600;border-color:#0000;margin-left:auto}.episode-composer .episode-send svg{fill:currentColor}@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:translate(-232px)}.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{overscroll-behavior:contain;background:var(--theme-surface-1,#1c1c1a);border-left:1px solid var(--theme-line-subtle,#373732);width:232px;color:var(--theme-text-primary,#d7d7ce);scrollbar-width:thin;padding:16px;position:absolute;top:48px;bottom:0;right:0;overflow-y:auto}.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%;color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:8px;padding:10px 0;font-size:12px;text-decoration:none;display:flex}.chat-setting-row>svg{color:var(--theme-text-secondary,#97978b);flex-shrink:0}.chat-setting-row>span{flex:1}.chat-setting-row>small{text-overflow:ellipsis;max-width:68px;color:var(--theme-text-secondary,#87877c);font-size:11px;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}.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:#f43;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:32px;height:32px;min-height:32px;color:var(--theme-text-secondary,#a1a193);border-radius:50%;padding:6px}.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{height:min(680px,100dvh - 16px)}.chat-sheet-note .ui-modal-header{padding-bottom:10px}.chat-sheet-note .chat-sheet-body{padding-top:0}.chat-user-note.ui-textarea{resize:none;background:var(--theme-surface-0,#141412);border:1px solid var(--theme-line-subtle,#47473e);border-radius:4px;width:100%;height:200px;min-height:200px;padding:12px;font-size:14px;line-height:22px}.chat-note-options{flex-wrap:wrap;align-items:center;gap:8px;margin:12px 0 0;font-size:14px;display:flex}.chat-note-options strong{font-size:14px;font-weight:600}.chat-note-options>span{white-space:nowrap;color:var(--theme-text-secondary,#858579);margin-left:auto;font-size:12px}.chat-note-options>span.is-invalid{color:var(--theme-error-text,#ff7c6d)}.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-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:min(573px,100dvh - 16px)}.chat-sheet-memory .chat-sheet-body{flex-direction:column;padding-inline:24px;display:flex}.chat-memory-tabs{align-items:center;gap:4px;padding-top:6px;display:flex}.chat-memory-tabs>button{color:var(--theme-text-secondary,#a6a69b);font:inherit;white-space:nowrap;cursor:pointer;background:0 0;border:0;border-radius:24px;padding:8px 10px;font-size:12px}.chat-memory-tabs>button[aria-pressed=true]{background:var(--theme-surface-inverse,#eee);color:var(--theme-text-inverse,#222);font-weight:600}.chat-memory-tools{justify-content:space-between;align-items:center;padding:24px 0 12px;font-size:14px;display:flex}.chat-memory-tools .ui-select-trigger{width:auto;color:var(--theme-text-secondary,#9b9b8f);background:0 0;border:0;font-size:12px}.chat-memory-empty{color:var(--theme-text-secondary,#8d8d80);white-space:pre-line;text-align:center;margin:auto;padding:36px 0;font-size:14px;line-height:24px}.chat-sheet-memory .chat-sheet-footer{flex-direction:column;padding:8px 24px 24px}.chat-sheet-memory .chat-sheet-footer .ui-button{height:36px;min-height:36px}.chat-sheet-memory .chat-memory-add{color:var(--theme-text-inverse,#242424);background:var(--theme-surface-inverse,#eee);border-color:var(--theme-line-focus,#eee)}.chat-memory-list{gap:8px;display:grid}.chat-memory-list>button{text-align:left;color:var(--theme-text-primary,#ddd);background:var(--theme-surface-1,#232320);border:1px solid var(--theme-line-subtle,#43433b);cursor:pointer;font:inherit;white-space:pre-wrap;overflow-wrap:anywhere;border-radius:6px;flex-direction:column;gap:8px;padding:12px;font-size:14px;display:flex}.chat-memory-list>button small{color:var(--theme-text-secondary,#979787);font-size:11px}.chat-memory-list>button[aria-pressed=true]{border-color:var(--color-accent)}.chat-memory-pagination{justify-content:space-between;align-items:center;gap:12px;margin:16px 0 0;font-size:12px;display:flex}.chat-sheet-memory-edit .ui-textarea{resize:vertical;width:100%;min-height:180px}.chat-sheet-memory-edit .chat-sheet-footer{justify-content:flex-end}.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:232px}.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,50% - 470px);right:max(279px,50% - 238px)}}@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, #f43 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:#f43}.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:40px}.chat-sheet-note .chat-note-options .ui-switch{width:36px;height:20px}.chat-sheet-note .chat-note-options .ui-switch-thumb{width:16px;height:16px}.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-memory-tabs{gap:8px;padding-top:12px}.chat-memory-tabs>button{border:1px solid var(--theme-line-subtle,#474741);padding:8px 12px;font-size:14px;line-height:18px}.chat-memory-tabs>button:first-child{min-width:98px}.chat-memory-tabs>button[aria-pressed=true]{border-color:var(--theme-surface-inverse,#eee)}.chat-memory-tools{padding-top:18px}.chat-memory-empty{transform:translateY(8px)}@media (max-width:360px){.chat-memory-tabs{flex-wrap:wrap;gap:4px}.chat-memory-tabs>button{padding-inline:8px}.chat-memory-tabs>button:first-child{min-width:78px}.chat-note-options{gap:6px}.chat-note-options strong{font-size:12px}}.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:calc(var(--episode-composer-height,140px) + 40px)}.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}
