/* All CSS is inside the actual Meme Craft editor. No global theme changes. */
#memecraft-app-container.mma-standalone-loaded #mc_anim_toggle,
#memecraft-app-container.mma-standalone-loaded #mc_anim_panel,
#memecraft-app-container.mma-standalone-loaded #mc_mobile_anim{display:none!important;}
#memecraft-app-container .mma-wrap{max-width:100%;min-width:0;margin:14px 0;color:var(--mc-text,#eee);font:inherit}
#memecraft-app-container .mma-wrap *,#memecraft-app-container .mma-wrap *:before,#memecraft-app-container .mma-wrap *:after{box-sizing:border-box}
#memecraft-app-container .mma-toggle{display:flex;align-items:center;gap:10px;width:100%;min-height:50px;text-align:left;padding:12px 14px;background:var(--mc-surface,#242434);color:var(--mc-text,#eee);border:1px solid var(--mc-border,#555);border-radius:13px;font:inherit;font-weight:800;cursor:pointer}
#memecraft-app-container .mma-toggle:hover,#memecraft-app-container .mma-open .mma-toggle{border-color:var(--mc-accent,#a855f7)}
#memecraft-app-container .mma-toggle-icon{width:33px;height:33px;display:grid;place-items:center;border-radius:10px;background:var(--mc-accent,#a855f7);color:var(--mc-on-accent,#101010);font-size:21px}
#memecraft-app-container .mma-toggle-title{display:flex;flex-direction:column;flex:1;gap:1px}
#memecraft-app-container .mma-toggle small{font-size:12px;font-weight:500;color:var(--mc-muted,#aaa)}
#memecraft-app-container .mma-content{background:var(--mc-surface,#292936);border:1px solid var(--mc-border,#555);border-radius:13px;padding:14px;margin-top:9px}
#memecraft-app-container .mma-content[hidden]{display:none!important}
#memecraft-app-container .mma-top,#memecraft-app-container .mma-group-head,#memecraft-app-container .mma-timing{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin-bottom:11px}
#memecraft-app-container .mma-top strong{font-size:14px}
#memecraft-app-container .mma-selected,#memecraft-app-container .mma-recipe-heading span{font-size:12px;color:var(--mc-muted,#aaa)}
#memecraft-app-container .mma-group-head{font-size:12px;font-weight:700}
#memecraft-app-container .mma-content select,#memecraft-app-container .mma-content input[type=number]{min-height:35px;background:var(--mc-bg,#191922);color:var(--mc-text,#eee);border:1px solid var(--mc-border,#555);border-radius:8px;padding:6px;font:inherit;font-size:13px}
#memecraft-app-container .mma-presets{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
#memecraft-app-container .mma-presets button{min-width:0;min-height:60px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:7px 3px;border:1px solid var(--mc-border,#555);background:transparent;border-radius:10px;color:var(--mc-text,#eee);font:inherit;cursor:pointer}
#memecraft-app-container .mma-presets button>span{font-size:24px;line-height:1}
#memecraft-app-container .mma-presets button>small{font-size:11px;font-weight:650;line-height:1.15;text-align:center}
#memecraft-app-container .mma-presets button:hover,#memecraft-app-container .mma-presets button.mma-selected-effect{border-color:var(--mc-accent,#a855f7);background:color-mix(in srgb,var(--mc-accent,#a855f7) 15%,transparent)}
#memecraft-app-container .mma-presets button.mma-selected-effect{outline:1px solid var(--mc-accent,#a855f7)}
#memecraft-app-container .mma-presets button[hidden]{display:none}
#memecraft-app-container .mma-presets button:disabled{opacity:.35;cursor:not-allowed}
#memecraft-app-container .mma-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}
#memecraft-app-container .mma-fields label{display:flex;align-items:flex-start;flex-direction:column;gap:5px;font-weight:650;font-size:12px;min-width:0}
#memecraft-app-container .mma-inline{display:flex;gap:5px;align-items:center;max-width:100%}
#memecraft-app-container #mma-delay{max-width:100px;width:100%}
#memecraft-app-container .mma-fields select{width:100%}
/* The native Meme Craft/theme checkbox is visually suppressed by some theme CSS.
   Use an always-visible custom box while keeping a real, keyboard-accessible input. */
#memecraft-app-container .mma-fields label.mma-check{position:relative;display:flex!important;flex-direction:row!important;align-items:center!important;gap:10px!important;justify-content:flex-start!important;align-self:end;width:100%;min-height:46px;cursor:pointer!important;margin:0!important;text-align:left!important}
#memecraft-app-container .mma-fields label.mma-check #mma-repeat{position:absolute!important;left:0!important;top:50%!important;width:22px!important;height:22px!important;opacity:0!important;margin:-11px 0 0!important;z-index:1!important;cursor:pointer!important}
#memecraft-app-container .mma-fields label.mma-check .mma-checkbox-indicator{display:inline-flex!important;flex:0 0 22px!important;align-items:center!important;justify-content:center!important;width:22px!important;height:22px!important;min-width:22px!important;min-height:22px!important;border:2px solid var(--mc-border,#8b90a4)!important;border-radius:6px!important;background:var(--mc-bg,#191922)!important;color:transparent!important;box-shadow:none!important;font-family:Arial,sans-serif!important;font-size:16px!important;font-weight:900!important;line-height:1!important;pointer-events:none}
#memecraft-app-container .mma-fields label.mma-check #mma-repeat:checked + .mma-checkbox-indicator{background:var(--mc-accent,#a855f7)!important;border-color:var(--mc-accent,#a855f7)!important;color:var(--mc-on-accent,#131313)!important}
#memecraft-app-container .mma-fields label.mma-check #mma-repeat:focus-visible + .mma-checkbox-indicator{outline:3px solid var(--mc-accent,#a855f7)!important;outline-offset:3px!important}
#memecraft-app-container .mma-fields label.mma-check #mma-repeat:disabled + .mma-checkbox-indicator{opacity:.55}
#memecraft-app-container .mma-fields label.mma-check .mma-repeat-copy{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:2px!important;min-width:0;line-height:1.3!important;font-weight:700!important;font-size:12px!important;white-space:normal!important}
#memecraft-app-container .mma-fields label.mma-check .mma-repeat-copy small{display:block!important;color:var(--mc-muted,#aaa)!important;font-size:11px!important;font-weight:400!important;line-height:1.25!important;white-space:normal!important}
#memecraft-app-container .mma-fields input[type=range]{max-width:100%;accent-color:var(--mc-accent,#a855f7)}
#memecraft-app-container .mma-fields output{font-size:11px;color:var(--mc-muted,#aaa)}
#memecraft-app-container .mma-divider{height:1px;background:var(--mc-border,#555);opacity:.7;margin:14px 0}
#memecraft-app-container .mma-recipe-heading{display:flex;flex-wrap:wrap;gap:6px;justify-content:space-between;margin-bottom:9px;font-size:13px}
#memecraft-app-container .mma-recipes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
#memecraft-app-container .mma-recipes button{min-width:0;min-height:41px;padding:6px;border:1px solid var(--mc-border,#555);background:transparent;color:var(--mc-text,#eee);border-radius:9px;font-size:12px;cursor:pointer}
#memecraft-app-container .mma-recipes button:hover{border-color:var(--mc-accent,#a855f7)}
#memecraft-app-container .mma-timing{font-size:13px;font-weight:650}
#memecraft-app-container .mma-scrub{display:flex;align-items:center;gap:9px;margin:10px 0 14px}
#memecraft-app-container #mma-timeline{width:100%;min-width:0;accent-color:var(--mc-accent,#a855f7)}
#memecraft-app-container #mma-current{flex-shrink:0;font-size:12px;font-variant-numeric:tabular-nums}
#memecraft-app-container .mma-actions{display:flex;gap:8px;flex-wrap:wrap}
#memecraft-app-container .mma-actions button{padding:10px;border:1px solid var(--mc-border,#555);background:transparent;color:var(--mc-text,#eee);border-radius:10px;min-height:42px;flex:1 1 90px;cursor:pointer;font:inherit;font-size:13px;font-weight:750}
#memecraft-app-container #mma-export{background:var(--mc-accent,#a855f7);color:var(--mc-on-accent,#111);border-color:var(--mc-accent,#a855f7)}
#memecraft-app-container .mma-actions button:disabled{opacity:.45;cursor:wait}
#memecraft-app-container .mma-status{font-size:12px;line-height:1.5;color:var(--mc-muted,#aaa);margin:12px 0 2px}
@media(max-width:767px){#memecraft-app-container .mma-content{padding:11px}#memecraft-app-container .mma-presets{grid-template-columns:repeat(3,minmax(0,1fr))}#memecraft-app-container .mma-recipes{grid-template-columns:1fr 1fr}#memecraft-app-container .mma-recipe-heading span{display:none}#memecraft-app-container .mma-toggle small{display:none}}
@media(prefers-reduced-motion:reduce){#memecraft-app-container .mma-wrap *{scroll-behavior:auto!important;transition-duration:.01ms!important}}
