.mae-wrap{max-width:900px;margin:30px auto;padding:24px;background:#fff;border:1px solid #e5e7eb;border-radius:14px;box-shadow:0 6px 24px rgba(0,0,0,.06);font-family:inherit;color:#1f2937;box-sizing:border-box}
.mae-wrap *{box-sizing:border-box}
.mae-head{text-align:center;margin-bottom:18px}
.mae-title{margin:0 0 6px;font-size:28px;line-height:1.2}
.mae-sub{margin:0;color:#6b7280;font-size:15px}

.mae-drop{border:2px dashed #c7cdd8;border-radius:12px;padding:38px 16px;text-align:center;cursor:pointer;background:#f9fafb;transition:.2s}
.mae-drop:hover,.mae-drop:focus,.mae-drop.mae-over{border-color:#2563eb;background:#eff6ff;outline:none}
.mae-drop-icon{font-size:38px;margin-bottom:6px}
.mae-drop-text{font-size:16px}
.mae-drop-hint{font-size:13px;color:#6b7280;margin-top:4px}

.mae-controls{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-end;margin:18px 0}
.mae-field{display:flex;flex-direction:column;gap:6px;min-width:150px}
.mae-field label{font-size:13px;font-weight:600}
.mae-field select{padding:9px 10px;border:1px solid #d1d5db;border-radius:8px;background:#fff;font-size:14px}
.mae-check{justify-content:flex-end;padding-bottom:9px}
.mae-check label{font-weight:500;display:flex;gap:6px;align-items:center}

.mae-btn{background:#2563eb;color:#fff;border:0;border-radius:8px;padding:11px 20px;font-size:15px;font-weight:600;cursor:pointer;transition:.15s}
.mae-btn:hover{background:#1d4ed8}
.mae-btn:disabled{opacity:.55;cursor:not-allowed}
.mae-btn-alt{background:#059669}
.mae-btn-alt:hover{background:#047857}
.mae-btn-ghost{background:#eef0f4;color:#1f2937}
.mae-btn-ghost:hover{background:#e0e3e9}

.mae-status{margin:6px 0 16px}
.mae-msg{font-size:14px;margin-bottom:6px;color:#374151}
.mae-bar{height:8px;background:#e5e7eb;border-radius:99px;overflow:hidden}
.mae-bar-fill{height:100%;width:0;background:linear-gradient(90deg,#2563eb,#7c3aed);transition:width .2s}

.mae-compare{position:relative;width:100%;max-width:100%;overflow:hidden;border-radius:10px;background:#111;user-select:none;touch-action:pan-y;line-height:0}
.mae-compare img{display:block;width:100%;height:auto}
.mae-after-wrap{position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}
.mae-after-wrap img{position:absolute;top:0;left:0;height:100%;width:auto;max-width:none}
.mae-handle{position:absolute;top:0;bottom:0;left:50%;width:3px;background:#fff;cursor:ew-resize;box-shadow:0 0 6px rgba(0,0,0,.5)}
.mae-handle span{position:absolute;top:50%;left:50%;width:36px;height:36px;margin:-18px 0 0 -18px;background:#fff;border-radius:50%;box-shadow:0 2px 8px rgba(0,0,0,.4)}
.mae-handle span:before{content:"\2194";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:18px;line-height:36px;color:#111}
.mae-tag{position:absolute;top:10px;background:rgba(0,0,0,.65);color:#fff;font-size:12px;padding:4px 9px;border-radius:99px;line-height:1.3}
.mae-tag-l{left:10px}
.mae-tag-r{right:10px}
.mae-info{font-size:13px;color:#6b7280;margin-top:10px;min-height:18px}
.mae-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.mae-credit{text-align:center;font-size:12px;color:#9ca3af;margin:16px 0 0}

@media (max-width:600px){
  .mae-wrap{padding:16px;margin:16px 8px}
  .mae-title{font-size:23px}
  .mae-controls{flex-direction:column;align-items:stretch}
}

/* Background remover */
.mbg-stage{width:100%;border-radius:10px;overflow:hidden;line-height:0;background:#f3f4f6}
.mbg-stage canvas{display:block;width:100%;height:auto}
.mbg-checker{background-color:#fff;background-image:linear-gradient(45deg,#d9dce1 25%,transparent 25%,transparent 75%,#d9dce1 75%),linear-gradient(45deg,#d9dce1 25%,transparent 25%,transparent 75%,#d9dce1 75%);background-size:20px 20px;background-position:0 0,10px 10px}
.mae-field input[type=color]{width:56px;height:38px;padding:2px;border:1px solid #d1d5db;border-radius:8px;background:#fff;cursor:pointer}

/* SEO content */
.mae-seo{max-width:900px;margin:10px auto 40px;padding:0 24px;color:#374151;line-height:1.65}
.mae-seo h2{font-size:24px;margin:24px 0 10px}
.mae-seo h3{font-size:18px;margin:22px 0 8px}
.mae-seo ol,.mae-seo ul{padding-left:22px;margin:0 0 8px}
.mae-faq{border:1px solid #e5e7eb;border-radius:10px;padding:12px 16px;margin:8px 0;background:#fff}
.mae-faq summary{cursor:pointer;font-weight:600}
.mae-faq p{margin:8px 0 0}

/* Batch list */
.mae-batch{display:flex;flex-direction:column;gap:8px;margin-top:8px}
.mae-row{display:flex;align-items:center;gap:12px;padding:8px 10px;border:1px solid #e5e7eb;border-radius:10px;background:#fff}
.mae-row img{width:48px;height:48px;object-fit:cover;border-radius:6px;flex:none}
.mae-row-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}
.mae-row-status{font-size:13px;color:#6b7280;flex:none}
.mae-row-dl{font-size:13px;font-weight:600;color:#2563eb;text-decoration:none;flex:none;cursor:pointer}
.mae-row-active{border-color:#2563eb;background:#eff6ff}
