/* Merge PDF (namespaced .mp-) */
.mp-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-top: 18px; }
.mp-head h2 { margin: 0; font-family: var(--display); font-size: 22px; letter-spacing: -.01em; }
.mp-head .note { margin: 0; }
.mp-head .note svg { color: var(--muted); }
.mp-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.mp-card { display: flex; flex-direction: column; gap: 8px; padding: 10px; border: 1px solid var(--border); border-radius: 14px; background: #FFF; cursor: grab; -webkit-user-select: none; user-select: none; transition: box-shadow .15s, border-color .15s; }
.mp-card.dragging { cursor: grabbing; border: 2px dashed var(--cat); background: var(--cat-tint); opacity: .85; box-shadow: 0 12px 28px rgba(26,26,31,.15); }
.mp-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.mp-pos { min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--ink); color: #FFF; font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.mp-btns { display: flex; gap: 4px; }
.mp-ib { width: 40px; height: 40px; padding: 0; border: 1px solid var(--border); border-radius: 10px; background: #FFF; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.mp-ib:disabled { opacity: .35; cursor: default; }
.mp-grip { cursor: grab; touch-action: none; color: var(--muted); }
.mp-del { color: var(--cat-ink); }
.mp-thumb { display: flex; align-items: center; justify-content: center; height: 170px; padding: 8px; border-radius: 10px; background: var(--soft); }
.mp-thumb canvas { max-height: 100%; width: auto; max-width: 100%; background: #FFF; box-shadow: 0 2px 6px rgba(26,26,31,.12); pointer-events: none; }
.mp-meta strong { display: block; font-size: 14px; overflow-wrap: anywhere; line-height: 1.3; }
.mp-meta span { color: var(--muted); font-size: 13px; }
.mp-move { display: flex; gap: 6px; margin-top: auto; }
.mp-move .mp-ib { flex: 1 1 0; width: auto; }
.mp-add label { height: 100%; min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px; border: 2px dashed var(--field); border-radius: 14px; color: var(--muted); font-weight: 700; text-align: center; cursor: pointer; }
.mp-add label:hover { border-color: var(--cat); color: var(--cat-ink); }
.mp-add small { font-weight: 600; font-size: 13px; }
.mp-opts { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #F0EDE6; }
.mp-opts .actions { margin-top: 0; }
.mp-check { font-size: 15px; }
.mp-check input { width: 20px; height: 20px; }
.mp-badge { display: flex; align-items: center; justify-content: center; background: var(--cat-tint) !important; color: var(--cat-ink); font-family: var(--display); font-weight: 800; font-size: 14px; }
@media (max-width: 480px) {
  .mp-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mp-thumb { height: 130px; }
  .mp-opts .actions, .mp-opts .btn { width: 100%; }
}
