.storycreate30{position:fixed;inset:0;margin:0;width:100%;height:100dvh;max-width:none;max-height:none;padding:0;border:0;border-radius:0;background:var(--paper);color:var(--ink)}.storycreate30[open]{display:flex;flex-direction:column}.storycreate30::backdrop{background:var(--paper)}.storycreate30 *{box-sizing:border-box}.storycreate30-head{display:flex;align-items:center;gap:8px;padding:max(8px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left));border-bottom:1px solid var(--border);background:var(--surface);flex-shrink:0}.storycreate30 h2{font-size:17px;line-height:1.25;margin:0;flex:1}.storycreate30 button,.storycreate30 select,.storycreate30 input,.storycreate30 textarea{font:inherit;color:var(--ink)}.storycreate30 button{border:0;border-radius:14px;min-width:44px;min-height:44px;padding:10px 14px;background:var(--soft);cursor:pointer}.storycreate30 button:disabled{opacity:.5;cursor:default}.storycreate30-head button:first-child{font-size:24px;background:transparent;padding:8px}.storycreate30 .storycreate30-primary{background:var(--action);color:var(--on-action);font-weight:650;font-size:14px}.storycreate30-content{overflow:auto;overscroll-behavior:contain;min-height:0;width:100%;max-width:600px;margin:0 auto;padding:16px 20px max(24px,env(safe-area-inset-bottom));flex:1}.storycreate30-note,.storycreate30-help{font-size:12px;line-height:1.5;color:var(--muted);margin:0 0 16px}.storycreate30-content>label,.storycreate30-crop label{display:block;font-size:13px;margin:16px 0}.storycreate30 select,.storycreate30 input:not([type=file]),.storycreate30 textarea{display:block;width:100%;min-height:44px;padding:10px;border:1px solid var(--control-border,var(--border));background:var(--surface);border-radius:10px;margin-top:6px}.storycreate30 textarea{resize:vertical;line-height:1.5}.storycreate30-import{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.storycreate30-import label{position:relative;overflow:hidden;min-height:44px;display:flex;align-items:center;border:1px solid var(--border);background:var(--surface);padding:10px 14px;border-radius:22px;font-size:13px;font-weight:600;color:var(--action)}.storycreate30-import input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.storycreate30-import label:focus-within{outline:2px solid var(--focus);outline-offset:2px}.storycreate30-empty{display:grid;place-content:center;text-align:center;min-height:230px;border-radius:20px;background:var(--soft);color:var(--muted)}.storycreate30-empty span{font-size:40px;color:var(--action)}.storycreate30-empty p{font-size:15px}.storycreate30-canvas{display:block;width:100%;max-height:42dvh;object-fit:contain;background:#081525;border-radius:16px;margin:16px 0}.storycreate30-crop{border:1px solid var(--border);border-radius:14px;padding:6px 14px 14px;margin:12px 0}.storycreate30-crop legend{font-size:13px;padding:0 5px;font-weight:650}.storycreate30-crop label{margin:8px 0}.storycreate30 input[type=range]{accent-color:var(--action);padding:0;border:0;background:transparent;cursor:pointer}.storycreate30-preview{background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:16px;margin-bottom:16px}.storycreate30-preview strong{display:block;font-size:16px}.storycreate30-preview p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.5}.storycreate30-preview small{color:var(--muted);font-size:12px}.storycreate30-preview canvas{max-height:55dvh}.storycreate30-status{font-size:13px;line-height:1.5;color:var(--muted);min-height:20px}.storycreate30-status.error{color:var(--error,#b62933)}.storycreate30 .storycreate30-discard{font-size:12px;background:transparent;color:var(--muted);padding-left:0}.storycreate30 :is(button,input,textarea,select):focus-visible{outline:2px solid var(--focus);outline-offset:3px}.creatingstory30 .app{visibility:hidden}@media(min-width:760px){.storycreate30-head{padding-inline:max(24px,calc((100vw - 600px)/2))}}@media(max-width:350px){.storycreate30-content{padding-inline:12px}.storycreate30 h2{font-size:15px}.storycreate30-head{padding-inline:8px}.storycreate30-head button{padding-inline:10px}}@media(prefers-reduced-motion:reduce){.storycreate30 *{scroll-behavior:auto}}
