.production-motion{position:relative;display:flex;align-items:center;gap:32px;min-height:192px;margin:24px 0;border:1px solid #e7dbff;border-radius:24px;padding:24px 38px;background:radial-gradient(ellipse at 7% 50%,#e9ddff 0,transparent 45%),linear-gradient(110deg,#faf7ff,#fff);overflow:hidden;box-shadow:0 8px 30px #7555ad09}.motion-scene{position:relative;width:140px;height:140px;flex-shrink:0;display:grid;place-items:center}.motion-scene img{width:66px;height:66px;z-index:2;animation:cat-breathe 3s ease-in-out infinite;filter:drop-shadow(0 8px 12px #9772cf33)}.orbit{position:absolute;inset:12px;border:1px dashed #b598e5;border-radius:50%;animation:orbit-turn 16s linear infinite}.orbit.two{inset:0;border-style:solid;border-color:#d4c2f733;animation-direction:reverse}.floating-sheet{position:absolute;display:grid;place-items:center;width:35px;height:41px;background:#fff;border-radius:9px;box-shadow:0 6px 18px #8460b722;color:#9c75d9;font-size:23px;z-index:3;animation:sheet-float 3s ease-in-out infinite}.sheet-one{top:1px;right:13px;rotate:12deg}.sheet-two{bottom:0;left:10px;rotate:-12deg;animation-delay:-1.5s}.spark{position:absolute;color:#ad83e1;font-size:25px;animation:cat-breathe 2.5s ease-in-out infinite}.s1{top:14px;left:0}.s2{right:0;bottom:14px}.motion-copy{flex:1;min-width:0}.motion-copy>small{color:#a081bf;letter-spacing:2px;font-size:12px}.motion-copy h2{font-size:23px;line-height:1.45;margin:8px 0;color:#574071}.motion-copy p{font-size:14px;color:#8c809a;line-height:1.7;margin:8px 0 18px}.motion-track{height:4px;border-radius:10px;background:#e9def7;max-width:320px;overflow:hidden}.motion-track span{display:block;width:35%;height:100%;border-radius:10px;background:linear-gradient(90deg,#d7b8fb,#9872dc);animation:motion-pass 2.4s ease-in-out infinite}.motion-live{align-self:flex-start;font-size:12px;color:#8964b8;white-space:nowrap;display:flex;gap:7px;align-items:center;background:#fff9;border:1px solid #e8dcfa;border-radius:30px;padding:8px 12px}.motion-live i{width:6px;height:6px;border-radius:50%;background:#a27cde;animation:cat-breathe 1.6s infinite}.is-saving .motion-track span{background:linear-gradient(90deg,#b8dddc,#6dafaa)}
.prompt-heading,.section-inline{display:flex;justify-content:space-between;align-items:center;gap:12px}.prompt-heading .optimize-prompt{display:inline-flex;align-items:center;gap:7px;border:1px solid #d8c4fa;color:#7953b2;background:linear-gradient(110deg,#f2eaff,#fff);border-radius:11px;padding:9px 13px;font-size:13px;cursor:pointer;white-space:nowrap}.optimize-prompt svg{width:18px;height:18px}.prompt-heading+textarea{min-height:240px}.image-optimization{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:13px 15px;border-radius:13px;background:#f5efff;color:#79599b;font-size:13px;margin:12px 0}.image-optimization[hidden]{display:none}.image-optimization .pulse{width:12px;height:12px;box-shadow:0 0 0 6px #a27cde14}.annotation-entry{padding-top:18px}.annotation-entry small{display:block;color:#92869d;line-height:1.6}.annotation-preview{position:relative;width:100%;border:1px solid #e8def4;border-radius:14px;overflow:hidden;padding:0;background:#f7f3fb;cursor:pointer;margin:13px 0 8px}.annotation-preview img{display:block;width:100%;max-height:270px;object-fit:contain}.annotation-preview>span{display:flex;align-items:center;justify-content:center;gap:8px;background:#ffffffed;color:#7c54b3;padding:12px;font-weight:600}.annotation-preview svg{width:20px;height:20px}.layer-options{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:14px 0}.layer-options .field{flex:1;min-width:130px}.check-option{display:flex;align-items:center;gap:7px;font-size:13px;color:#8b7e98}.check-option input{accent-color:#9873d5;width:auto}.image-editor{width:min(1120px,calc(100vw - 100px))}.image-editor h2{margin:4px 0;font-size:24px}.editor-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:18px;padding-right:24px}.editor-heading small{font-size:10px;letter-spacing:3px;color:#aa8cc9}.drawing-tools{display:flex;align-items:center;gap:9px;flex-wrap:wrap;background:#f7f4fb;border-radius:14px;padding:10px;margin:12px 0}.drawing-tools button{border:1px solid #e5dcee;background:white;color:#736281;border-radius:9px;padding:8px 10px;cursor:pointer}.drawing-tools [aria-pressed=true]{background:#e9ddfa;border-color:#b292dc;color:#7550aa}.drawing-tools b{font-size:20px;font-weight:500;display:block;line-height:1.1}.drawing-tools small{font-size:11px}.drawing-tools label{font-size:11px;color:#8a799c;display:flex;flex-direction:column;gap:4px}.drawing-tools input[type=range]{width:80px}.drawing-tools input[type=color]{width:38px;height:32px;border:0;padding:0;background:transparent}.drawing-tools input[type=text]{flex:1;min-width:150px;border:1px solid #e1d7eb;border-radius:9px;padding:10px;background:white}.drawing-surface{background:repeating-conic-gradient(#f6f4f8 0 25%,#eae5ef 0 50%) 0/18px 18px;border-radius:14px;display:flex;justify-content:center;overflow:hidden}.drawing-surface canvas{display:block;max-width:100%;max-height:55vh;width:auto;height:auto;touch-action:none;cursor:crosshair}.layer-workspace{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:20px}.layer-canvas-wrap{min-width:0;align-self:start}.layer-canvas-wrap canvas{display:block;max-width:100%;max-height:63vh;width:auto;height:auto;margin:auto;background:repeating-conic-gradient(#faf9fc 0 25%,#ebe5f0 0 50%) 0/16px 16px;border:1px solid #e6dcee;touch-action:none;cursor:move;border-radius:4px}.layer-sidebar{max-height:66vh;overflow:auto;padding-right:4px}.layer-row{display:flex;border:1px solid #eee6f6;border-radius:9px;margin-bottom:6px;background:white}.layer-row.selected{background:#f2e8ff;border-color:#ba98e6}.layer-row button{display:flex;align-items:center;gap:9px;min-width:0;background:none;border:0;cursor:pointer;padding:7px;color:#6b597d}.layer-row [data-select-layer]{flex:1;text-align:left;font-size:12px}.layer-row img{width:42px;height:42px;object-fit:contain;background:repeating-conic-gradient(#fff 0 25%,#ddd 0 50%) 0/10px 10px;border-radius:5px}.layer-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.layer-controls{margin-top:16px;border-top:1px solid #e9e0f2;padding-top:16px}.layer-controls>b{font-size:13px}.transform-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}.transform-fields label{color:#8b7c97;font-size:11px}.transform-fields input{display:block;width:100%;margin-top:4px;padding:7px;border:1px solid #e6ddef;border-radius:8px;background:#fcfbfe;color:#594769}.layer-downloads{display:grid;gap:8px;margin:14px 0}.layer-controls pre{white-space:pre-wrap;font-size:12px;max-height:150px;overflow:auto}.image-editor .dialog-footer{align-items:center;gap:12px;flex-wrap:wrap}.image-editor .dialog-footer>span{margin-right:auto;font-size:12px;color:#947eaa;cursor:pointer}.image-editor .btn.small{font-size:12px;padding:7px 10px}.layer-entry-action{display:flex;align-items:center;justify-content:space-between;gap:15px;border:1px solid #ddc8f6;background:linear-gradient(100deg,#f6edff,#fff);border-radius:18px;padding:20px;margin-bottom:20px}.layer-entry-action h3{margin:0 0 5px}.layer-entry-action p{margin:0;color:#9b87ad;font-size:13px}.upload-status.active-upload{display:flex;align-items:center;gap:12px;flex-wrap:wrap;background:#f4edff;border:1px solid #e7d8f7;border-radius:12px;padding:12px 15px;margin:10px 0}.upload-status img,.upload-status video{width:64px;height:52px;object-fit:cover;border-radius:7px}.upload-status progress{width:130px;height:7px;accent-color:#a37bdf}.upload-status span{font-size:13px;color:#84629f}.working-media{background:linear-gradient(100deg,#fbf9fe,#f0e8fa,#fbf9fe);background-size:200% 100%;animation:media-shimmer 3s infinite}
@keyframes cat-breathe{0%,100%{transform:translateY(0);opacity:.8}50%{transform:translateY(-6px);opacity:1}}@keyframes orbit-turn{to{transform:rotate(360deg)}}@keyframes sheet-float{0%,100%{transform:translateY(0) rotate(0)}50%{transform:translateY(-9px) rotate(5deg)}}@keyframes motion-pass{0%{transform:translateX(-110%)}100%{transform:translateX(390%)}}@keyframes media-shimmer{to{background-position:-200% 0}}
@media(max-width:760px){.production-motion{padding:20px;gap:15px;min-height:160px}.motion-scene{width:92px;height:108px}.motion-scene img{width:49px;height:49px}.floating-sheet{width:24px;height:29px;font-size:18px}.motion-copy h2{font-size:18px}.motion-copy p{font-size:12px}.motion-live{display:none}.image-editor{width:calc(100vw - 60px)}.layer-workspace{grid-template-columns:1fr}.layer-sidebar{max-height:none}.layer-canvas-wrap canvas{max-height:45vh}.layer-sidebar #layer-list{max-height:200px;overflow:auto}.prompt-heading{align-items:flex-start}.prompt-heading .optimize-prompt{padding:8px;font-size:12px}.editor-heading{align-items:flex-start}.image-editor h2{font-size:20px}.drawing-tools{gap:6px}.drawing-tools button{padding:6px}.image-editor .dialog-footer{justify-content:stretch}.layer-entry-action{flex-wrap:wrap}.layer-entry-action .btn{width:100%}}
@media(prefers-reduced-motion:reduce){.production-motion *,.working-media,.pulse{animation:none!important}.motion-track span{width:100%;opacity:.6}}

#modal:has(.image-editor){width:min(1240px,calc(100vw - 32px));max-width:calc(100vw - 32px)}.image-editor{width:100%;min-width:0}.drawing-tools{box-sizing:border-box}.drawing-tools input[type=text]{max-width:100%}@media(max-width:760px){.image-editor{width:100%}#modal:has(.image-editor){padding:18px}.editor-heading{padding-right:15px}}

.production-motion.is-long-wait{border-color:#d7c0f3;background:radial-gradient(ellipse at 6% 50%,#e6d5ff 0,transparent 48%),#fcfaff}.wait-return{display:inline-flex;align-items:center;gap:18px;color:#7950ad;background:#fff;border:1px solid #d8c4ed;border-radius:12px;padding:10px 16px;text-decoration:none;font-size:14px;font-weight:600}.motion-copy .wait-safe{display:block;margin:10px 0 16px;color:#9b8ba9;letter-spacing:0;font-size:12px}.production-error{display:flex;align-items:center;gap:24px;padding:28px 32px;border:1px solid #efd8df;border-radius:24px;background:linear-gradient(110deg,#fff5f7,#fff);margin:24px 0}.production-error h2{font-size:22px;color:#715263;margin:8px 0}.production-error p{color:#947786;line-height:1.7;margin:8px 0 18px}.production-error small{color:#ad8a9d;font-size:12px}.error-cat{position:relative;padding:15px;flex:none}.error-cat img{width:70px;opacity:.8}.error-cat>span{position:absolute;right:3px;top:7px;border-radius:50%;background:#f0cad9;color:#9c5278;width:24px;height:24px;display:grid;place-items:center;font-weight:700}.retry-caption{display:block;margin-top:10px}.production-error .btn{display:inline-flex;align-items:center;gap:8px}.production-error svg{width:20px;height:20px}@media(max-width:600px){.production-error{align-items:flex-start;padding:22px 18px;gap:10px}.error-cat{padding:4px}.error-cat img{width:42px}.error-cat>span{width:18px;height:18px;right:-4px;top:-5px}.production-error h2{font-size:19px}.production-error p{font-size:13px}.production-motion.is-long-wait{align-items:flex-start}.is-long-wait .motion-scene{width:64px;height:84px}.wait-return{font-size:12px;padding:10px 12px}}

.image-tier{min-width:0;margin:16px 0;padding:0;border:0}.image-tier legend{font-weight:650;margin-bottom:7px}.image-tier>div{display:flex;gap:.45rem;flex-wrap:wrap}.image-tier label{display:inline-flex;align-items:center;gap:.4rem;padding:.42rem .86rem;min-height:36px;border:1px solid #d6d2de;border-radius:9px;background:#fff;cursor:pointer}.image-tier input{margin:0;accent-color:#7253b2;width:1em;height:1em}.image-tier label:has(:checked){background:#f1ebfa;border-color:#8d72ba}.image-tier small{display:block;margin:.4rem 0;color:#5a5367;line-height:1.5}
.mark-work-picker{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(135px,42%),1fr));gap:10px;max-height:55vh;overflow:auto}.mark-work-picker button{border:1px solid #dad3e3;background:#fff;border-radius:10px;padding:4px;min-width:0}.mark-work-picker img{width:100%;height:105px;object-fit:contain}.mark-work-picker small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

@media(min-width:1280px){.function-gallery.function-example-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}}
.annotation-preview img[width]{height:auto}
