:root{font-family:Inter,Segoe UI,system-ui,-apple-system,BlinkMacSystemFont,sans-serif;line-height:1.5;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--bg: #1b0f2c;--bg-elevated: #0f0820;--text: #fff7ff;--text-subtle: rgba(255, 247, 255, .5);--panel: rgba(255, 240, 255, .12);--panel-border: rgba(255, 219, 255, .35);--accent: #f08bff;--accent-strong: #ffb3e6;--accent-muted: rgba(255, 205, 255, .5);--scene-background: #2c0f43;--scene-accent: var(--accent);--scene-accent-strong: var(--accent-strong);--scene-accent-soft: rgba(255, 194, 255, .35)}*,*:before,*:after{box-sizing:border-box}html{background-color:#1b0f2c}body{margin:0;min-height:100vh;background:radial-gradient(circle at top,#4b1d6b,var(--bg) 65%);color:var(--text)}#root{min-height:100vh}button{border:none;background:#ffd2ff33;color:inherit;padding:.65rem 1rem;border-radius:.9rem;font-weight:600;cursor:pointer;font-family:inherit;transition:background .2s}button:disabled{opacity:.35;cursor:not-allowed}button:hover:not(:disabled){background:#ffd2ff59}.app-shell{display:flex;flex-direction:column;gap:1.5rem;padding:1.5rem 1rem 1rem;min-height:100vh;flex:1}.share-link-bar{display:flex;flex-direction:column;align-items:flex-start;gap:.5rem;position:relative}.story-title-bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex:1}.story-title-input{flex:1;display:flex;flex-direction:column}.story-title-input input{border:none;border-bottom:2px solid transparent;padding:.3rem 0;background:transparent;color:inherit;font-family:inherit;font-size:2rem;font-weight:600;transition:border-color .2s}.story-title-input input:focus-visible{outline:none;border-color:var(--panel-border)}.story-title-status{font-size:1.2rem;color:var(--text-subtle);min-width:90px;text-align:right}.share-link-field{display:flex;align-items:center;gap:.5rem;border:1px solid var(--panel-border);border-radius:1.5rem;padding:.2rem .3rem;background:var(--panel)}.share-link-field input{border:none;background:transparent;color:inherit;font-family:inherit;min-width:220px;padding:.2rem .35rem}.share-link-field input:focus-visible{outline:none}.share-link-label{font-size:.8rem;color:var(--text-subtle);font-weight:600;position:absolute;left:1rem;top:0;transform:translateY(-110%);padding:0 .3rem;background:var(--panel);pointer-events:none;border-radius:1rem}.json-editor-toggle{border-radius:999px;background:var(--panel);color:var(--text-subtle);font-weight:600;display:inline-flex;align-items:center;gap:.65rem;padding:.1rem .5rem;min-height:2.4rem;transition:background .2s ease,color .2s ease,border-color .2s ease;position:relative}.json-editor-toggle:focus-visible{outline:2px solid rgba(255,255,255,.6);outline-offset:3px}.json-editor-toggle__label{text-transform:none}.json-editor-toggle__track{width:42px;height:24px;border-radius:999px;border:1px solid rgba(255,255,255,.4);background:#ffffff1f;position:relative;padding:2px;box-sizing:border-box;transition:border-color .2s ease,background .2s ease}.json-editor-toggle__thumb{position:absolute;width:20px;height:20px;border-radius:50%;background:#fff;top:50%;left:2px;transform:translateY(-50%);box-shadow:0 4px 12px #00000059;transition:transform .2s ease}.json-editor-toggle.active{border-color:transparent;background:var(--scene-accent-strong, #be5bff);color:#fff}.json-editor-toggle.active .json-editor-toggle__track{background:#34c759;border-color:transparent}.json-editor-toggle.active .json-editor-toggle__thumb{transform:translate(18px,-50%)}.dashboard,.admin-panel{max-width:1100px;margin:0 auto}.dashboard-header,.dashboard-actions{display:flex;align-items:center;gap:.75rem}.dashboard-header{justify-content:space-between;flex-wrap:wrap}.dashboard-actions button{border-radius:999px;padding-inline:1.25rem}.dashboard-controls{display:flex;align-items:center;gap:1rem}.dashboard-hint{color:var(--text-subtle);font-size:.9rem}.story-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:1rem}.story-card{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;padding:1rem;border-radius:1rem;border:1px solid var(--panel-border);background:var(--panel)}.story-card h3{margin:0 0 .15rem}.story-card-actions{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}.admin-grid{display:grid;gap:1.2rem;grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}.admin-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.75rem}.admin-list li{border-radius:1rem;border:1px solid var(--panel-border);background:var(--panel);padding:1rem;display:flex;flex-direction:column;gap:.25rem}.app-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}.app-header h1{margin:0 0 .25rem;font-size:1.9rem}.app-header p{margin:0;color:var(--text-subtle)}.header-actions{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;justify-content:flex-end}.header-actions button{border-radius:999px;padding-inline:.6rem}.dev-generate-all-button{background:linear-gradient(135deg,#ff7b00,#ff9a33);color:#1a0d23;font-weight:600;border:1px solid rgba(255,154,51,.6)}.dev-generate-all-button:disabled{opacity:.5;cursor:not-allowed}.dev-generate-all-button:not(:disabled):hover{transform:translateY(-1px);box-shadow:0 4px 12px #ff7b004d}.header-title-bar{margin-bottom:.35rem}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin-top:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.inline-warning{border-radius:.75rem;padding:.85rem 1.1rem;background:#ffd2ec33;color:#ffd2ea;border:1px solid rgba(255,210,236,.55)}.workspace{display:grid;gap:1.5rem;grid-template-columns:minmax(320px,420px) minmax(360px,1fr);align-items:stretch;flex:1;min-height:0}.workspace--json{min-height:calc(100vh - 6rem)}.json-editor-panel{background:var(--panel);border:1px solid var(--panel-border);border-radius:1.25rem;padding:1rem;display:flex;flex-direction:column;gap:.75rem;width:100%;height:100%;min-height:0;min-height:calc(100vh - 6rem)}.json-editor-field{position:relative;flex:1;min-height:0;border-radius:1rem;border:1px solid var(--panel-border);background:var(--panel-accent, rgba(255, 255, 255, .02));overflow:hidden}.json-editor-field:focus-within{outline:2px solid var(--scene-accent-strong, rgba(190, 91, 255, .8));outline-offset:2px}.json-editor-highlight{position:absolute;inset:0;margin:0;padding:.75rem .85rem;pointer-events:none;overflow:hidden;white-space:pre-wrap;word-break:normal;font-family:JetBrains Mono,SFMono-Regular,Menlo,Consolas,monospace;font-size:.9rem;line-height:1.4;color:var(--text-subtle)}.json-editor-highlight code{display:block;min-height:100%;color:inherit}.json-editor-highlight .json-key{color:var(--scene-accent, #8acacf)}.json-editor-highlight .json-string{color:#7ddf99}.json-editor-highlight .json-number{color:#f97071}.json-editor-highlight .json-literal{color:#ffb86c}.json-editor-highlight .json-punctuation,.json-editor-highlight .json-editor-placeholder{color:var(--text-subtle)}.json-editor-textarea{position:relative;z-index:1;font-family:JetBrains Mono,SFMono-Regular,Menlo,Consolas,monospace;font-size:.9rem;line-height:1.4;width:100%;height:100%;min-height:0;border:0;padding:.75rem .85rem;resize:vertical;box-sizing:border-box;background:transparent;color:transparent;caret-color:var(--text);outline:none;overflow:auto}.json-editor-textarea:focus-visible{outline:none}.workspace-side{display:flex;flex-direction:column;gap:1.5rem}@media(min-width:1400px){.workspace-side{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem}}.workspace-side--json{gap:0;min-height:0;align-items:stretch;flex:1}@media(min-width:1400px){.workspace-side--json{display:flex;flex-direction:column}}.story-pane,.editor-pane,.overview-pane{background:var(--panel);border-radius:1.25rem;border:1px solid var(--panel-border);padding:.5rem;display:flex;flex-direction:column;gap:1rem}.story-pane-header{display:flex;justify-content:space-between;align-items:center;gap:.75rem;font-weight:600}.story-pane-controls{display:flex;align-items:center;gap:.5rem;flex:1}.story-pane-controls .generate-image-button{flex-shrink:0;white-space:nowrap}.story-pane select{flex:1;border-radius:999px;border:1px solid transparent;padding:.35rem .85rem;background:var(--panel-border);color:inherit}.node-label{font-size:.95rem;color:var(--text-subtle)}.mobile-frame{width:100%;max-width:100%;margin:0;padding:0;display:flex;flex-direction:column;align-items:center}.scene-pane-layout{display:flex;flex-direction:column;align-items:center;width:100%;max-height:100vh}.mobile-screen{background:radial-gradient(circle at top,rgba(255,255,255,.1),transparent),var(--scene-background, #2c0f43);min-height:420px;width:100%;display:flex;flex-direction:column;gap:1rem;position:relative;overflow:hidden;transition:border-color .2s,box-shadow .2s}.mobile-screen:focus-visible{outline:2px solid var(--scene-accent-strong, rgba(242, 170, 255, .7));outline-offset:3px}.mobile-screen.clickable{cursor:pointer}.tap-flash{position:absolute;width:1.25rem;height:1.25rem;border-radius:50%;border:20px solid var(--scene-accent-soft, rgba(255, 194, 255, .4));transform:translate(-50%,-50%) scale(.25);animation:tapRipple .26s ease-out forwards;pointer-events:none;box-shadow:0 0 18px var(--scene-accent-soft, rgba(255, 194, 255, .35));z-index:2}.Editor-ScenePane{border-radius:1rem;border-radius:1.25rem;border:1px solid var(--panel-border);padding:.5rem;background:var(--panel)}.Editor-ScenePane .mobile-screen{border-radius:1.25rem!important}.scene-pane-controls{display:flex;justify-content:flex-end;gap:.65rem;margin-bottom:.6rem}.scene-pane-control{display:inline-flex;align-items:center;gap:.45rem;border-radius:999px;padding:.35rem .9rem;font-size:.85rem;border:1px solid var(--panel-border);background:#ffffff14;color:inherit;box-shadow:none}.scene-pane-control__icon{width:1.25rem;height:1.25rem;display:inline-flex;align-items:center;justify-content:center}.scene-pane-control svg{width:1.25rem;height:1.25rem}.scene-pane-control:disabled{opacity:.45;cursor:not-allowed;border-color:#ffffff2e}.scene-pane-control:focus-visible{outline:2px solid var(--scene-accent-strong);outline-offset:2px}.scene-image{position:relative;min-height:420px;width:100%;background:radial-gradient(circle at top,#ffffff24,#ffffff05),linear-gradient(135deg,rgba(10,2,16,.35),transparent);border:1px dashed var(--scene-accent-soft, rgba(255, 194, 255, .35));padding:.85rem;font-size:.9rem;color:var(--text-subtle);display:flex;flex-direction:column;gap:.8rem;overflow:hidden;isolation:isolate}.scene-image.scene-image-has-image{padding:0;border:none;background:none;min-height:0;gap:0;aspect-ratio:2 / 3;position:relative}.scene-image.scene-image-has-image img{border:none;inset:0}.scene-image p{margin:0}.scene-image img{width:100%;height:100%;object-fit:contain;display:block}.scene-image-actions{display:flex;align-items:center;gap:.55rem;flex-wrap:wrap}.generate-image-button{border-radius:.85rem;border:1px solid var(--scene-accent-soft, rgba(255, 194, 255, .6));padding:.5rem 1rem;background:linear-gradient(135deg,var(--scene-accent, var(--accent)),var(--scene-accent-strong, var(--accent-strong)));color:#1a0d23;font-weight:600;cursor:pointer;transition:opacity .2s,transform .2s}.generate-image-button:hover{transform:translateY(-1px)}.generate-image-button:disabled{opacity:.5;cursor:not-allowed;transform:none;background:var(--scene-accent-soft, rgba(255, 194, 255, .18));border-color:var(--scene-accent-soft, rgba(255, 194, 255, .35))}.scene-image-hint{font-size:.75rem;color:var(--text-subtle)}.scene-image-error{color:#ff9fd4;font-size:.8rem;margin:0;position:absolute;top:1rem;left:1rem;right:1rem;text-align:center;z-index:3}.feedback-button-container{position:relative;display:inline-block}.sidebar-user-info{display:flex;flex-direction:column;align-items:center}.feedback-button{background:transparent;border:1px solid var(--panel-border);padding:.4rem .8rem;border-radius:999px;font-size:.85rem;cursor:pointer;transition:all .2s ease}.feedback-button:hover{background:#ffffff0d;color:var(--text);border-color:var(--text-subtle)}.feedback-popover{position:absolute;bottom:100%;left:50%;transform:translate(-50%);margin-bottom:.5rem;width:300px;background:var(--panel);border:1px solid var(--panel-border);border-radius:1rem;padding:1rem;box-shadow:0 10px 25px #00000080;z-index:100;animation:popoverFadeIn .2s ease-out}@keyframes popoverFadeIn{0%{opacity:0;transform:translate(-50%,10px)}to{opacity:1;transform:translate(-50%)}}.feedback-popover-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.feedback-popover-header h3{margin:0;font-size:1rem;color:var(--text)}.feedback-close-button{background:transparent;border:none;color:var(--text-subtle);font-size:1.5rem;line-height:1;cursor:pointer;padding:0;width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:50%}.feedback-close-button:hover{background:#ffffff1a;color:var(--text)}.feedback-popover-description{font-size:.9rem;color:var(--text-subtle);margin:0 0 1rem;line-height:1.4}.feedback-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.5rem}.feedback-list li{display:flex;justify-content:space-between;align-items:center;font-size:.9rem;padding:.25rem 0;border-bottom:1px solid rgba(255,255,255,.05)}.feedback-list li:last-child{border-bottom:none}.feedback-label{color:var(--text-subtle);font-weight:500}.feedback-link,.feedback-value{color:var(--scene-accent, #8acacf);text-decoration:none}.feedback-link:hover{text-decoration:underline}.sidebar-heading .feedback-button-container{width:100%;margin-bottom:.5rem}.sidebar-heading .feedback-button{width:100%;text-align:center}.sidebar-heading .feedback-popover{position:fixed;left:270px;bottom:1rem;transform:none;margin-bottom:0;z-index:1000;width:300px}@media(max-width:960px){.sidebar-heading .feedback-popover{left:50%;top:50%;bottom:auto;transform:translate(-50%,-50%);width:min(300px,90vw)}}.scene-text{pointer-events:none;width:100%}.scene-choices-overlay{position:absolute;left:50%;bottom:1.4rem;transform:translate(-50%);width:calc(100% - 2.6rem);max-width:320px;padding:.85rem;border-radius:1.1rem;background:radial-gradient(circle at top,#ffffff29,#ffffff05) #080012b8;border:1px solid rgba(255,255,255,.14);box-shadow:0 18px 32px #04000c8c;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);display:flex;flex-direction:column;gap:.55rem;pointer-events:auto;z-index:3}.scene-choices-overlay .choice-button{width:100%;border-color:#ffffff61;background:#ffffff17;color:#fff;text-shadow:0 3px 12px rgba(6,0,14,.65);box-shadow:0 10px 16px #04000a59}.scene-choices-overlay .choice-button:hover{background:#ffffff2e}.scene-text-overlay{position:absolute;left:50%;top:68%;transform:translate(-50%,-50%);width:88%;max-width:360px;border-radius:1.4rem;color:#fff;display:flex;flex-direction:column;gap:.95rem;letter-spacing:.01em;pointer-events:none;z-index:2;transition:opacity .2s ease,transform .2s ease;animation:sceneTextBoxFloatIn .12s ease-out both;isolation:isolate;align-items:stretch}.scene-text-overlay-left{align-items:flex-start}.scene-text-overlay-right{align-items:flex-end}.scene-text-overlay-center{align-items:stretch}.scene-overlay{position:absolute;left:50%;bottom:1.4rem;transform:translate(-50%);width:calc(100% - 2.6rem);max-width:360px;display:flex;flex-direction:column;gap:.65rem;z-index:3;max-height:100%}.scene-overlay.scene-overlay-start{inset:0;transform:none;width:100%;max-width:none;align-items:center;justify-content:end;padding:1.4rem}.scene-text-overlay-stacked{position:static;inset:auto;transform:none;animation:none;width:100%}.scene-overlay .scene-choices-overlay{position:static;left:auto;bottom:auto;transform:none;width:100%;max-width:none;z-index:3}.story-line{line-height:1.45}.scene-text-content{position:relative;z-index:1;font-size:1rem;color:#fff;text-shadow:0 3px 18px rgba(7,0,18,.9);text-align:left;animation:sceneTextFloatIn .22s ease-out both}.scene-text-content span{font-size:1.1rem;letter-spacing:.01em}.scene-text-content.story-line-empty{color:#ffffffd1}.scene-text-entry{width:100%;display:flex;flex-direction:column;gap:1.1rem}.scene-text-entry-left{align-items:flex-start}.scene-text-entry-right{align-items:flex-end}.scene-text-entry-center{align-items:center}.scene-text-bubble{position:relative;width:fit-content;max-width:min(420px,100%);box-sizing:border-box;border-radius:1.5rem;padding:1rem;display:flex;flex-direction:column;gap:1.2rem;--scene-bubble-gradient: linear-gradient(160deg, rgba(130, 120, 135, .5), rgba(40, 30, 48, .35));--speech-tail-size: 2.35rem;background:linear-gradient(135deg,#ffffff1f,#fff0),var(--scene-bubble-gradient);background-clip:padding-box,padding-box;background-blend-mode:normal;border-image:linear-gradient(145deg,#ffffffe6,#bcd5ffd9,#ff97ffbf) 1;box-shadow:0 12px 24px #03000673,inset 0 0 18px #ffffff14;backdrop-filter:blur(9px) saturate(.8);-webkit-backdrop-filter:blur(9px) saturate(.8);filter:grayscale(.1) contrast(.95);animation:sceneTextBubbleFloatIn .12s ease-out both;z-index:1;overflow:visible;transform-origin:top}.scene-text-bubble:before{content:"";position:absolute;inset:0;border-radius:inherit;background:radial-gradient(circle at 20% 25%,rgba(134,117,255,.32),transparent 45%),radial-gradient(circle at 80% 30%,rgba(255,117,166,.22),transparent 40%);filter:blur(18px);opacity:.75;z-index:0;pointer-events:none}.scene-text-bubble-left{align-self:flex-start;text-align:left;max-width:min(360px,90%)}.scene-text-bubble-right{align-self:flex-end;text-align:right;max-width:min(360px,90%)}.scene-text-bubble-center{align-self:stretch;width:100%;max-width:100%;justify-content:center;text-align:center}.scene-text-bubble-right .scene-text-content{text-align:right}.scene-text-bubble-center .scene-text-content{text-align:center}.scene-text-avatar{width:108px;height:108px;border-radius:50%;overflow:hidden;flex-shrink:0;border:1px solid rgba(255,255,255,1);box-shadow:0 18px 32px #03000aa6;background:#ffffff14;display:grid;place-items:center}.scene-text-avatar-left{align-self:flex-start}.scene-text-avatar-right{align-self:flex-end}.scene-text-avatar-center{align-self:center}.scene-text-avatar img{width:100%;height:100%;object-fit:cover;display:block;align-self:stretch;justify-self:stretch}.scene-text-avatar-hidden{display:none!important}.scene-text-avatar-loading{border-color:transparent;box-shadow:none;background:transparent}.scene-text-avatar-loading img{opacity:0}.scene-text-avatar-ready{animation:sceneAvatarPopIn .22s ease-out both}.scene-text-avatar-ready img,.scene-text-avatar-ready span{animation:sceneAvatarContentFade .22s ease-out both}.scene-text-avatar span{font-weight:700;color:#ffe7ff;letter-spacing:.12em;font-size:1.5rem;text-transform:uppercase}.scene-text-body{flex:1;display:flex;flex-direction:column;gap:.35rem;position:relative;z-index:2}.scene-text-bubble-label{position:absolute;top:-.85rem;left:clamp(.9rem,4vw,1.45rem);right:clamp(.9rem,4vw,1.45rem);padding:.28rem .9rem;border-radius:999px;background:linear-gradient(135deg,#fffffff2,#ffacffa6);border:1px solid rgba(255,255,255,.65);box-shadow:0 10px 20px #04000c85,inset 0 0 10px #ffffffd9;font-size:.7rem;letter-spacing:.22em;text-transform:uppercase;text-align:center;color:#110419;font-weight:600;line-height:1;z-index:3;pointer-events:none}.scene-text-bubble-right .scene-text-body{align-items:flex-end}.scene-text-bubble-center .scene-text-body{align-items:center}.scene-text-placeholder{width:100%;box-sizing:border-box;border-radius:1.2rem;border:1px dashed rgba(255,255,255,.4);padding:1rem 1.1rem;text-align:center;background:#ffffff0f;box-shadow:inset 0 0 18px #ffffff14}.scene-text-avatar-loading.scene-text-avatar-ready{animation:none}@keyframes sceneAvatarPopIn{0%{opacity:0;transform:scale(.9) translateY(6px)}to{opacity:1;transform:scale(1) translateY(0)}}@keyframes sceneAvatarContentFade{0%{opacity:0}to{opacity:1}}.story-line-thoughts{font-style:italic}.scene-choices{display:flex;flex-direction:column;gap:.65rem}.scene-choices-note{text-align:center;font-size:.85rem;color:var(--text-subtle);margin-bottom:1rem}.bold{font-weight:700}.scene-start-views-wrapper{top:0;z-index:5;width:100%;display:flex;justify-content:center;padding:0;background:var(--panel)}.scene-start-views{margin:0 auto;padding:.5rem;display:flex;flex-direction:column;gap:.25rem;align-items:end;width:100%;max-width:520px;box-shadow:0 10px 30px #00000040}.scene-start-views--muted{opacity:.5}.scene-start-views__actions{display:flex;align-items:center;justify-content:space-between;gap:.5rem;flex-wrap:wrap;width:100%}.scene-start-views__status-row{display:flex;gap:.65rem;flex-wrap:wrap}.scene-start-views__count{font-size:1rem;letter-spacing:.1em;text-transform:uppercase;color:#ffffffd9;text-shadow:0 1px 8px rgba(0,0,0,.85);margin:0 1rem}.scene-actions-row{display:flex;width:100%;justify-content:space-between}.scene-start-views__copy-button{border-radius:999px;border:1px solid rgba(255,255,255,.45);background:#ffffff1a;color:inherit;padding:.35rem .75rem;font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;transition:background .2s,color .2s}.scene-start-views__copy-button:disabled{opacity:.5;cursor:not-allowed}.scene-start-views__copy-button:not(:disabled):hover{background:#fff3}.scene-start-views__status{font-size:.7rem;letter-spacing:.12em;text-transform:uppercase;color:var(--text-subtle)}.scene-start-views__status[data-status-type=error]{color:var(--accent-error, #ff8b9e)}.scene-start-views__status[data-status-type=success]{color:var(--accent, var(--accent-strong))}.scene-start-views__status[data-status-type=info]{color:#ffffffbf}.scene-start-views .feedback-popover{bottom:auto;top:100%;margin-top:.5rem;margin-bottom:0;left:0;transform:none;width:min(300px,90vw);animation:popoverFadeInDown .2s ease-out}@keyframes popoverFadeInDown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}@media(min-width:960px){.scene-start-views{gap:1rem;padding:.7rem 0;max-width:640px}.scene-start-views__count{font-size:.95rem}.scene-start-views__actions{gap:.75rem}.scene-start-views__copy-button{padding:.25rem 1.1rem;font-size:.85rem}.scene-start-views__status{font-size:.8rem;letter-spacing:.14em}}.choice-button{border-radius:.85rem;border:1px solid var(--scene-accent-soft, var(--accent-muted));padding:.85rem;background:#ffffff14;color:inherit;transition:background .2s,transform .2s}.choice-button.primary{background:linear-gradient(135deg,var(--scene-accent, var(--accent)),var(--scene-accent-strong, var(--accent-strong)));border-color:transparent}.choice-button:hover{background:#ffffff2e;transform:translateY(-1px)}.choice-button.primary:hover{background:linear-gradient(135deg,var(--scene-accent-strong, var(--accent-strong)),#ffe0f4)}.scene-choices-empty,.story-line-empty{text-align:center;color:var(--text-subtle);font-size:.85rem}.story-empty{text-align:center;padding:2rem 1rem;color:var(--text-subtle)}.editor-header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;flex-wrap:wrap;padding:.5rem}.editor-header h2{margin:0}.editor-title{display:flex;flex-direction:column;gap:.2rem}.editor-node-id{color:var(--text-subtle);font-size:.9rem}.scene-select-controls{display:flex;align-items:stretch;gap:.35rem}.scene-select-buttons{display:flex;flex-direction:column;gap:.2rem}.scene-select-nav-button{border-radius:.65rem;border:1px solid var(--panel-border);background:#220d32;color:inherit;padding:.2rem .5rem;line-height:1;font-size:.9rem;cursor:pointer;transition:background .2s ease,color .2s ease}.scene-select-nav-button:hover:not(:disabled){background:#2d1141}.scene-select-nav-button:disabled{opacity:.35;cursor:not-allowed}.add-scene-button{border-radius:.65rem;border:1px solid var(--panel-border);background:#220d32;color:inherit;padding:.45rem .8rem;font-weight:600;font-size:1rem;cursor:pointer;transition:background .2s ease,border-color .2s ease;align-self:flex-start}.add-scene-button:hover:not(:disabled){background:#2d1141;border-color:var(--text-subtle)}.editor-form{display:flex;flex-direction:column;gap:1rem}.form-section{border-radius:1rem;border:1px solid var(--panel-border);padding:1rem;background:#190425;display:flex;flex-direction:column;gap:.75rem}.form-section-header{display:flex;justify-content:space-between;align-items:center;gap:.75rem}.form-section-header h3{margin:0;font-size:1rem}.form-section-actions{display:flex;align-items:center;gap:.4rem}.form-section-content{display:flex;flex-direction:column;gap:.75rem}.form-section-collapsed{padding-bottom:.85rem}.form-section-help{font-size:.85rem;color:var(--text-subtle)}.field-label{font-size:.85rem;text-transform:uppercase;letter-spacing:.04em;color:var(--text-subtle)}.editor-pane input,.overview-pane input,.editor-pane textarea,.overview-pane textarea,.editor-pane select,.overview-pane select{width:100%;border-radius:.8rem;border:1px solid var(--panel-border);background-color:#220d32;color:inherit;padding:.55rem .8rem;font:inherit}.editor-pane textarea,.overview-pane textarea{min-height:3.25rem;resize:none;overflow:hidden;max-height:800px;overflow-y:auto;field-sizing:content}.editor-pane select,.overview-pane select{appearance:none;padding-right:2.3rem;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23ffffff' d='M6 8 0 0h12z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .85rem center;background-size:.6rem}.image-prompt-row{display:flex;flex-wrap:wrap;gap:1rem}.image-prompt-inputs{flex:1 1 260px;display:flex;flex-direction:column;gap:.5rem}.editor-image-preview{flex:0 1 240px;border-radius:1rem;border:1px dashed var(--panel-border);background:#1b0828;padding:.85rem;display:flex;align-items:center;justify-content:center;text-align:center;color:var(--text-subtle);min-height:150px}.editor-image-preview img{width:100%;border-radius:.85rem;object-fit:cover;border:1px solid var(--panel-border)}.editor-image-placeholder{margin:0;font-size:.85rem}.form-empty{margin:0;color:var(--text-subtle);font-size:.9rem}.form-hint{margin:0;color:var(--text-subtle);font-size:.85rem}.form-card{border-radius:.95rem;border:1px solid var(--panel-border);background:#14041f;padding:.85rem;display:flex;flex-direction:column;gap:.6rem}.form-card-header{display:flex;justify-content:space-between;align-items:center;font-weight:600;font-size:1.5rem}.form-card-actions{display:flex;gap:.35rem}.form-card-actions button{padding:.2rem .55rem;border-radius:.6rem;font-size:.85rem}.section-toggle{border-radius:999px;border:1px solid var(--panel-border);background:#ffffff0f;color:inherit;font-size:.85rem;padding:.25rem .75rem;display:flex;align-items:center;gap:.35rem;cursor:pointer}.section-toggle:hover{border-color:var(--text-subtle)}.field-error{margin:.15rem 0 0;color:#ff9fd4;font-size:.85rem}.character-card{gap:.75rem}.character-field-grid{display:flex;flex-wrap:wrap;gap:.75rem}.field-group{display:flex;flex-direction:column;gap:.35rem}.character-fields{display:flex;flex-direction:column;gap:.75rem}.character-images-row{display:flex;gap:1rem;width:100%}.character-images-row>*{flex:1;min-width:0}.character-chip{border-radius:999px;padding:.15rem .8rem;border:1px solid var(--panel-border);background:#ffffff14;font-size:.75rem;text-transform:uppercase;letter-spacing:.05em;color:var(--text-subtle)}.character-image-actions{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.character-image-error{margin:0;color:#ff9fd4;font-size:.85rem}.character-generated-section{display:flex;flex-direction:column;gap:.45rem}.character-reference-actions{display:flex;flex-wrap:wrap;gap:.35rem;align-items:center}.character-reference-preview{width:100%;border-radius:.75rem;border:1px dashed var(--panel-border);background:#0b0114;aspect-ratio:1;display:flex;align-items:center;justify-content:center;color:var(--text-subtle);cursor:pointer;transition:border-color .2s,background .2s,transform .2s}.character-reference-preview:hover:not([aria-disabled=true]){border-color:var(--text-subtle);background:#150621;transform:translateY(-1px)}.character-reference-preview[aria-disabled=true]{cursor:not-allowed;opacity:.6}.character-reference-preview img{width:100%;height:100%;object-fit:contain;border-radius:.6rem;border:1px solid var(--panel-border)}.character-reference-placeholder{margin:0;font-size:.85rem;text-align:center}.character-image-preview{width:100%;position:relative;border-radius:.9rem;border:1px dashed var(--panel-border);aspect-ratio:1;display:flex;align-items:center;justify-content:center;background:#0b0114;color:var(--text-subtle)}.character-image-preview img{width:100%;border-radius:.75rem;border:1px solid var(--panel-border);object-fit:cover}.character-image-placeholder{margin:0;font-size:.85rem;text-align:center}.scene-reference-section,.scene-generated-section{display:flex;flex-direction:column;gap:.45rem}.scene-images-row{display:flex;gap:1rem;width:100%}.scene-images-row>*{flex:1;min-width:0}.scene-reference-preview{width:100%;border-radius:.75rem;border:1px dashed var(--panel-border);background:#0b0114;display:flex;align-items:center;justify-content:center;color:var(--text-subtle);cursor:pointer;transition:border-color .2s,background .2s,transform .2s}.scene-reference-preview:hover:not([aria-disabled=true]){border-color:var(--text-subtle);background:#150621;transform:translateY(-1px)}.scene-reference-preview[aria-disabled=true]{cursor:not-allowed;opacity:.6}.scene-reference-preview img{width:100%;height:100%;object-fit:cover;border-radius:.6rem;border:1px solid var(--panel-border)}.scene-reference-placeholder{margin:0;font-size:.85rem;text-align:center}.scene-reference-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:.75rem}.scene-reference-item{position:relative;width:100%;border-radius:.75rem;border:1px solid var(--panel-border);background:#0b0114;overflow:hidden}.scene-reference-item img{width:100%;height:100%;object-fit:cover}.scene-reference-item .reference-delete{position:absolute;top:.25rem;right:.25rem;width:24px;height:24px;padding:0;border-radius:50%;background:#000000b3;color:#fff;border:1px solid rgba(255,255,255,.2);font-size:18px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .2s,background .2s}.scene-reference-item:hover .reference-delete{opacity:1}.scene-reference-item .reference-delete:hover:not(:disabled){background:#c83232e6}.scene-reference-item .reference-delete:disabled{cursor:not-allowed;opacity:.3}.scene-reference-upload{width:100%;border-radius:.75rem;border:1px dashed var(--panel-border);background:#0b0114;aspect-ratio:1;display:flex;align-items:center;justify-content:center;color:var(--text-subtle);cursor:pointer;transition:border-color .2s,background .2s,transform .2s}.scene-reference-upload:hover:not([aria-disabled=true]){border-color:var(--text-subtle);background:#150621;transform:translateY(-1px)}.scene-reference-upload[aria-disabled=true]{cursor:not-allowed;opacity:.6}.chapter-reference-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.5rem}.chapter-reference-card{border:1px solid #e2e8f0;border-radius:8px;padding:.75rem;margin-bottom:.75rem;background:#fff}.chapter-reference-actions{display:flex;gap:.5rem;margin-top:.5rem}.chapter-settings-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}.reference-clear-all{margin-top:.25rem}.scene-image-preview{width:100%;position:relative;border-radius:.75rem;border:1px solid var(--panel-border);background:#0b0114;aspect-ratio:2 / 3;display:flex;align-items:center;justify-content:center;color:var(--text-subtle);overflow:hidden}.scene-image-preview img{width:100%;height:100%;object-fit:cover;border-radius:.6rem}.generating-overlay{position:absolute;inset:0;background:#0b0114a6;display:flex;align-items:center;justify-content:center;z-index:10;border-radius:inherit;overflow:hidden;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.generating-scanline{position:absolute;top:0;left:0;width:100%;height:100%;background:linear-gradient(to bottom,transparent 0%,rgba(190,91,255,.1) 40%,rgba(190,91,255,.4) 50%,rgba(190,91,255,.1) 60%,transparent 100%);background-size:100% 200%;animation:scanline 2.5s ease-in-out infinite;pointer-events:none}.generating-spinner{width:40px;height:40px;border:3px solid rgba(255,255,255,.15);border-top-color:var(--scene-accent-strong, #be5bff);border-radius:50%;animation:spin 1s linear infinite;z-index:11;box-shadow:0 0 15px var(--scene-accent-strong, rgba(190, 91, 255, .5))}@keyframes scanline{0%{background-position:0% -100%}to{background-position:0% 200%}}@keyframes spin{to{transform:rotate(360deg)}}.ghost-button{border-radius:999px;padding:.55rem .9rem;border:1px dashed var(--panel-border);background:transparent;color:inherit;font-size:1.2rem;width:100%}.ghost-button:hover:not(:disabled){border-color:var(--text-subtle)}.ghost-button[aria-disabled=true]{cursor:not-allowed;opacity:.6;border-color:#ffffff59}.subtle-button{background:#ffffff14;border:1px solid var(--panel-border);color:inherit}.subtle-button:hover:not(:disabled){border-color:var(--text-subtle)}.danger-button{background:#ff76761f;border:1px solid rgba(255,118,118,.4);color:#ff9c9c}@keyframes sceneTextFloatIn{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes sceneTextBoxFloatIn{0%{opacity:0;transform:translate(-50%,calc(-50% + 28px)) scale(.95);filter:saturate(.75) blur(10px)}to{opacity:1;transform:translate(-50%,-50%) scale(1);filter:saturate(1) blur(0)}}@keyframes sceneTextBubbleFloatIn{0%{opacity:0;transform:translateY(18px) scale(.96);filter:blur(1px) saturate(.8)}to{opacity:1;transform:translateY(0) scale(1);filter:blur(0) saturate(1)}}@keyframes tapRipple{0%{opacity:.55;transform:translate(-50%,-50%) scale(.25)}to{opacity:0;transform:translate(-50%,-50%) scale(3.75)}}.scene-start-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:1.5rem;background:linear-gradient(180deg,#0000001a,#0003);z-index:2;border-radius:inherit}.scene-start-content{display:flex;flex-direction:column;align-items:center;gap:1rem;max-width:400px;width:100%;text-align:center;animation:sceneStartFloatIn .4s ease-out both}.scene-start-title{margin:0;font-size:2rem;font-weight:700;color:#fff;text-shadow:0 4px 24px rgba(0,0,0,.9);line-height:1.15;letter-spacing:.02em}.scene-start-description{margin:0;font-size:.95rem;line-height:1.5;color:#fffffff2;text-shadow:0 2px 12px rgba(0,0,0,.8)}.scene-start-button{margin-top:1rem;padding:1.2rem 3rem;font-size:1rem;font-weight:700;border-radius:999px;background:linear-gradient(135deg,var(--scene-accent, var(--accent)),var(--scene-accent-strong, var(--accent-strong)));border:2px solid rgba(255,255,255,.5);color:#1a0d23;cursor:pointer;transition:transform .2s,box-shadow .2s,border-color .2s;box-shadow:0 12px 36px #ffc2ff66,0 4px 16px #0009;pointer-events:auto;text-transform:uppercase;letter-spacing:.08em}.scene-start-button:hover{transform:translateY(-3px) scale(1.05);box-shadow:0 16px 48px #ffc2ff99,0 6px 20px #000000b3;border-color:#fffc}@keyframes sceneStartFloatIn{0%{opacity:0;transform:translateY(30px) scale(.95)}to{opacity:1;transform:translateY(0) scale(1)}}@media(max-width:960px){.app-shell{padding:1.5rem}.workspace{grid-template-columns:1fr}.story-pane,.editor-pane,.overview-pane{max-width:720px;margin-inline:auto}.workspace-side{width:100%}.app-header{flex-direction:column;align-items:flex-start}.header-actions{width:100%;justify-content:flex-start}.scene-start-title{font-size:2rem}.scene-start-description{font-size:1rem}}.story-tree{width:100%;border:1px solid #ddd;border-radius:4px}.story-tree-scroll{width:100%;overflow:auto}.story-tree-canvas{position:relative;width:var(--canvas-width, 100%);height:var(--canvas-height, 100%);min-width:100%;min-height:600px;background-image:linear-gradient(90deg,rgba(0,0,0,.02) 1px,transparent 1px),linear-gradient(rgba(0,0,0,.02) 1px,transparent 1px);background-size:40px 40px}.story-tree-edges{position:absolute;inset:0;pointer-events:none}.story-tree-edge{stroke:#c896ff99;stroke-width:2;fill:none}.story-tree-empty{padding:16px;text-align:center;border:1px solid #ddd;border-radius:4px;background:#fafafa;color:#555}.story-tree-node{transition:all .2s ease;position:absolute;outline:none}.story-tree-node:focus-visible{outline:3px solid rgba(0,102,255,.6);outline-offset:3px}.story-tree-node:hover{transform:scale(1.05);box-shadow:0 4px 12px #0000004d}.story-tree-node-root{background-color:#e8f4f8!important;border-color:#4a90e2!important;font-weight:600}.story-tree-node-leaf{background-color:#ffe8e8!important;border-color:#e74c3c!important}.story-tree-node-choice{background-color:#fff4e8!important;border-color:#f39c12!important}.story-tree-node-current{border-width:6px!important;border-color:#4a90e2!important;box-shadow:0 0 0 3px #4a90e24d}.story-tree-node-content{display:flex;flex-direction:column;justify-content:space-between;width:100%;height:100%;gap:0px}.story-tree-node-image-wrapper{flex:1;width:100%;overflow:hidden;border-radius:8px;background:#00000026;display:flex;align-items:center;justify-content:center}.story-tree-node-image{width:100%;height:100%;object-fit:cover;border-radius:8px}.story-tree-node-image-placeholder{font-size:.7rem;opacity:.85;padding:4px}.story-tree-node-label{font-size:.8rem;font-weight:600;text-shadow:none;color:inherit}.play-page{display:flex;justify-content:center;align-items:center;width:100%;height:100vh;min-height:100vh;min-height:-webkit-fill-available;background:var(--bg-elevated);padding:0;margin:0}.play-page section{width:100%;max-width:100%;height:100%;margin:0;padding:0;display:flex;justify-content:center}.play-page .mobile-frame{max-height:90vh}@media(min-width:961px){.play-page{height:100vh;max-height:100vh}.play-page section{height:100vh;max-height:100vh}.play-page .mobile-frame{height:100%;max-height:92vh;overflow-y:auto}.play-page .mobile-screen{height:100%;max-height:100%;padding:12vh 8vw;justify-content:center}.play-page .scene-image.scene-image-has-image{padding:0;border-radius:1.4rem;border:1px solid var(--scene-accent-soft, rgba(255, 194, 255, .35));background:radial-gradient(circle at top,#ffffff29,#ffffff05) #0a0210a6;height:100%;max-height:100%;width:auto;max-width:78%;margin:0 auto;display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative;box-sizing:border-box}.play-page .scene-image.scene-image-has-image img{height:100%;width:auto;max-width:100%;object-fit:contain;border-radius:1rem;background:#05000abf;box-shadow:0 18px 36px #0000008c}}.syntax-highlighted-textarea{position:relative;width:100%}.syntax-highlight-backdrop{position:absolute;inset:0;pointer-events:none;border-radius:.8rem;border:1px solid transparent;overflow:hidden}.syntax-highlight-content{width:100%;min-height:3.25rem;padding:.55rem .8rem;font-family:inherit;font-size:inherit;line-height:inherit;white-space:pre-wrap;word-wrap:break-word;overflow-wrap:break-word;box-sizing:border-box;color:inherit}.syntax-highlight-content span{color:inherit}.syntax-highlighted-textarea textarea{position:relative;background:transparent;color:transparent;caret-color:#fff;z-index:1}.character-ref-valid{color:#7dd3fc!important;background:#7dd3fc26;border-radius:.25rem}.character-ref-invalid{color:#fca5a5!important;background:#fca5a526;border-radius:.25rem}.story-app-layout{display:flex;min-height:100vh;background:var(--background)}.story-app-main{flex:1;min-height:100vh;overflow-y:auto;padding:1rem}.story-sidebar{position:sticky;top:0;align-self:flex-start;width:260px;height:100vh;padding:1rem .5rem;background:#2c0f43;border-right:1px solid var(--panel-border);display:flex;flex-direction:column;gap:1rem;overflow-y:auto}.story-sidebar.collapsed{width:60px;padding:1rem .5rem;align-items:center}.sidebar-toggle-row{display:flex;justify-content:flex-end}@media(min-width:961px){.sidebar-toggle-row{display:flex}}.story-sidebar.collapsed .sidebar-toggle-row{flex:1;padding-top:.5rem;align-items:flex-start;justify-content:flex-start}@media(min-width:961px){.story-line.scene-text-content.story-line-description span,.story-line.scene-text-content.story-line-spoken span,.scene-start-description,.story-line.scene-text-content.story-line-thoughts span{font-size:1.2rem}}.sidebar-toggle{border-radius:999px;padding:.35rem .75rem}.sidebar-content{display:flex;flex-direction:column;gap:1rem;height:100%}.sidebar-header-row{padding:.5rem}.sidebar-main{flex:1;display:flex;flex-direction:column;gap:1rem}.sidebar-heading{display:flex;flex-direction:column;justify-content:space-between;align-items:center;gap:.75rem;padding:.5rem}.sidebar-label{margin:0;font-size:.8rem;letter-spacing:.08em;text-transform:uppercase;color:var(--text-subtle)}.sidebar-user{margin:0;font-weight:600}.sidebar-actions{display:flex;gap:.5rem}.sidebar-actions button,.sidebar-heading button{border-radius:999px;padding-inline:1rem}.sidebar-warning{font-size:.9rem}.sidebar-list{flex:1;overflow-y:auto}.sidebar-list ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.5rem}.story-list-button{width:100%;text-align:left;padding:.75rem;border-radius:.85rem;border:1px solid transparent;background:transparent;display:flex;flex-direction:column;gap:.2rem}.story-list-button.active{border-color:var(--panel-border);background:#ffffff0d}.story-list-title{font-weight:600}.story-list-date{font-size:.85rem;color:var(--text-subtle)}.sidebar-empty{color:var(--text-subtle);font-size:.9rem}.story-sidebar-overlay{position:fixed;inset:0;width:100%;height:100%;display:block;border:none;background:#00000073;padding:0;margin:0;z-index:25;cursor:pointer}.story-sidebar-overlay:focus-visible{outline:2px solid var(--text-bright);outline-offset:3px}@media(min-width:961px){.story-sidebar-overlay{display:none}}.mobile-sidebar-toggle-row{display:none}.mobile-sidebar-toggle{border-radius:999px;padding:.45rem 1.1rem}@media(max-width:960px){.story-app-layout{flex-direction:column;min-height:100vh;position:relative}.share-link-label{display:none}.story-sidebar{position:fixed;top:0;left:0;bottom:0;width:min(360px,86vw);max-width:90vw;height:100vh;border-right:none;box-shadow:8px 0 24px #00000073;transform:translate(-110%);transition:transform .3s ease,box-shadow .2s ease;z-index:30}.story-sidebar:not(.collapsed){transform:translate(0)}.story-sidebar.collapsed{width:min(360px,86vw);padding:1rem;align-items:stretch}.story-sidebar.collapsed .sidebar-toggle-row{flex:0;justify-content:flex-end}.story-app-main{width:100%}.mobile-sidebar-toggle-row{display:flex;padding:1rem;justify-content:flex-start;position:sticky;top:0;z-index:5;background:var(--background);border-bottom:1px solid var(--panel-border)}}.mobile-editor-banner{display:none;background:#ffd2ec26;border:1px solid rgba(255,210,236,.3);border-radius:.75rem;padding:.75rem 1rem;margin-bottom:1rem;align-items:center;justify-content:space-between;gap:1rem;color:#ffd2ea;font-size:.9rem}.mobile-editor-banner button{background:transparent;border:none;color:inherit;font-size:1.5rem;padding:0 .5rem;line-height:1;cursor:pointer;opacity:.7}@media(max-width:960px){.mobile-editor-banner{display:flex}}.collapsible-header{cursor:pointer;-webkit-user-select:none;user-select:none}.collapsible-header:hover{opacity:.9}@media(max-width:960px){.mobile-sidebar-toggle-row{padding:.5rem 1rem;background:#0d0215f2;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--panel-border)}.mobile-sidebar-toggle{font-size:.85rem;padding:.35rem .9rem;border:1px solid var(--panel-border);background:#ffffff0d;color:var(--text-subtle)}.app-header{gap:.75rem;padding-bottom:.5rem;border-bottom:1px solid rgba(255,255,255,.05);margin-bottom:1rem}.story-title-bar{width:100%;flex-wrap:wrap}.story-title-input input{font-size:1.5rem;width:100%}.story-title-status{font-size:.9rem;text-align:left;min-width:auto;margin-left:.2rem}.header-actions{flex-direction:column;align-items:stretch;gap:1rem}.share-link-bar{width:100%;align-items:stretch}.share-link-field{width:100%;display:flex}.share-link-field input{flex:1;min-width:0}.json-editor-toggle{align-self:flex-start}}@media(max-width:960px){.story-app-main{padding:0!important}.mobile-sidebar-toggle-row{width:100%;margin:0;border-radius:0;border-left:none;border-right:none;border-top:none}.app-header{padding:1rem 1rem 1.5rem;margin-bottom:0;background:var(--background)}.workspace{padding:0 1rem 2rem}.inline-warning{margin:.5rem 1rem}.mobile-editor-banner{margin:.5rem}}@media(max-width:960px){.app-header{padding:.75rem 1rem;gap:.5rem}.header-actions{flex-direction:row;justify-content:space-between;gap:.5rem;width:100%;margin-top:.25rem}.story-title-input input{font-size:1.2rem;padding:.2rem 0}.story-title-status{font-size:.8rem}.json-editor-toggle{font-size:.8rem;min-height:2rem;padding:.1rem .4rem}.json-editor-toggle__track{width:36px;height:20px}.json-editor-toggle__thumb{width:16px;height:16px}.json-editor-toggle.active .json-editor-toggle__thumb{transform:translate(16px,-50%)}}.react-flow{direction:ltr}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1;cursor:-webkit-grab;cursor:grab}.react-flow__pane.selection{cursor:pointer}.react-flow__pane.dragging{cursor:-webkit-grabbing;cursor:grabbing}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow .react-flow__edges{pointer-events:none;overflow:visible}.react-flow__edge-path,.react-flow__connection-path{stroke:#b1b1b7;stroke-width:1;fill:none}.react-flow__edge{pointer-events:visibleStroke;cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;-webkit-animation:dashdraw .5s linear infinite;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;-webkit-animation:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge:focus .react-flow__edge-path,.react-flow__edge:focus-visible .react-flow__edge-path{stroke:#555}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge-textbg{fill:#fff}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;-webkit-animation:dashdraw .5s linear infinite;animation:dashdraw .5s linear infinite}.react-flow__connectionline{z-index:1001}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:-webkit-grab;cursor:grab}.react-flow__node.dragging{cursor:-webkit-grabbing;cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:-webkit-grab;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background:#1a192b;border:1px solid white;border-radius:100%}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:-4px;transform:translate(-50%)}.react-flow__handle-top{left:50%;top:-4px;transform:translate(-50%)}.react-flow__handle-left{top:50%;left:-4px;transform:translateY(-50%)}.react-flow__handle-right{right:-4px;top:50%;transform:translateY(-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.center{left:50%;transform:translate(-50%)}.react-flow__attribution{font-size:10px;background:#ffffff80;padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@-webkit-keyframes dashdraw{0%{stroke-dashoffset:10}}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-default,.react-flow__node-input,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:3px;width:150px;font-size:12px;color:#222;text-align:center;border-width:1px;border-style:solid;border-color:#1a192b;background-color:#fff}.react-flow__node-default.selectable:hover,.react-flow__node-input.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:0 1px 4px 1px #00000014}.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:0 0 0 .5px #1a192b}.react-flow__node-group{background-color:#f0f0f040}.react-flow__nodesselection-rect,.react-flow__selection{background:#0059dc14;border:1px dotted rgba(0,89,220,.8)}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls{box-shadow:0 0 2px 1px #00000014}.react-flow__controls-button{border:none;background:#fefefe;border-bottom:1px solid #eee;box-sizing:content-box;display:flex;justify-content:center;align-items:center;width:16px;height:16px;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;padding:5px}.react-flow__controls-button:hover{background:#f4f4f4}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__minimap{background-color:#fff}.react-flow__minimap svg{display:block}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:4px;height:4px;border:1px solid #fff;border-radius:1px;background-color:#3367d9;transform:translate(-50%,-50%)}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:#3367d9;border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}
