/* Editor controls are a layer over the real composition. */
#modal #toolSheet6 .moments-tabs59{display:flex;gap:8px;margin-bottom:12px}.moments-tabs59 button{flex:1;border:1px solid color-mix(in srgb,var(--accent) 25%,transparent);border-radius:14px;padding:11px;background:transparent;color:inherit}.moments-tabs59 [aria-pressed=true]{background:var(--accent);color:var(--on-accent40,#fff)}
.moment-choice58 time{display:block;font-size:10px;padding:0 10px 12px;opacity:.7}.remove-moment59{display:flex;align-items:center;justify-content:center;gap:8px;padding:12px;margin:12px auto;border:0;background:transparent;color:#a9414d}.remove-moment59 svg{width:20px;height:20px}.pv59-shared-only{min-height:350px;height:min(70vh,700px);position:relative}.pv59-shared-only>.preview38{display:block;width:100%;height:100%}
.frame-window59{display:block;position:relative;width:100%;aspect-ratio:1;overflow:hidden;touch-action:none;background:var(--tp-n200)}.frame-move59{position:absolute;inset:0;transform-origin:center;will-change:transform}.photo-frame58 .frame-move59>img{position:absolute;left:50%;top:50%;max-width:none!important;max-height:none!important;object-fit:fill!important;transform:translate(-50%,-50%);pointer-events:none;user-select:none}
.frame-draft58{width:min(260px,78%)}.frame-zoom59{display:flex;align-items:center;gap:12px;max-width:380px;margin:auto}.frame-zoom59 input{min-width:0;flex:1;accent-color:var(--accent);direction:ltr}.frame-zoom59 button{border:0;background:transparent;color:inherit;font-size:18px;padding:8px}.frame-zoom59 [data-frame-reset59]{font-size:12px}.frame-hint59{display:block;text-align:center;font-size:11px;margin:7px 0 16px;opacity:.7}.photo-frame58[data-frame-style58=stamp]{border:1.8cqw dashed var(--tp-s400);box-shadow:0 .5cqw 2cqw #0003}.photo-frame58[data-frame-style58=arch]{border-radius:45% 45% 3cqw 3cqw}.photo-frame58[data-frame-style58=arch] .frame-window59{border-radius:48% 48% 0 0}.photo-frame58[data-frame-style58=tape]{border-top:6cqw solid var(--tp-s400);transform:rotate(-2deg)}.photo-frame58[data-frame-style58=neon]{background:#151522;color:white;border:1cqw solid #d79dff;box-shadow:0 0 3cqw #a77bff80}.photo-frame58[data-frame-style58=minimal]{padding:1.3cqw;border:.3cqw solid currentColor;box-shadow:none}
.music-choices58{justify-content:flex-start!important}.music59{position:relative;overflow:hidden}.music59 i{display:block;animation:none!important}.music59-equalizer{gap:3px!important}.music59-equalizer i{height:80%!important;width:4px!important;background:currentColor!important;animation:equalizer59 .8s ease-in-out infinite alternate!important;animation-delay:calc(var(--i)*-.13s)!important;transform-origin:bottom}.music59-orbit{border-radius:50%;border:1px solid currentColor}.music59-orbit i{position:absolute;inset:3px;border:2px dotted currentColor;border-radius:50%;width:auto!important;height:auto!important;background:transparent!important;animation:orbit59 6s linear infinite!important}.music59-orbit b{font-size:20px}.music59-cassette{border:1px solid currentColor;border-radius:7px!important}.music59-cassette i{border:2px dashed currentColor;border-radius:50%;width:13px!important;height:13px!important;background:none!important;animation:orbit59 3s linear infinite!important}.music59-notes i{position:relative;background:none!important;height:auto!important;width:auto!important;animation:notes59 1.4s ease-in-out infinite alternate!important}.music59-notes i:nth-child(2){animation-delay:-.5s!important}.music59-pulse i{font-size:28px;width:auto!important;height:auto!important;background:none!important;animation:pulse59 1s ease-in-out infinite!important}
@keyframes equalizer59{from{transform:scaleY(.2)}to{transform:scaleY(1)}}@keyframes orbit59{to{transform:rotate(360deg)}}@keyframes notes59{to{transform:translateY(-5px) rotate(12deg)}}@keyframes pulse59{50%{transform:scale(.7);opacity:.6}}
.swatches59{display:flex;gap:12px;align-items:center;overflow-x:auto;scrollbar-width:none;padding:12px 5px;direction:rtl}.swatches59>button{background:var(--swatch59)!important;min-width:32px;width:32px;height:32px;flex:0 0 32px;border:1px solid #ffffffb5!important;border-radius:50%!important;padding:0!important}.swatches59>button[aria-pressed=true]{outline:2px solid currentColor;outline-offset:3px}.custom-color59{position:relative;display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:50%;background:conic-gradient(red,yellow,lime,cyan,blue,magenta,red);color:white;overflow:hidden}.custom-color59 input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}
#modal .text-work59,#modal .draw-work59{position:absolute;inset:0;pointer-events:none}.text-work59>:not(.canvas-head58),.draw-work59>:not(.canvas-head58){pointer-events:auto}.text-work59 .canvas-head58,.draw-work59 .canvas-head58{pointer-events:auto;z-index:5}
#modal .text-input59{position:absolute;top:21%;left:9%;width:76%;height:28%;max-height:260px;resize:none;padding:12px;border:0!important;border-radius:12px;outline:0!important;box-shadow:none;text-align:center;line-height:1.4;overflow-y:auto;color:#fff;background:transparent;text-shadow:0 1px 6px #0005}
.vertical-slider59{position:absolute;right:16px;top:25%;height:210px;width:30px;display:grid;place-items:center;z-index:4}.vertical-slider59 input{writing-mode:vertical-lr;direction:rtl;appearance:auto;width:4px;height:100%;accent-color:white;margin:0;padding:0}
#modal .text-bottom59{position:absolute;left:18px;right:18px;bottom:calc(var(--keyboard59,0px) + max(18px,env(safe-area-inset-bottom)));transition:bottom .12s ease-out;z-index:5}.text-bottom59 .swatches59{padding-bottom:16px}.text-controls59{display:flex;align-items:center;justify-content:center;gap:15px;width:max-content;max-width:100%;margin:auto;padding:10px 14px;border-radius:20px;background:#24252be8;box-shadow:0 5px 30px #0002}.text-controls59 button,.text-controls59 select{background:transparent!important;color:white!important;border:0!important;padding:5px;font-size:21px;min-width:28px}.text-controls59 select{font-size:13px;max-width:100px}.text-controls59 select option{background:#222;color:white}.text-controls59 [aria-pressed=true]{background:#ffffff26!important;border-radius:8px}
.drawing-canvas59{position:fixed;z-index:1;touch-action:none}.draw-pens59{position:absolute;top:85px;left:16px;right:16px;display:flex;align-items:center;justify-content:center;gap:7px;z-index:4}.draw-pens59 button{display:grid;place-items:center;width:36px;height:36px;padding:0;border-radius:50%;border:1px solid #fff9!important;background:#0003;color:white;font-size:23px}.draw-pens59 [aria-pressed=true]{background:white!important;color:#222!important}.draw-colors59{position:absolute;bottom:max(20px,env(safe-area-inset-bottom));left:16px;right:16px;z-index:4}.draw-work59 .vertical-slider59{top:32%}.background-clear59{display:block;border:1px solid var(--accent);padding:10px;border-radius:14px;background:transparent;color:inherit;margin:12px 0}
#modal #toolSheet6.sticker-sheet59{background:#222329!important;color:white!important;max-height:78dvh!important}.sticker-search59 input{background:#3c3d44!important;border:0!important;color:white!important;border-radius:18px!important;font-size:17px;padding:15px!important}.sticker-chips59{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:14px 9px;padding:16px 0 24px}.sticker-chips59 button{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:#fff!important;color:#202126!important;border:0!important;border-radius:14px!important;padding:8px 12px!important;font-size:19px;line-height:1.5;min-height:45px;box-shadow:0 2px 0 #0002;transform:rotate(-1deg)}.sticker-chips59 button:nth-child(3n){transform:rotate(1.5deg)}.sticker-chips59 button span{color:var(--sticker-color59);font-size:23px;font-weight:700}.sticker-chips59 [data-sticker59=gif] span{font-size:14px}.sticker-chips59 [hidden]{display:none!important}
.camera-work59{position:absolute;inset:0;background:#08090b;color:white}.camera-work59>video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.camera-head59{position:absolute;top:max(24px,env(safe-area-inset-top));left:20px;right:20px;display:flex;justify-content:space-between;align-items:center;z-index:3}.camera-head59 button,.camera-bottom59>button:not(.camera-shutter59){display:grid;place-items:center;color:white!important;background:#0002!important;border:0!important;padding:8px;border-radius:50%;width:44px;height:44px;font-size:32px}.camera-head59 svg,.camera-bottom59 svg{width:28px;height:28px}.camera-bottom59{position:absolute;bottom:max(26px,env(safe-area-inset-bottom));left:20px;right:20px;display:grid;grid-template-columns:1fr 110px 1fr;gap:20px;align-items:center;justify-items:center;z-index:3}.camera-bottom59 small{grid-column:1/-1;font-size:12px;text-shadow:0 1px 5px black}.camera-shutter59{position:relative;display:grid;place-items:center;width:100px;height:100px;background:transparent!important;border:0!important;padding:0!important;touch-action:none;user-select:none}.camera-shutter59>svg{position:absolute;inset:0;width:100%;height:100%;transform:rotate(-90deg)}.camera-shutter59 circle{fill:none;stroke:white;stroke-width:3}.camera-shutter59 .capture-progress59{stroke:var(--accent,#d9b5ff);stroke-width:5;stroke-dasharray:100;stroke-dashoffset:100}.camera-shutter59>span{display:block;width:78px;height:78px;border-radius:50%;background:#fff;transition:transform .16s,border-radius .16s,background .16s}.camera-shutter59.recording59>span{transform:scale(.58);border-radius:16px;background:#f35c66}.camera-shutter59:disabled{opacity:.4}.camera-time59{position:absolute;top:95px;left:0;right:0;text-align:center;font-size:15px;font-variant-numeric:tabular-nums}.camera-status59{position:absolute;left:25px;right:25px;bottom:210px;text-align:center;line-height:1.8;background:#0005;border-radius:15px;padding:10px}.camera-status59:empty{display:none}.camera-settings59{position:absolute;top:85px;left:20px;right:20px;background:#252630ed;border-radius:18px;padding:18px;z-index:5}.camera-settings59 label{display:flex;gap:15px;align-items:center;margin:8px 0}.camera-settings59 select{background:#444;color:white}.camera-grid59{position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,transparent 33%,#fff6 33%,#fff6 33.2%,transparent 33.2%,transparent 66%,#fff6 66%,#fff6 66.2%,transparent 66.2%),linear-gradient(transparent 33%,#fff6 33%,#fff6 33.2%,transparent 33.2%,transparent 66%,#fff6 66%,#fff6 66.2%,transparent 66.2%)}
#storyTouch{contain:layout style}.story-canvas-v5 .frame-move59{will-change:auto}.story-canvas-v5 .scene-layer6{backface-visibility:hidden}.story-paused .music59 *,.story-outgoing53 .music59 *{animation-play-state:paused!important}
@media(max-width:360px){.draw-pens59{gap:4px;left:8px;right:8px}.draw-pens59 button{width:32px;height:32px;font-size:20px}.text-controls59{gap:9px}.vertical-slider59{right:10px}.sticker-chips59 button{font-size:16px}}
@media(prefers-reduced-motion:reduce){.music59 *{animation:none!important}.text-bottom59,.camera-shutter59>span{transition:none!important}}

.emoji-grid59{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}.emoji-grid59 button{border:0;background:transparent;font-size:27px;padding:6px}
body:has(#modal.story-fullscreen[open]) #main{visibility:hidden}body:has(#modal.story-fullscreen[open]) #main *{animation-play-state:paused!important}
