.story-sticker-tools{display:grid;gap:12px;--chosen-menu:var(--ui-surface)}.story-sticker-tools .story-sticker-upload{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px;border-radius:12px;background:var(--ui-hover);color:var(--ui-text);font-size:14px;cursor:pointer;overflow:hidden}.story-sticker-tools .story-sticker-upload input[type=file]{position:absolute;inset:0;width:100%;height:100%;padding:0;opacity:0;cursor:pointer}.story-sticker-layers{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px}.story-sticker-layers button{flex:none;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-height:36px;padding:6px 10px;border:0;border-radius:10px;background:var(--ui-hover);color:var(--ui-text);font-size:12px}.story-sticker-layers button[aria-pressed=true]{background:var(--ui-selected);color:var(--ui-accent)}.story-sticker-actions{display:flex;justify-content:space-between;gap:8px}.story-sticker-actions button{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:12px;background:var(--ui-hover);color:var(--ui-text)}.story-sticker-tools .chat-symbol-panel.chat-symbol-picker{width:100%;max-width:none;height:300px;max-height:none;border:0;border-radius:12px;box-shadow:none}.story-editor .story-sticker-tools .symbol-search input{min-height:36px;padding:0;border:0!important;background:transparent!important}.story-camera{box-sizing:border-box;width:min(440px,100vw);max-width:100vw;max-height:100dvh;padding:0;margin:auto;border:0;border-radius:28px;overflow:auto;color:#fff;background:#15171a;box-shadow:0 28px 100px #0005;color-scheme:dark;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.story-camera::backdrop{background:#16212a8c;backdrop-filter:blur(20px)}.story-camera *{box-sizing:border-box;user-select:none;-webkit-user-select:none;-webkit-user-drag:none;-webkit-touch-callout:none}.story-camera header{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;gap:12px}.story-camera h2{margin:0;font-size:16px;font-weight:600}.story-camera header>div{display:flex;gap:8px}.story-camera button{display:flex;align-items:center;justify-content:center;flex-shrink:0;min-width:44px;min-height:44px;padding:10px;border:0;border-radius:50%;color:inherit;background:#ffffff14;cursor:pointer;transition:background .15s,transform .15s}.story-camera button:disabled{opacity:.4;cursor:default}.story-camera button:focus-visible{outline:3px solid #58b4ff;outline-offset:3px}@media(hover:hover){.story-camera button:enabled:hover{background:#ffffff26}}.story-camera button:enabled:active{transform:scale(.96)}.story-camera-preview{position:relative;width:min(100%,max(101px,calc((100dvh - 280px) * 9 / 16)));aspect-ratio:9/16;margin:0 auto;overflow:hidden;background:#202329;border-radius:16px}.story-camera-preview video{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}.story-camera-loading{position:absolute;inset:0;display:grid;place-items:center;padding:24px;text-align:center;background:#15171a77;color:#fff;font-size:14px}.story-camera-time{position:absolute;top:14px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:8px;padding:7px 12px;border-radius:18px;background:#17191b99;font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap;backdrop-filter:blur(12px)}.story-camera-time i{width:7px;height:7px;border-radius:50%;background:#ff453a}.story-camera-zoom{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);display:flex;gap:10px;align-items:center;width:min(220px,80%);padding:9px 12px;border-radius:22px;background:#17191b99;backdrop-filter:blur(12px);font-size:12px;font-variant-numeric:tabular-nums}.story-camera-zoom input{width:100%;min-width:0;accent-color:#ffd60a}.story-camera-controls{padding:10px 20px max(16px,env(safe-area-inset-bottom))}.story-camera-modes{display:flex;justify-content:center;gap:8px;margin-bottom:12px}.story-camera-modes button{min-height:36px;gap:6px;border-radius:20px;padding:8px 14px;background:transparent;font-size:13px;font-weight:600}.story-camera-modes button[aria-pressed=true]{color:#ffd60a;background:#ffffff12}.story-camera-shutter-row{display:grid;grid-template-columns:1fr 76px 1fr;align-items:center;justify-items:center;gap:16px}.story-camera-shutter-row>button:last-child{justify-self:end}.story-camera-device{justify-self:start;flex-direction:column;gap:4px;background:transparent!important;font-size:10px;border-radius:12px!important}.story-camera .story-camera-shutter{position:relative;z-index:1;width:76px;height:76px;padding:5px;border:3px solid #fff;background:transparent;touch-action:none}.story-camera-shutter-row[data-holding=true] .story-camera-shutter{transition:none}.story-camera-lock{justify-self:start;color:#fff}.story-camera-shutter-row[data-lock-ready=true] .story-camera-lock{color:#ffd60a;background:#ffd60a26}.story-camera-shutter i{width:100%;height:100%;border-radius:50%;background:#fff;transition:border-radius .18s,transform .18s}.story-camera-shutter[data-video=true] i{background:#ff453a}.story-camera-shutter[data-recording=true] i{border-radius:8px;transform:scale(.5)}.story-camera-hint{text-align:center;margin:12px 0 0;font-size:11px;color:#b7bcc4;line-height:1.5}.story-camera-error{margin:0 0 12px;padding:10px 12px;border-radius:12px;background:#ff453a20;color:#ffc9c4;font-size:13px;line-height:1.5}.story-camera-devices{display:grid;gap:4px;padding:8px;margin-top:14px;border-radius:16px;background:#ffffff0d}.story-camera-devices button{justify-content:flex-start;gap:10px;border-radius:10px;background:transparent;text-align:left;font-size:13px}.story-camera-devices button span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.story-camera-devices button[aria-pressed=true]{color:#64b5ff;background:#0a84ff20}.story-camera .story-camera-retry{border-radius:20px;margin:12px auto;font-size:13px}@media(max-width:480px){.story-camera{border-radius:0;width:100vw;min-height:100dvh}}@media(prefers-reduced-motion:reduce){.story-camera button,.story-camera-shutter i{transition:none}}.story-eyedropper{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;overflow:hidden;pointer-events:none;color:#fff}.story-eyedropper::backdrop{background:transparent}.story-eyedropper-region{position:absolute;pointer-events:auto;touch-action:none;cursor:move;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.story-eyedropper-loupe{position:absolute;width:148px;height:148px;margin:-74px 0 0 -74px;border-radius:50%;box-shadow:0 0 40px #000e6;pointer-events:none;animation:story-eyedropper-scale-in .4s cubic-bezier(.18,.8,.32,1.2),story-eyedropper-fade-in .2s ease-out}.story-eyedropper[data-closing=true] .story-eyedropper-region{pointer-events:none}.story-eyedropper[data-closing=true] .story-eyedropper-loupe{animation:story-eyedropper-exit .2s ease-in forwards}.story-eyedropper[data-closing=true] .story-eyedropper-controls{opacity:0}.story-eyedropper-controls{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:8px;padding:4px;border-radius:28px;color:#fff;background:#1c1c1ecc;backdrop-filter:blur(16px);box-shadow:0 4px 16px #0003}.story-eyedropper-controls button{display:grid;place-items:center;flex:none;width:44px;height:44px;min-width:44px;min-height:44px;border:0;border-radius:50%;padding:0;background:transparent;color:inherit;cursor:pointer}.story-eyedropper-controls button:focus-visible{outline:2px solid #64b5ff;outline-offset:-3px}.story-eyedropper-controls output{max-width:160px;font:600 12px/1.4 -apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;letter-spacing:.02em;text-align:center}@media(hover:hover){.story-eyedropper-controls button:hover{background:#ffffff1f}}@keyframes story-eyedropper-scale-in{0%{scale:.01}to{scale:1}}@keyframes story-eyedropper-fade-in{0%{opacity:0}to{opacity:1}}@keyframes story-eyedropper-exit{0%{opacity:1;scale:1}to{opacity:0;scale:.01}}@media(prefers-reduced-motion:reduce){.story-eyedropper-loupe,.story-eyedropper[data-closing=true] .story-eyedropper-loupe{animation:none}}.story-adjustment-tools{display:grid;gap:16px}.story-adjustment-tools label{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px;font-size:12px}.story-adjustment-tools output{color:var(--ui-muted);font-variant-numeric:tabular-nums}.story-adjustment-tools input[type=range]{grid-column:1/-1;width:100%;accent-color:var(--ui-accent)}.story-adjustment-tools button{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:9px;border:0;border-radius:10px;background:var(--ui-hover);color:var(--ui-text);font-size:12px;min-height:36px}.story-adjustment-tools button[aria-pressed=true]{background:var(--ui-selected);color:var(--ui-accent)}.story-adjustment-tools .story-adjustment-reset{justify-self:start}.story-adjustment-curves,.story-adjustment-tints{display:grid;gap:14px;padding-top:16px;border-top:1px solid var(--ui-border)}.story-adjustment-tints>section{display:grid;gap:10px}.story-adjustment-tints>section>div{display:flex;align-items:center;gap:6px}.story-adjustment-tints strong{font-size:12px;margin-right:auto}.story-adjustment-tints i{width:18px;height:18px;border:1px solid var(--ui-border);border-radius:50%}.story-adjustment-tints .story-tint-swatches{display:flex;justify-content:space-between;gap:5px}.story-adjustment-tints .story-tint-swatches button{width:28px;height:28px;min-height:28px;padding:0;border-radius:50%;border:2px solid transparent}.story-adjustment-tints .story-tint-swatches button[aria-pressed=true]{border-color:var(--ui-text);box-shadow:inset 0 0 0 2px var(--ui-surface)}.story-curve-channels{display:flex;gap:5px}.story-curve-channels button{flex:1}.story-curve-graph{width:100%;user-select:none;-webkit-user-select:none;border-radius:10px;cursor:ns-resize}.story-adjustment-tools button:focus-visible{outline:2px solid var(--ui-accent);outline-offset:2px}.story-focus-tools{display:grid;gap:16px}.story-focus-tools>p{margin:0;font-size:12px;line-height:1.5;color:var(--ui-muted)}.story-focus-tools label{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px;font-size:12px}.story-focus-tools input{width:100%;grid-column:1/-1;accent-color:var(--ui-accent)}.story-focus-tools output{color:var(--ui-muted);font-variant-numeric:tabular-nums}.story-focus-modes{display:flex;gap:6px}.story-focus-tools button{border:0;padding:10px;border-radius:10px;background:var(--ui-hover);color:var(--ui-text);min-height:40px;font-size:12px}.story-focus-modes>button{flex:1}.story-focus-tools button[aria-pressed=true]{color:var(--ui-accent);background:var(--ui-selected)}.story-editor-stage>.story-focus-layer{position:absolute;inset:0;width:100%;height:100%;z-index:5;touch-action:none;user-select:none;-webkit-user-select:none;outline:none;cursor:move}.story-focus-guide{stroke:#fff;stroke-width:1;stroke-dasharray:6 5;filter:drop-shadow(0 1px 1px #0007);pointer-events:none}.story-focus-guide,.story-focus-hit{fill:none;vector-effect:non-scaling-stroke}.story-focus-hit{stroke:transparent;stroke-width:20;cursor:ns-resize}.story-focus-centre,.story-focus-rotation{fill:#fff;stroke:#0005;stroke-width:2;pointer-events:none}.story-focus-centre-hit{fill:transparent;cursor:move}.story-focus-layer:focus-visible{box-shadow:inset 0 0 0 2px #3390ff}.story-focus-tools button:focus-visible{outline:2px solid var(--ui-accent);outline-offset:2px}.story-media-layer{position:absolute;inset:0;z-index:1;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:grab;outline:0}.story-media-layer:active{cursor:grabbing}.story-media-layer:focus-visible{box-shadow:inset 0 0 0 2px #3390ff}.story-media-tools{display:grid;gap:14px}.story-media-tools>p{margin:0;color:var(--ui-muted);font-size:12px;line-height:1.5}.story-media-tools button{border:0;border-radius:10px;padding:10px;min-height:40px;color:var(--ui-text);background:var(--ui-hover);font-size:12px}.story-media-tools button[aria-pressed=true]{background:var(--ui-selected);color:var(--ui-accent)}.story-media-actions,.story-media-fit{display:flex;gap:6px}.story-media-actions>button,.story-media-fit>button{flex:1;min-width:0}.story-media-actions>button{display:flex;flex-direction:column;align-items:center;gap:6px}.story-media-tools>label{display:grid;grid-template-columns:1fr auto;gap:8px;font-size:12px;align-items:center}.story-media-tools input{width:100%;grid-column:1/-1;accent-color:var(--ui-accent)}.story-media-tools output{font-variant-numeric:tabular-nums;color:var(--ui-muted)}.story-media-background-label{font-size:12px;font-weight:600}.story-media-tools .story-media-color{display:flex;align-items:center;gap:8px}.story-media-color>i{width:24px;height:24px;border:1px solid var(--ui-border);border-radius:50%}.story-media-colors{display:flex;gap:8px}.story-media-colors>button{flex:1}.story-media-tools button:focus-visible{outline:2px solid var(--ui-accent);outline-offset:2px}.story-drafts{margin-top:20px;padding-top:18px;border-top:1px solid var(--ui-border)}.story-drafts-heading{display:flex;align-items:center;gap:8px}.story-drafts-heading>span{padding:2px 7px;border-radius:8px;color:var(--ui-muted);background:var(--ui-hover);font-size:12px}.story-drafts>p{color:var(--ui-muted);font-size:12px;line-height:1.5;margin:6px 0 14px}.story-drafts-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:12px}.story-drafts-grid>article{position:relative;min-width:0}.story-draft-open{display:flex;flex-direction:column;align-items:stretch;gap:5px;width:100%;text-align:left;color:var(--ui-text);padding:0;border:0;background:transparent}.story-draft-preview{display:grid;place-items:center;width:100%;aspect-ratio:9/16;overflow:hidden;border-radius:14px;background:var(--ui-hover);color:var(--ui-muted)}.story-draft-preview>img{width:100%;height:100%;object-fit:cover;user-select:none;-webkit-user-drag:none}.story-draft-open>strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;font-weight:600}.story-draft-open>time{font-size:11px;color:var(--ui-muted)}.story-drafts .story-draft-delete{display:grid;place-items:center;position:absolute;top:6px;right:6px;width:32px;height:32px;border:0;padding:0;border-radius:50%;background:#0009;color:#fff}.story-draft-delete-confirm{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;gap:8px;padding:10px;border-radius:14px;background:var(--ui-surface);box-shadow:0 4px 20px #0002;text-align:center;font-size:12px}.story-draft-delete-confirm button{border:0;border-radius:9px;padding:8px;background:var(--ui-hover);color:var(--ui-text)}.story-draft-delete-confirm button:first-of-type{color:#f04452}.story-draft-exit{position:absolute;inset:0;z-index:15;display:grid;place-items:center;padding:24px;background:#0007;backdrop-filter:blur(8px)}.story-draft-exit>section{width:min(320px,100%);padding:24px;border-radius:22px;background:var(--ui-surface);color:var(--ui-text);box-shadow:0 16px 60px #0004}.story-draft-exit h3{margin:0 0 8px;font-size:19px}.story-draft-exit p{margin:0 0 20px;color:var(--ui-muted);font-size:14px;line-height:1.5}.story-draft-exit button{display:block;width:100%;margin-top:8px;padding:12px;border:0;border-radius:12px;background:var(--ui-hover);color:var(--ui-text);font-weight:600}.story-draft-exit button:first-of-type{background:var(--ui-accent);color:#fff}.story-draft-exit button:nth-of-type(2){color:#f04452}.story-draft-exit button:focus-visible,.story-drafts button:focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}.story-draft-save{display:flex;align-items:center;gap:6px;min-height:40px;padding:8px 10px;border:0;border-radius:12px;background:var(--ui-hover);color:var(--ui-text);font-size:13px}.tg-story-color-picker{color-scheme:dark;position:fixed;inset:auto 0 0;margin:0 auto;width:min(430px,calc(100vw - 16px));max-width:none;max-height:calc(100dvh - 16px);padding:16px 20px 24px;overflow:auto;border:0;border-radius:22px 22px 0 0;background:#1c1c1e;color:#fff;box-shadow:0 -8px 60px #0005;font:14px/1.35 -apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;animation:tg-color-enter .22s ease-out}.tg-story-color-picker::backdrop{background:#0005}.tg-story-color-picker *{box-sizing:border-box}.tg-story-color-picker button{display:grid;place-items:center;margin:0;padding:0;border:0;color:inherit;cursor:pointer;font:inherit}.tg-story-color-picker>header{display:flex;align-items:center;justify-content:space-between;padding:0 0 20px;margin:0}.tg-story-color-picker>header h2{margin:0;font-size:17px;font-weight:600;color:#fff}.tg-story-color-picker>header button{width:32px;height:32px;flex:none;border-radius:50%;background:#ffffff12}.tg-story-color-picker .tg-color-modes{display:grid;grid-template-columns:repeat(3,1fr);padding:2px;margin-bottom:20px;border-radius:9px;background:#ffffff12}.tg-story-color-picker .tg-color-modes button{min-height:30px;border-radius:7px;background:transparent;font-size:13px;font-weight:600}.tg-story-color-picker .tg-color-modes button[aria-selected=true]{background:#6f707599;box-shadow:0 2px 4px #0003}.tg-color-panel{aspect-ratio:12/10;margin-bottom:22px}.tg-color-grid{display:grid;grid-template-columns:repeat(12,1fr);width:100%;height:100%;overflow:hidden;border-radius:10px;touch-action:none}.tg-story-color-picker .tg-color-grid button{border-radius:0}.tg-story-color-picker .tg-color-grid button[aria-pressed=true]{position:relative;z-index:1;outline:3px solid #fff;outline-offset:-3px;box-shadow:inset 0 0 0 4px #0003}.tg-color-spectrum{position:relative;width:100%;height:100%}.tg-color-spectrum canvas{display:block;width:100%;height:100%;border-radius:10px;touch-action:none;cursor:crosshair}.tg-color-spectrum>i{position:absolute;width:32px;height:32px;border:3px solid #fff;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none;box-shadow:0 2px 8px #0006}.tg-story-color-picker .tg-color-channels{display:flex;flex-direction:column;justify-content:space-between;height:100%;gap:12px}.tg-story-color-picker label{display:block;margin:0;color:#9b9da5;font:600 11px/1.4 -apple-system,BlinkMacSystemFont,sans-serif}.tg-story-color-picker label>span{display:block;margin:0 0 8px}.tg-story-color-picker label>div{display:flex;align-items:center;gap:12px}.tg-story-color-picker input[type=range]{appearance:none;-webkit-appearance:none;flex:1;min-width:0;height:36px;border:0;border-radius:18px;padding:0;outline-offset:3px;cursor:pointer;touch-action:pan-y}.tg-story-color-picker input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:32px;height:32px;border:3px solid #fff;border-radius:50%;background:transparent;box-shadow:0 1px 5px #0006}.tg-story-color-picker input[type=range]::-moz-range-thumb{width:26px;height:26px;border:3px solid #fff;border-radius:50%;background:transparent;box-shadow:0 1px 5px #0006}.tg-story-color-picker input:not([type]),.tg-story-color-picker input[type=number]{width:64px;height:36px;min-width:0;border:0;border-radius:8px;padding:4px 6px;background:#0009;color:#fff;font:16px/1 -apple-system,BlinkMacSystemFont,sans-serif;text-align:center;box-shadow:none}.tg-story-color-picker .tg-color-hex{display:flex;align-items:center;justify-content:flex-end;gap:12px;color:#fff;font-size:14px}.tg-story-color-picker .tg-color-hex>span{margin:0}.tg-story-color-picker .tg-color-hex input{width:110px}.tg-story-color-picker .tg-color-opacity>div{position:relative}.tg-story-color-picker .tg-color-opacity input[type=number]{padding-right:18px;width:77px}.tg-story-color-picker .tg-color-opacity>div>span{position:absolute;right:10px;color:#fff;font-size:15px;pointer-events:none}.tg-story-color-picker>footer{display:flex;gap:28px;margin-top:24px;padding-top:22px;border-top:1px solid #48484a;background:transparent}.tg-color-preview{display:block;position:relative;width:82px;height:82px;flex:none;overflow:hidden;border-radius:12px;background:linear-gradient(135deg,#000 50%,#fff 0)}.tg-color-preview>i{position:absolute;inset:0}.tg-color-swatches{display:flex;align-items:center;justify-content:space-between;flex:1;gap:8px}.tg-story-color-picker .tg-color-swatches button{width:26px;height:26px;border-radius:50%;background:#ffffff14;box-shadow:inset 0 0 0 1px #ffffff26}.tg-story-color-picker button:focus-visible,.tg-story-color-picker input:focus-visible{outline:2px solid #3390ff;outline-offset:3px}@keyframes tg-color-enter{0%{transform:translateY(60px);opacity:0}to{transform:translateY(0);opacity:1}}@media(prefers-reduced-motion:reduce){.tg-story-color-picker{animation:none}}[data-theme=light] .tg-story-color-picker{color-scheme:light;background:#fff;color:#24364a;box-shadow:0 -8px 60px #2039561f}[data-theme=light] .tg-story-color-picker::backdrop{background:#e7edf3ad;backdrop-filter:blur(24px) saturate(1.2)}[data-theme=light] .tg-story-color-picker>header h2{color:#24364a}[data-theme=light] .tg-story-color-picker .tg-color-modes,[data-theme=light] .tg-story-color-picker>header button{background:#0000000f}[data-theme=light] .tg-story-color-picker .tg-color-modes button[aria-selected=true]{background:#fff;box-shadow:0 2px 6px #2039561f;color:#24364a}[data-theme=light] .tg-story-color-picker label{color:#617287}[data-theme=light] .tg-story-color-picker input:not([type]),[data-theme=light] .tg-story-color-picker input[type=number]{background:#0000000f;color:#24364a}[data-theme=light] .tg-story-color-picker .tg-color-hex,[data-theme=light] .tg-story-color-picker .tg-color-opacity>div>span{color:#24364a}[data-theme=light] .tg-story-color-picker>footer{border-top-color:#00000014}[data-theme=light] .tg-story-color-picker .tg-color-swatches button{background:#0000000f;box-shadow:inset 0 0 0 1px #00000014}.story-editor-stage>.story-drawing-canvas{position:absolute;inset:0;z-index:2;width:100%;height:100%;touch-action:none}.story-drawing-tools{color:var(--ui-text)}.story-drawing-tools button{display:grid;place-items:center;gap:5px;min-width:36px;min-height:36px;border:0;border-radius:12px;background:transparent;color:inherit;padding:6px}.story-drawing-tools button:disabled{opacity:.35}.story-drawing-history{display:flex;align-items:center;gap:10px;padding-bottom:14px}.story-drawing-history label{display:flex;align-items:center;gap:10px;flex:1;font-size:12px}.story-drawing-history input{flex:1;min-width:40px;accent-color:var(--ui-accent)}.story-drawing-brushes{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px}.story-drawing-brushes button>span{font-size:9px;white-space:nowrap}.story-drawing-brushes button[aria-pressed=true]{color:var(--ui-accent);background:var(--ui-selected)}.story-drawing-color>i{display:block;width:25px;height:25px;border:2px solid var(--ui-text);border-radius:50%;box-shadow:inset 0 0 0 2px var(--ui-surface)}.story-drawing-brushes>button{min-width:0}.story-drawing-tools button:focus-visible{outline:2px solid var(--ui-accent);outline-offset:2px}.story-drawing-tools .story-drawing-fill{display:flex;width:100%;justify-content:center;gap:8px;margin-top:14px;padding:10px;border-radius:12px;background:var(--ui-hover);font-size:12px}.story-drawing-hint{margin:8px 0 0;color:var(--ui-muted);font-size:12px;line-height:1.5}.story-editor-stage>.story-drawing-fill-preview{position:absolute;z-index:3;pointer-events:none;width:160px;height:160px;border-radius:50%;transform:translate(-50%,-50%) scale(.01);animation:story-drawing-fill .35s ease-out forwards}@keyframes story-drawing-fill{to{transform:translate(-50%,-50%) scale(12)}}@media(prefers-reduced-motion:reduce){.story-editor-stage>.story-drawing-fill-preview{animation:none;transform:translate(-50%,-50%) scale(12);opacity:.35}}.story-timeline-tools{display:grid;gap:14px}.story-timeline-tools button{display:inline-flex;align-items:center;justify-content:center;min-width:36px;min-height:36px;padding:6px;gap:6px;border:0;border-radius:10px;background:var(--ui-hover);color:var(--ui-text);font-size:12px}.story-timeline-tools button[aria-pressed=true]{color:var(--ui-accent);background:var(--ui-selected)}.story-timeline-playback{display:flex;align-items:center;gap:8px}.story-timeline-playback>span{flex:1;font-size:11px;font-variant-numeric:tabular-nums;color:var(--ui-muted)}.story-video-filmstrip{position:relative;height:56px;border-radius:8px;touch-action:none;isolation:isolate}.story-video-frames{position:absolute;inset:0;display:flex;border-radius:8px;overflow:hidden;background:#222}.story-video-frames img{flex:1;width:10%;min-width:0;height:100%;object-fit:cover;pointer-events:none}.story-timeline-dim{position:absolute;top:0;bottom:0;background:#0009;pointer-events:none}.story-timeline-selection{position:absolute;top:-2px;bottom:-2px;border-block:3px solid #ffcc00;pointer-events:none}.story-timeline-tools .story-video-filmstrip input[type=range]{position:absolute;inset:0;margin:0;padding:0;width:100%;height:100%;appearance:none;-webkit-appearance:none;border:0;border-radius:0;background:transparent;pointer-events:none}.story-video-filmstrip input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:12px;height:60px;border:0;border-radius:4px;background:#ffcc00;pointer-events:auto;cursor:ew-resize}.story-video-filmstrip input[type=range]::-moz-range-thumb{width:12px;height:60px;border:0;border-radius:4px;background:#ffcc00;pointer-events:auto;cursor:ew-resize}.story-timeline-playhead{position:absolute;inset-block:0;width:2px;background:#fff;box-shadow:0 0 2px #000;pointer-events:none}.story-video-range-labels{display:flex;justify-content:space-between;margin-top:-8px;font-size:10px;font-variant-numeric:tabular-nums;color:var(--ui-muted)}.story-timeline-tools .story-timeline-label{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;font-size:12px;color:var(--ui-text)}.story-timeline-label>output{margin-left:auto;color:var(--ui-muted);font-variant-numeric:tabular-nums}.story-timeline-label>input[type=range]{width:100%;min-width:0;accent-color:var(--ui-accent)}.story-audio-track{padding:12px;border-radius:14px;background:var(--ui-hover);display:grid;gap:12px}.story-editor .story-audio-track>header{display:flex;align-items:center;gap:8px;margin:0;padding:0;font-size:12px}.story-audio-track header strong{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.story-audio-waveform{display:block;width:100%;height:40px;fill:var(--ui-accent)}.story-cover-time{margin:0;color:var(--ui-muted);font-size:11px}.story-editor-stage>.story-scene-canvas{position:absolute;inset:0;display:block;width:100%;height:100%}.story-entity-layer{position:absolute;inset:0;z-index:4;touch-action:none}.story-entity-bounds{position:absolute;transform-origin:center;border:1px solid transparent}.story-entity-bounds[data-selected=true]{border-color:#ffffffe0;box-shadow:0 0 0 1px #0002}.story-entity-bounds>.story-entity-hit{position:absolute;inset:-6px;width:calc(100% + 12px);height:calc(100% + 12px);padding:0;border:0;border-radius:0;background:transparent;cursor:move;touch-action:none}.story-entity-bounds>.story-entity-handle{position:absolute;right:-12px;bottom:-12px;display:grid;place-items:center;width:24px;height:24px;min-width:0;min-height:0;padding:0;border:2px solid #fff;border-radius:50%;background:#3390ff;color:white;cursor:nwse-resize}.story-entity-hit:focus-visible{outline:2px solid #3390ff;outline-offset:6px}.story-snap-guide{position:absolute;display:block;pointer-events:none;background:#5fc1f0}.story-snap-angle,.story-snap-guide{opacity:0;transition:opacity .4s ease-in-out}.story-snap-angle[data-active=true],.story-snap-guide[data-active=true]{opacity:1;transition-duration:.2s}.story-snap-vertical{inset:0 auto 0 50%;width:1px}.story-snap-horizontal{inset:50% 0 auto;height:1px}.story-entity-layer>.story-snap-angle{position:absolute;width:277.777778%;height:1px;pointer-events:none;overflow:visible}@media (prefers-reduced-motion:reduce){.story-snap-angle,.story-snap-guide{transition:none}}.story-text-tools{display:grid;gap:14px}.story-text-animations,.story-text-fonts,.story-text-layers{display:flex;gap:6px;overflow-x:auto;padding:2px 0 6px;scrollbar-width:thin}.story-text-tools button{display:inline-flex;align-items:center;justify-content:center;flex:none;gap:5px;min-width:36px;min-height:36px;padding:7px 10px;border:0;border-radius:10px;background:var(--ui-hover);color:var(--ui-text);font-size:12px}.story-text-tools button[aria-pressed=true]{background:var(--ui-selected);color:var(--ui-accent)}.story-text-styles{display:grid;grid-template-columns:repeat(5,1fr);gap:4px}.story-text-styles button{display:flex;flex-direction:column;min-width:0;padding:8px 3px;gap:4px}.story-text-styles button>span{font-size:21px;font-weight:600}.story-text-styles small{font-size:8px;white-space:nowrap}.story-text-actions{display:flex;justify-content:space-between;gap:4px}.story-text-actions button{padding:8px}.story-text-actions i{display:block;width:22px;height:22px;border:2px solid var(--ui-text);border-radius:50%;box-shadow:inset 0 0 0 2px var(--ui-surface)}.story-text-tools .story-text-size{display:flex;align-items:center;gap:12px;font-size:12px}.story-text-size input[type=range]{flex:1;min-width:0;accent-color:var(--ui-accent)}.story-scene-history{display:flex;align-items:center;gap:4px;margin-left:auto}.story-scene-history button{display:grid;place-items:center;width:36px;height:36px;padding:0;border:0;border-radius:50%;background:var(--ui-surface);color:var(--ui-text)}.story-create-dialog.story-editor{--ui-bg:#eef2f7;--ui-surface:#fff;--ui-text:#24364a;--ui-muted:#617287;--ui-border:#00000014;--ui-hover:#eef1f6;--ui-selected:#dceeff;--ui-accent:#0a84ff;--chosen-input:#eef1f6;position:fixed;inset:var(--story-viewport-top,0) auto auto var(--story-viewport-left,0);margin:0;width:var(--story-viewport-width,100vw);max-width:none;height:var(--story-viewport-height,100dvh);max-height:none;padding:0;border:0;border-radius:0;background:#eef2f7;color:#24364a;color-scheme:light;overflow:hidden;box-shadow:none;font:16px/1.4 -apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;user-select:none;-webkit-user-select:none}.story-create-dialog.story-editor::backdrop{background:#e7edf3ad;backdrop-filter:blur(24px) saturate(1.2)}:is(.story-create-dialog.story-editor[data-theme=dark],[data-theme=dark] .story-create-dialog.story-editor){--ui-bg:#0c0f13;--ui-surface:#1c1c1e;--ui-text:#fff;--ui-muted:#98989d;--ui-border:#ffffff24;--ui-hover:#2c2c2e;--ui-selected:#0a84ff30;--ui-accent:#0a84ff;--chosen-input:#2c2c2e;background:#0c0f13;color:#fff;color-scheme:dark}:is(.story-create-dialog.story-editor[data-theme=dark],[data-theme=dark] .story-create-dialog.story-editor)::backdrop{background:#000c;backdrop-filter:blur(24px) saturate(1.1)}.story-editor *{box-sizing:border-box}.story-editor button:disabled{opacity:.45;cursor:default}.story-editor .story-editor-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.story-create-dialog.story-editor form{position:relative;display:block;gap:0;width:100%;height:100%}.story-editor .story-editor-preview-panel,.story-editor .story-editor-workspace{position:absolute;inset:0;display:block;width:100%;height:100%;padding:0;overflow:hidden;background:transparent;min-height:0}.story-editor .story-editor-stage{position:absolute;display:grid;place-items:center;isolation:isolate;overflow:hidden;left:var(--story-stage-x,0);top:var(--story-stage-y,5px);width:var(--story-stage-width,100vw);height:var(--story-stage-height,calc(100vw * 16 / 9));max-width:none;max-height:none;aspect-ratio:9/16;border:0;border-radius:12px;box-shadow:none;background:#101012}.story-editor form>.story-editor-topbar{position:absolute;z-index:6;top:calc(var(--story-stage-y,5px) + 10px);left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:space-between;gap:4px;width:min(calc(100vw - 24px),calc(var(--story-stage-width,100vw) - 24px));max-width:560px;box-sizing:border-box;margin:0;padding:0;border:0;background:transparent}.story-editor .story-editor-back,.story-editor .story-editor-publish,.story-editor .story-scene-history button,.story-editor-topbar button{display:grid;place-items:center;flex:none;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:1px solid rgba(255,255,255,.18);border-radius:50%;background:rgba(0,0,0,.4);color:#fff;backdrop-filter:blur(20px) saturate(1.8);box-shadow:inset 0 1px 1px rgba(255,255,255,.25),0 4px 16px rgba(0,0,0,.25)}.story-editor .story-editor-preview-heading{position:absolute;z-index:5;top:calc(var(--story-stage-y,5px) + 62px);left:calc(var(--story-stage-x,0px) + var(--story-stage-width,100vw) - 132px);width:auto;padding:0}.story-editor .story-scene-history{gap:4px;margin:0}.story-editor .story-scene-history button{width:36px;height:36px;min-width:36px;min-height:36px}.story-editor .story-editor-bottom{display:contents;padding:0;border:0;background:transparent}.story-editor-footer{position:absolute;z-index:6;top:var(--story-controls-y,calc(100dvh - 62px));left:var(--story-side-inset,16px);right:var(--story-side-inset,16px);justify-content:space-between}.story-editor-footer,.story-main-tools{display:flex;align-items:center;height:44px}.story-main-tools{gap:10px;width:max-content;padding:0;border:1px solid rgba(255,255,255,.18);border-radius:24px;background:rgba(0,0,0,.4);backdrop-filter:blur(20px) saturate(1.8);box-shadow:inset 0 1px 1px rgba(255,255,255,.25),0 4px 16px rgba(0,0,0,.25)}.story-main-tools button{display:grid;place-items:center;flex:none;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border:0;border-radius:50%;color:#fff;background:transparent}.story-editor .story-editor-publish{display:flex;align-items:center;justify-content:center;gap:5px;width:auto;min-width:44px;padding:0 10px;border-radius:24px;background:#0088ff;font:600 16px/1 ui-rounded,SF Pro Rounded,-apple-system,BlinkMacSystemFont,sans-serif}.story-editor-publish span{display:var(--story-publish-label-display,inline)}.story-editor-caption-trigger{position:absolute;z-index:5;left:calc(var(--story-stage-x,0px) + 12px);top:var(--story-caption-y,calc(100dvh - 116px));display:flex;align-items:center;gap:9px;width:calc(var(--story-stage-width,100vw) - 24px);min-height:46px;padding:11px 14px;border:1px solid rgba(255,255,255,.18);border-radius:24px;background:rgba(0,0,0,.4);color:#fff;backdrop-filter:blur(20px) saturate(1.8);box-shadow:inset 0 1px 1px rgba(255,255,255,.25),0 4px 16px rgba(0,0,0,.25);text-align:left;font:inherit}.story-editor-caption-trigger svg{flex:none}.story-editor-caption-trigger span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.story-editor[data-tool-open=true] :is(.story-editor-footer,.story-editor-topbar,.story-editor-preview-heading){display:none}.story-editor .story-editor-tool{position:absolute;z-index:8;bottom:0;left:50%;transform:translateX(-50%);box-sizing:border-box;width:min(560px,100%);max-height:48%;margin:0;padding:0 16px max(16px,env(safe-area-inset-bottom));overflow:auto;overscroll-behavior:contain;border-radius:22px 22px 0 0;background:#1c1c1ef2;color:#fff;box-shadow:0 -8px 40px #0004;backdrop-filter:blur(24px);outline:none}.story-editor .story-editor-tool>header{position:sticky;z-index:2;top:0;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:58px;margin:0 -16px 12px;padding:0 16px;background:#1c1c1ef5;border:0;font-size:15px}.story-editor .story-editor-tool>header strong{min-width:0;flex:1;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.story-editor .story-editor-tool>header button{display:block;flex:none;width:auto;min-width:44px;height:44px;padding:0 4px;border:0;border-radius:10px;background:transparent;color:#0a84ff;font:inherit}.story-editor .story-editor-tool>header button:last-child{font-weight:650}.story-editor[data-tool=stickers] .story-editor-tool{max-height:70%}.story-editor .story-editor-tool :is(input,textarea){user-select:text;-webkit-user-select:text}.story-editor .story-editor-empty{background:linear-gradient(150deg,#1c1c1e,#101012);color:#98989d;padding:96px 24px}.story-editor .story-editor-empty strong{color:#fff;font-size:18px}.story-editor .story-editor-empty>svg{color:#fff;background:#ffffff10}.story-editor .story-editor-empty small,.story-editor .story-editor-empty span{font-size:13px}.story-editor .story-drafts{position:absolute;z-index:7;bottom:80px;left:50%;transform:translateX(-50%);box-sizing:border-box;width:min(560px,calc(100% - 32px));max-height:38%;margin:0;padding:16px;overflow:auto;border:0;border-radius:20px;background:#1c1c1ef2;backdrop-filter:blur(24px)}.story-editor .story-drafts-grid{display:flex;gap:12px;overflow-x:auto;padding:0 0 5px}.story-editor .story-drafts-grid>article{flex:0 0 100px}.story-editor-status{position:absolute;z-index:10;bottom:calc(var(--story-viewport-height,100dvh) - var(--story-caption-y,0px) + 8px);left:50%;transform:translateX(-50%);display:grid;gap:6px;max-height:30%;overflow:auto;width:min(500px,calc(100% - 32px));pointer-events:none}.story-editor-status>*{pointer-events:auto}.story-editor .story-editor-status :is(p,.story-editor-attachment,.story-upload-progress){box-sizing:border-box;margin:0;padding:10px 14px;border:0;border-radius:14px;background:#1c1c1ef0;color:#fff;font-size:13px;backdrop-filter:blur(24px)}.story-editor .story-editor-status .story-error{color:#ffb4ad}.story-editor[data-tool-open=true] .story-editor-status{bottom:calc(var(--story-panel-height,48%) + 8px)}.story-editor button:focus-visible{outline:2px solid #64b5ff;outline-offset:3px}.story-editor .story-editor-tool button{cursor:pointer}@media(hover:hover){.story-editor :is(.story-main-tools button,.story-editor-topbar button,.story-editor-back,.story-editor-tool>header button):enabled:hover{background:#ffffff24}.story-editor .story-editor-publish:enabled:hover{background:#239aff}}@media(max-width:360px){.story-editor .story-editor-publish{width:44px;padding:0}.story-editor-publish span{display:none}}@media(prefers-reduced-motion:no-preference){.story-editor .story-editor-tool{animation:story-tool-enter .25s cubic-bezier(.2,.8,.2,1)}@keyframes story-tool-enter{0%{opacity:0;translate:0 28px}to{opacity:1;translate:0 0}}}:is([data-theme=light] .story-create-dialog.story-editor,.story-create-dialog.story-editor[data-theme=light]){--ui-bg:#eef2f7;--ui-surface:#fff;--ui-text:#24364a;--ui-muted:#617287;--ui-border:#00000014;--ui-hover:#eef1f6;--ui-selected:#dceeff;--ui-accent:#0a84ff;--chosen-input:#eef1f6;background:#eef2f7;color:#24364a;color-scheme:light}:is([data-theme=light] .story-create-dialog.story-editor,.story-create-dialog.story-editor[data-theme=light])::backdrop{background:#e7edf3ad;backdrop-filter:blur(24px) saturate(1.2)}:is([data-theme=light] .story-editor,.story-editor[data-theme=light]) .story-editor-stage{background:#dde3ea;box-shadow:0 10px 40px #20395614}:is([data-theme=light] .story-editor .story-editor-back,.story-editor[data-theme=light] .story-editor-back),:is([data-theme=light] .story-editor .story-editor-scene-history button,.story-editor[data-theme=light] .story-editor-scene-history button),:is([data-theme=light] .story-editor .story-scene-history button,.story-editor[data-theme=light] .story-scene-history button),:is([data-theme=light] .story-editor-topbar button,.story-editor[data-theme=light] .story-editor-topbar button){border-color:transparent;background:#ffffff;color:#000;backdrop-filter:none;box-shadow:0 2px 14px rgba(0,0,0,.08),0 0 1px rgba(0,0,0,.06)}:is([data-theme=light] .story-main-tools,.story-editor[data-theme=light] .story-main-tools){border-color:transparent;background:#ffffff;backdrop-filter:none;box-shadow:0 2px 14px rgba(0,0,0,.08),0 0 1px rgba(0,0,0,.06)}:is([data-theme=light] .story-main-tools button,.story-editor[data-theme=light] .story-main-tools button){color:#000}:is([data-theme=light] .story-editor,.story-editor[data-theme=light]) :is(.story-editor-back,.story-editor-caption-trigger) svg,:is([data-theme=light] .story-editor,.story-editor[data-theme=light]) :is(.story-editor-topbar,.story-main-tools,.story-scene-history) button svg{stroke-width:1.6}:is([data-theme=light] .story-editor-caption-trigger,.story-editor[data-theme=light] .story-editor-caption-trigger){border-color:transparent;background:#ffffff;color:#000;backdrop-filter:none;box-shadow:0 2px 14px rgba(0,0,0,.08),0 0 1px rgba(0,0,0,.06)}@media(hover:hover){:is([data-theme=light] .story-editor,.story-editor[data-theme=light]) :is(.story-main-tools button,.story-editor-topbar button,.story-editor-back,.story-scene-history button):enabled:hover{background:var(--ui-hover)}:is([data-theme=light] .story-editor-caption-trigger,.story-editor[data-theme=light] .story-editor-caption-trigger):hover{background:var(--ui-hover)}}:is([data-theme=light] .story-editor,.story-editor[data-theme=light]) .story-editor-tool{background:#ffffffeb;color:#24364a;box-shadow:0 -8px 40px #2039561a}:is([data-theme=light] .story-editor,.story-editor[data-theme=light]) .story-editor-tool>header{background:#ffffffee}:is([data-theme=light] .story-editor,.story-editor[data-theme=light]) .story-editor-tool>header button{color:#0a84ff}:is([data-theme=light] .story-editor,.story-editor[data-theme=light]) .story-editor-empty{background:linear-gradient(150deg,#eef2f7,#e2e8ef);color:#617287}:is([data-theme=light] .story-editor,.story-editor[data-theme=light]) .story-editor-empty strong{color:#24364a}:is([data-theme=light] .story-editor,.story-editor[data-theme=light]) .story-editor-empty>svg{color:#24364a;background:#00000010}:is([data-theme=light] .story-editor,.story-editor[data-theme=light]) .story-drafts{background:#ffffffeb}:is([data-theme=light] .story-editor,.story-editor[data-theme=light]) .story-editor-status :is(p,.story-editor-attachment,.story-upload-progress){background:#ffffffeb;color:#24364a}:is([data-theme=light] .story-editor,.story-editor[data-theme=light]) .story-editor-status .story-error{color:#d8362b}:is([data-theme=light] .story-editor,.story-editor[data-theme=light]) button:focus-visible{outline-color:#0a84ff}@media(hover:hover){:is([data-theme=light] .story-editor,.story-editor[data-theme=light]) .story-editor-tool>header button:enabled:hover{background:#00000012}}.story-editor .story-link-title{display:grid;gap:8px;font-size:13px;color:var(--ui-muted)}.story-editor .story-link-style-options{display:flex;flex-wrap:wrap;gap:8px}.story-editor .story-link-remove,.story-editor .story-link-style-options button{min-height:40px;padding:8px 12px;border:0;border-radius:12px;background:var(--ui-hover);color:var(--ui-text);font-size:13px}.story-editor .story-link-style-options button[aria-pressed=true]{background:var(--ui-selected);color:var(--ui-accent)}.story-editor .story-link-remove{color:#ff6961}.story-editor .story-location-tools{display:grid;gap:12px}.story-editor .story-location-choose,.story-editor .story-sticker-location{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:44px;padding:10px 12px;border:0;border-radius:12px;background:var(--ui-hover);color:var(--ui-text);font-size:14px}.story-editor .story-location-coordinates{color:var(--ui-muted);font-size:12px;font-variant-numeric:tabular-nums}.story-editor .story-location-tools .story-link-remove,.story-editor .story-location-tools .story-link-style-options button{display:flex;align-items:center;justify-content:center;gap:6px}