/* GIF gallery follows the studio's white / plum layout. */
.motion-view-tabs{display:flex;gap:4px;padding:0 0 14px;margin-bottom:14px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.motion-view-tabs button,.motion-categories button{padding:8px 12px;border:1px solid transparent;border-radius:4px;background:transparent;color:var(--muted);font-size:12px;box-shadow:none}
.motion-view-tabs button.active{background:#f5edf7;border-color:#d5c5db;color:var(--green);font-weight:700}
.motion-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}
.motion-heading h2{font-size:17px;margin:0;line-height:1.4;letter-spacing:0}
.motion-heading button{font-size:11px;padding:7px 10px;white-space:nowrap}
.motion-categories{display:flex;gap:3px;flex-wrap:wrap;margin:0 0 12px}
.motion-categories button{border-color:var(--line);background:#fff}
.motion-categories button.active{background:var(--green);border-color:var(--green);color:#fff}
.motion-help,.motion-foot,.motion-empty,.motion-limits{color:var(--muted);font-size:11px;line-height:1.7;margin:0 0 16px}
.motion-foot{padding-top:16px;border-top:1px solid var(--line);margin:17px 0 0}
.motion-empty:empty{display:none}.motion-empty:not(:empty){background:#f7f3f8;border:1px solid var(--line);padding:12px;border-radius:4px}
.motion-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.motion-card{position:relative;display:block;overflow:hidden;border:1px solid var(--line);border-radius:5px;cursor:pointer;background:#fff;min-width:0}
.motion-card:has(input:checked){border-color:#9e7eaa;box-shadow:0 0 0 1px #9e7eaa}
.motion-card:focus-within{outline:2px solid var(--green);outline-offset:3px}
.motion-card input{position:absolute;z-index:1;left:9px;top:9px;width:14px!important;height:14px;min-height:0;margin:0;accent-color:var(--green)}
.motion-card-stage{height:145px;display:grid;place-items:center;background:repeating-conic-gradient(#f0edf2 0% 25%,#fff 0% 50%) 50%/16px 16px;overflow:hidden}
.motion-card-stage canvas{display:block;width:128px;height:128px;max-width:100%}
.motion-caption{padding:11px 10px}.motion-caption strong{display:block;font-size:12px;font-weight:650}.motion-caption span{display:block;font-size:10px;line-height:1.6;margin-top:4px;color:var(--muted)}
.motion-settings{margin-bottom:18px}.motion-setting-title{font-size:14px;margin:0 0 14px}.motion-preview{height:145px;display:grid;place-items:center;background:repeating-conic-gradient(#f0edf2 0% 25%,#fff 0% 50%) 50%/16px 16px;border:1px solid var(--line);border-radius:4px;overflow:hidden}
.motion-preview canvas{width:128px;height:128px}.motion-preview-label{font-size:11px;color:var(--muted);text-align:center;margin:7px 0}
.motion-reaction{display:flex;align-items:center;justify-content:center;gap:5px;width:60px;height:32px;margin:8px auto 15px;border:1px solid #bdcbe4;border-radius:14px;background:#f1f5fc;color:#65758f;font-size:11px}.motion-reaction canvas{width:22px;height:22px}
.motion-field{margin-top:17px}.motion-field label{display:flex;justify-content:space-between;align-items:center;gap:5px;font-size:12px;margin-bottom:7px}.motion-field input[type=range]{width:100%;accent-color:var(--green)}.motion-field input[type=text]{width:100%;box-sizing:border-box}.motion-colors{display:flex;align-items:center;gap:8px}.motion-colors input[type=color]{width:38px;height:32px;padding:2px;border:1px solid var(--line);border-radius:4px;background:#fff}.motion-colors button{background:var(--swatch);border:1px solid #bdb7c0;width:24px;height:24px;min-height:0;border-radius:50%;padding:0}.motion-summary{margin-top:18px;padding:12px;background:#f7f1f9;color:var(--green);font-size:13px;font-weight:650;border-radius:4px;overflow-wrap:anywhere}.motion-save,.motion-save-one,.motion-cancel{width:100%;margin-top:10px!important}.motion-status{font-size:11px;line-height:1.7;white-space:pre-line;overflow-wrap:anywhere;margin:12px 0;color:var(--green)}.motion-status:empty{display:none}.motion-limits{margin:12px 0 0}.motion-settings select{width:100%}.motion-gallery[hidden],.motion-settings[hidden],.motion-cancel[hidden]{display:none!important}
.layout.motion-active .middle>.card:not(.motion-gallery),.layout.motion-active .middle>.note,.layout.motion-active .right>section:not(.motion-settings){display:none!important}
.batch-layout.motion-active #memberGrid,.batch-layout.motion-active #batchResult,.batch-layout.motion-active .batch-main>.note{display:none!important}
.batch-layout.motion-active .studio-settings>details,.batch-layout.motion-active .studio-settings>#batchOptions,.batch-layout.motion-active .studio-settings>#makeZip,.batch-layout.motion-active .studio-settings>.divider{display:none!important}
.batch-main>.motion-gallery{padding:0;border:0;box-shadow:none}.motion-view-tabs button:disabled,.motion-card:has(input:disabled){cursor:default;opacity:.65}
@media(max-width:1100px){.motion-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.motion-grid{gap:9px}.motion-heading{align-items:flex-start}.motion-heading h2{font-size:15px}.motion-gallery{padding:15px}.motion-card-stage{height:132px}.motion-caption{padding:10px 8px}.motion-card-stage canvas{width:120px;height:120px}.motion-view-tabs button{padding:8px 10px}.motion-settings{margin-bottom:0}}

.batch-layout.motion-active .paste-shell{display:none!important}
.motion-selected-list{font-size:11px;line-height:1.7;color:var(--muted);margin:15px 0 -7px;overflow-wrap:anywhere}
.batch-layout.motion-active .studio-settings>#cancelBatch{display:none!important}
