/**
 * merge.css v5 — All fixes:
 * - Grid: uniform columns, no ugly gaps
 * - Float + button: desktop hidden, mobile shown properly
 * - Mobile: list view like ilovepdf/image-6
 * - Insert position working
 */

/* ── App Shell ── */
body.app-mode { overflow: hidden; height: 100vh; display: flex; flex-direction: column; }
body.app-mode .ft, body.app-mode footer { display: none !important; }
.mo-shell { display: flex; flex-direction: column; flex: 1; height: 0; overflow: hidden; background: #eef1f7; }

/* ── Step Bar ── */
.mo-steps { background: #fff; border-bottom: 1px solid #e8edf5; flex-shrink: 0; }
.mo-steps-inner { display: flex; align-items: center; justify-content: center; height: 46px; gap: 4px; padding: 0 16px; }
.mo-step { display: flex; align-items: center; gap: 7px; padding: 0 10px; position: relative; }
.mo-step + .mo-step::before { content: ''; position: absolute; left: -6px; top: 50%; transform: translateY(-50%); width: 12px; height: 2px; background: #e2e8f0; }
.mo-step.done + .mo-step::before { background: #1E88E5; }
.mo-step-dot { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .25s; }
.mo-step.done .mo-step-dot   { background: #1E88E5; color: #fff; }
.mo-step.active .mo-step-dot { background: #1E88E5; color: #fff; box-shadow: 0 0 0 4px rgba(30,136,229,.18); }
.mo-step.off .mo-step-dot    { background: #f0f4f8; color: #b0bac8; border: 1.5px solid #e2e8f0; }
.mo-step-label { font-size: .75rem; font-weight: 700; }
.mo-step.done .mo-step-label, .mo-step.active .mo-step-label { color: #1E88E5; }
.mo-step.off .mo-step-label { color: #b0bac8; }

/* ── Toolbar ── */
.mo-toolbar { background: #fff; border-bottom: 1px solid #e8edf5; box-shadow: 0 2px 8px rgba(30,60,110,.05); flex-shrink: 0; z-index: 200; }
.mo-toolbar.scrolled { box-shadow: 0 4px 18px rgba(30,60,110,.12); }
.mo-toolbar-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 8px 16px; min-height: 54px; }

.mo-mode-grp { display: flex; align-items: center; background: #f3f5f9; border-radius: 10px; padding: 3px; gap: 2px; flex-shrink: 0; }
.mo-mode-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 8px; border: none; background: transparent; color: #7a8499; font-size: .84rem; font-weight: 600; cursor: pointer; transition: all .18s; white-space: nowrap; }
.mo-mode-btn.active { background: #fff; color: #1E88E5; box-shadow: 0 1px 5px rgba(30,60,110,.12); }
.mo-mode-btn:hover:not(.active) { color: #4a5568; }

.mo-sep { width: 1px; height: 26px; background: #e8edf5; flex-shrink: 0; margin: 0 2px; }

.mo-add-wrap { position: relative; flex-shrink: 0; }
.mo-add-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1.5px solid #e8edf5; border-radius: 9px; background: #fff; color: #3d4a5c; font-size: .84rem; font-weight: 600; cursor: pointer; transition: all .18s; height: 36px; white-space: nowrap; }
.mo-add-btn:hover { border-color: #1E88E5; color: #1E88E5; background: #EEF4FD; }
.mo-add-caret { transition: transform .2s; }
.mo-add-wrap.open .mo-add-caret { transform: rotate(180deg); }
.mo-add-dropdown { position: absolute; top: calc(100% + 8px); left: 0; background: #fff; border: 1px solid #e8edf5; border-radius: 12px; box-shadow: 0 12px 36px rgba(30,60,110,.18); min-width: 210px; overflow: hidden; z-index: 600; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .18s; }
.mo-add-wrap.open .mo-add-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.mo-add-item { display: flex; align-items: center; gap: 10px; padding: 12px 16px; color: #3d4a5c; font-size: .86rem; font-weight: 500; cursor: pointer; transition: background .14s; border: none; background: none; width: 100%; text-align: left; }
.mo-add-item:hover { background: #EEF4FD; color: #1E88E5; }
.mo-add-item + .mo-add-item { border-top: 1px solid #f0f4f8; }
.mo-add-item svg { flex-shrink: 0; color: #8492a6; }
.mo-add-item:hover svg { color: #1E88E5; }

.mo-tool-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1.5px solid #e8edf5; border-radius: 9px; background: #fff; color: #5a6778; cursor: pointer; transition: all .18s; flex-shrink: 0; position: relative; }
.mo-tool-btn:hover { border-color: #1E88E5; color: #1E88E5; background: #EEF4FD; }
.mo-tool-btn.danger:hover { border-color: #ef4444; color: #ef4444; background: #fef2f2; }
.mo-tool-btn[data-tip]:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: #1a202c; color: #fff; font-size: .64rem; font-weight: 600; padding: 3px 7px; border-radius: 5px; white-space: nowrap; pointer-events: none; z-index: 20; }

.mo-startover { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1.5px solid #e8edf5; border-radius: 9px; background: #fff; color: #8492a6; font-size: .82rem; font-weight: 600; text-decoration: none; transition: all .18s; height: 36px; flex-shrink: 0; }
.mo-startover:hover { border-color: #cbd5e0; color: #4a5568; }
.mo-toolbar-spacer { flex: 1; min-width: 6px; }
.mo-finish-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 22px; background: linear-gradient(135deg, #FF7043, #E64A19); color: #fff; border: none; border-radius: 10px; font-size: .88rem; font-weight: 800; cursor: pointer; transition: all .2s; box-shadow: 0 4px 14px rgba(255,112,67,.35); height: 36px; flex-shrink: 0; white-space: nowrap; }
.mo-finish-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(255,112,67,.45); }
.mo-finish-btn:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }

/* ── Workspace ── */
.mo-workspace { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 24px 28px 80px; }
.mo-workspace::-webkit-scrollbar { width: 5px; }
.mo-workspace::-webkit-scrollbar-thumb { background: #d1d9e6; border-radius: 6px; }
.mo-canvas { max-width: 1400px; margin: 0 auto; }
.mo-canvas-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.mo-canvas-head-left { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mo-canvas-title { font-size: 1rem; font-weight: 800; color: #1a202c; margin: 0; }
.mo-canvas-sub { font-size: .78rem; color: #9aa3b2; font-weight: 500; }
.mo-file-badge { display: inline-flex; align-items: center; gap: 5px; background: #EEF4FD; color: #1565C0; border-radius: 8px; padding: 4px 10px; font-size: .72rem; font-weight: 700; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════
   DESKTOP GRID — fixed column widths so rows align
══════════════════════════════════════════════════════ */
.mo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 180px));
  gap: 18px;
  align-items: start;
}

/* Insert wraps: hidden on desktop (grid stays clean), hidden on mobile too */
.mo-insert-wrap {
  display: none;
}

/* Mobile action buttons: hidden on desktop, shown only via mobile media query */
.mo-card-actions-mob {
  display: none;
}

/* ── Card ── */
.mo-card {
  background: #fff;
  border-radius: 12px;
  overflow: visible;
  cursor: grab;
  transition: box-shadow .22s, transform .22s, opacity .18s;
  position: relative;
  user-select: none;
  display: flex;
  flex-direction: column;
  width: 180px;
  box-shadow: 0 2px 8px rgba(30,60,110,.10);
}
.mo-card:hover { box-shadow: 0 8px 28px rgba(30,60,110,.18); transform: translateY(-3px); }
.mo-card.dragging { opacity: .25; transform: scale(.94) rotate(-1deg); cursor: grabbing; }
.mo-card.selected { box-shadow: 0 0 0 3px #1E88E5, 0 8px 20px rgba(30,136,229,.2); }
.mo-card.removing { opacity: 0; transform: scale(.85); pointer-events: none; }

/* Drag placeholder */
.mo-drag-placeholder { width: 180px; height: 248px; border: 2px dashed #1E88E5; border-radius: 12px; background: rgba(30,136,229,.05); animation: moPlaceholderPulse 1s ease-in-out infinite; }
@keyframes moPlaceholderPulse { 0%,100%{border-color:rgba(30,136,229,.3);}50%{border-color:rgba(30,136,229,.9);} }

/* PDF thumbnail preview */
.mo-card-preview {
  position: relative;
  height: 200px;
  background: #f5f5f5;
  border-radius: 11px 11px 0 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
canvas.mo-card-canvas { display: block; width: 100% !important; height: 100% !important; object-fit: contain; }

/* Fallback icon */
.mo-card-icon { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px; position: absolute; inset: 0; }
.mo-card-icon-doc { width: 62px; height: 78px; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; box-shadow: 0 3px 10px rgba(0,0,0,.1); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 10px 8px; position: relative; }
.mo-card-icon-doc::before { content:''; position:absolute; top:0; right:0; width:13px; height:13px; background:#e2e8f0; clip-path:polygon(100% 0,0 0,100% 100%); border-radius:0 7px 0 0; }
.mo-card-icon-tag { font-size:.5rem; font-weight:800; letter-spacing:.04em; color:#fff; padding:2px 6px; border-radius:3px; }
.mo-card-icon-tag.pdf{background:#ef4444;} .mo-card-icon-tag.img{background:#8b5cf6;} .mo-card-icon-tag.blank{background:#94a3b8;} .mo-card-icon-tag.oth{background:#6b7589;}
.mo-card-line { height:3px; background:#e2e8f0; border-radius:2px; }
.mo-card-line.w90{width:42px;} .mo-card-line.w70{width:34px;} .mo-card-line.w80{width:38px;}

/* Loading */
.mo-card-loading { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; background:rgba(245,245,245,.85); z-index:5; }
.mo-card-spin { width:24px; height:24px; border:3px solid #e2e8f0; border-top-color:#1E88E5; border-radius:50%; animation:moSpin .7s linear infinite; }
@keyframes moSpin { to{transform:rotate(360deg);} }

/* Order badge */
.mo-card-num { position:absolute; bottom:7px; left:8px; min-width:22px; height:22px; background:rgba(30,136,229,.9); color:#fff; border-radius:11px; display:flex; align-items:center; justify-content:center; font-size:.6rem; font-weight:800; padding:0 5px; z-index:4; }

/* Rotation badge */
.mo-card-rot { position:absolute; bottom:7px; right:8px; background:rgba(255,112,67,.9); color:#fff; border-radius:5px; padding:2px 5px; font-size:.55rem; font-weight:800; display:none; z-index:4; }
.mo-card[data-rotation]:not([data-rotation="0"]) .mo-card-rot { display:block; }

/* Hover action bar — slides from top */
.mo-card-actions {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 6px;
  background: rgba(15,23,42,.78);
  backdrop-filter: blur(4px);
  border-radius: 10px 10px 0 0;
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity .2s, transform .2s;
  z-index: 10;
  pointer-events: none;
}
.mo-card:hover .mo-card-actions { opacity: 1; transform: translateY(0); pointer-events: auto; }

.mo-pill { display:flex; align-items:center; justify-content:center; width:30px; height:30px; background:rgba(255,255,255,.15); border:1.5px solid rgba(255,255,255,.25); border-radius:8px; color:#fff; cursor:pointer; transition:all .15s; position:relative; flex-shrink:0; }
.mo-pill:hover { background:rgba(255,255,255,.3); transform:scale(1.12); }
.mo-pill.del:hover { background:rgba(239,68,68,.75); border-color:rgba(239,68,68,.5); }
.mo-pill[data-tip]:hover::after { content:attr(data-tip); position:absolute; top:calc(100% + 6px); left:50%; transform:translateX(-50%); background:#1a202c; color:#fff; font-size:.6rem; font-weight:600; padding:3px 7px; border-radius:5px; white-space:nowrap; pointer-events:none; z-index:50; }

/* Card footer */
.mo-card-footer { padding: 9px 11px 10px; border-top: 1px solid #f0f4f8; }
.mo-card-name { font-size: .74rem; font-weight: 600; color: #2d3748; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.mo-card-meta { font-size: .65rem; color: #9aa3b2; margin-top: 2px; display: block; }

/* Blank card */
.mo-card.blank .mo-card-preview { background: repeating-linear-gradient(45deg,#f8f9fb,#f8f9fb 8px,#edf0f7 8px,#edf0f7 16px); }

/* Insert button */
.mo-insert-btn { width:24px; height:24px; border-radius:50%; background:#fff; border:1.5px solid #dce3f0; display:flex; align-items:center; justify-content:center; cursor:pointer; color:#b0bac8; transition:all .18s; box-shadow:0 1px 4px rgba(30,60,110,.08); }
.mo-insert-btn:hover { background:#1E88E5; border-color:#1E88E5; color:#fff; transform:scale(1.2); }
.mo-insert-popup { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%) scale(.9); z-index:400; background:#fff; border:1px solid #e8edf5; border-radius:12px; box-shadow:0 12px 36px rgba(30,60,110,.18); min-width:185px; overflow:hidden; opacity:0; visibility:hidden; transition:all .18s; pointer-events:none; }
.mo-insert-popup.open { opacity:1; visibility:visible; transform:translate(-50%,-50%) scale(1); pointer-events:auto; }
.mo-insert-popup-item { display:flex; align-items:center; gap:10px; padding:11px 14px; font-size:.84rem; font-weight:500; color:#3d4a5c; cursor:pointer; transition:background .14s; border:none; background:none; width:100%; text-align:left; }
.mo-insert-popup-item:hover { background:#EEF4FD; color:#1E88E5; }
.mo-insert-popup-item + .mo-insert-popup-item { border-top:1px solid #f0f4f8; }
.mo-insert-popup-item svg { color:#8492a6; flex-shrink:0; }
.mo-insert-popup-item:hover svg { color:#1E88E5; }

/* ── Float Add — DESKTOP hidden, shown only on mobile ── */
.mo-float-add { display: none; }

/* Float finish — only appears on scroll */
.mo-float-finish { position:fixed; bottom:22px; right:22px; z-index:190; display:flex; align-items:center; gap:8px; padding:13px 24px; background:linear-gradient(135deg,#FF7043,#E64A19); color:#fff; border:none; border-radius:50px; font-size:.88rem; font-weight:800; cursor:pointer; box-shadow:0 8px 28px rgba(255,112,67,.5); transition:all .3s; transform:translateY(80px); opacity:0; pointer-events:none; }
.mo-float-finish.visible { transform:translateY(0); opacity:1; pointer-events:auto; }
.mo-float-finish:hover { transform:translateY(-3px); box-shadow:0 12px 36px rgba(255,112,67,.6); }

/* ── Zoom Modal ── */
.mo-zoom-backdrop { display:none; position:fixed; inset:0; background:rgba(15,23,42,.75); backdrop-filter:blur(8px); z-index:8000; align-items:center; justify-content:center; }
.mo-zoom-backdrop.open { display:flex; }
.mo-zoom-card { background:#fff; border-radius:18px; padding:24px 22px 20px; max-width:360px; width:94%; text-align:center; box-shadow:0 32px 80px rgba(0,0,0,.3); animation:moCardPop .3s cubic-bezier(.34,1.4,.64,1); }
@keyframes moCardPop { from{transform:scale(.85);opacity:0;} to{transform:scale(1);opacity:1;} }
.mo-zoom-preview { width:100%; aspect-ratio:210/297; background:#f5f5f5; border-radius:8px; margin-bottom:14px; overflow:hidden; display:flex; align-items:center; justify-content:center; }
.mo-zoom-preview canvas { width:100% !important; height:100% !important; object-fit:contain; display:block; }
.mo-zoom-name { font-size:.9rem; font-weight:700; color:#1a202c; margin:0 0 4px; word-break:break-word; }
.mo-zoom-meta { font-size:.78rem; color:#9aa3b2; margin:0 0 14px; }
.mo-zoom-close { display:inline-flex; align-items:center; gap:6px; padding:8px 18px; background:#f0f3f8; border:none; border-radius:8px; color:#3d4a5c; font-size:.84rem; font-weight:600; cursor:pointer; }
.mo-zoom-close:hover { background:#e8edf5; }

/* ── Processing Overlay ── */
.mo-overlay { display:none; position:fixed; inset:0; background:rgba(15,23,42,.72); backdrop-filter:blur(12px); z-index:9999; align-items:center; justify-content:center; }
.mo-overlay.visible { display:flex; }
.mo-overlay-card { background:#fff; border-radius:20px; box-shadow:0 32px 80px rgba(0,0,0,.28); padding:40px 36px 32px; max-width:360px; width:92%; display:flex; flex-direction:column; align-items:center; gap:12px; text-align:center; animation:moCardPop .35s; }
.mo-overlay-spinner { width:52px; height:52px; border:4px solid #E3F2FD; border-top-color:#1E88E5; border-radius:50%; animation:moSpin .85s linear infinite; }
.mo-overlay-title { font-size:1.05rem; font-weight:800; color:#1a202c; margin:0; }
.mo-overlay-sub { font-size:.82rem; color:#8492a6; margin:0; }
.mo-overlay-stages { display:flex; flex-direction:column; gap:7px; width:100%; }
.mo-overlay-stage { display:flex; align-items:center; gap:9px; padding:8px 13px; border-radius:9px; background:#f8f9fb; font-size:.82rem; color:#9aa3b2; font-weight:500; transition:all .35s; }
.mo-overlay-stage.active { background:#EEF4FD; color:#1E88E5; font-weight:700; }
.mo-overlay-stage.done { background:#F0FDF4; color:#16a34a; font-weight:700; }
.mo-overlay-dot { width:8px; height:8px; border-radius:50%; background:#d1d9e6; flex-shrink:0; transition:background .35s; }
.mo-overlay-stage.active .mo-overlay-dot { background:#1E88E5; animation:moDotPulse 1s ease-in-out infinite; }
.mo-overlay-stage.done .mo-overlay-dot { background:#22c55e; }
@keyframes moDotPulse { 0%,100%{box-shadow:0 0 0 0 rgba(30,136,229,.5);}50%{box-shadow:0 0 0 5px rgba(30,136,229,0);} }

/* ── Toast ── */
#moToastTray { position:fixed; bottom:28px; left:50%; transform:translateX(-50%); display:flex; flex-direction:column; align-items:center; gap:7px; z-index:9990; pointer-events:none; }
.mo-toast { background:#1a202c; color:#fff; padding:9px 16px; border-radius:9px; font-size:.83rem; font-weight:600; box-shadow:0 6px 20px rgba(0,0,0,.28); display:flex; align-items:center; gap:7px; white-space:nowrap; }
.mo-toast.success{border-left:3px solid #22c55e;} .mo-toast.info{border-left:3px solid #1E88E5;} .mo-toast.warn{border-left:3px solid #f59e0b;}

#moFileList,#moSidebarList{display:none!important;}

/* ══════════════════════════════════════════════════════
   MOBILE (≤ 640px) — List view like image-6
══════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  body.app-mode { overflow: auto; height: auto; }
  .mo-shell { height: auto; overflow: visible; }
  .mo-workspace { flex: none; overflow: visible; padding: 12px 12px 100px; }

  /* Toolbar compact */
  .mo-toolbar-inner { padding: 7px 10px; gap: 5px; min-height: 48px; }
  .mo-sep { display: none; }
  .mo-step-label { display: none; }
  .mo-startover { display: none; }
  .mo-mode-btn { padding: 6px 10px; font-size: .8rem; }
  .mo-finish-btn { padding: 7px 14px; font-size: .82rem; }

  /* GRID → vertical list */
  .mo-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  /* Insert wraps hidden on mobile */
  .mo-insert-wrap { display: none; }

  /* CARD → horizontal list row (like image-6) */
  .mo-card {
    width: 100% !important;
    flex-direction: row;
    border-radius: 10px;
    margin-bottom: 1px;
    box-shadow: none;
    border-bottom: 1px solid #edf0f6;
    transform: none !important;
  }
  .mo-card:hover { box-shadow: none; transform: none; }
  .mo-card:first-child { border-radius: 10px 10px 0 0; }
  .mo-card:last-child { border-radius: 0 0 10px 10px; border-bottom: none; }
  .mo-card.selected { box-shadow: inset 3px 0 0 #1E88E5; }

  /* Preview = square thumbnail on left */
  .mo-card-preview {
    width: 72px;
    height: 72px;
    min-width: 72px;
    flex-shrink: 0;
    border-radius: 8px 0 0 8px;
    overflow: hidden;
  }

  /* Hide hover actions on mobile; show 3 icon buttons on right instead */
  .mo-card-actions { display: none !important; }

  /* Footer = grows to fill row */
  .mo-card-footer {
    flex: 1;
    padding: 10px 10px 10px 12px;
    border-top: none;
    border-left: 1px solid #f0f4f8;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
  }
  .mo-card-name { font-size: .8rem; }
  .mo-card-meta { font-size: .68rem; }

  /* Badge: small, top-left of thumbnail */
  .mo-card-num { width: 18px; height: 18px; min-width: 18px; font-size: .55rem; bottom: auto; top: 4px; left: 4px; }
  .mo-card-rot { display: none !important; }

  /* Mobile inline action buttons inside footer */
  .mo-card-actions-mob {
    display: flex;
    gap: 6px;
    margin-top: 7px;
  }
  .mo-mob-btn {
    display: flex; align-items: center; justify-content: center;
    width: 28px; height: 28px;
    border: 1.5px solid #e8edf5;
    border-radius: 7px;
    background: #f8f9fb;
    color: #7a8499;
    cursor: pointer;
    transition: all .15s;
  }
  .mo-mob-btn:hover { border-color: #1E88E5; color: #1E88E5; background: #EEF4FD; }
  .mo-mob-btn.del:hover { border-color: #ef4444; color: #ef4444; background: #fef2f2; }

  /* Float add button — show on mobile (bottom right above finish) */
  .mo-float-add {
    display: flex;
    position: fixed;
    bottom: 80px;
    right: 16px;
    z-index: 180;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1E88E5, #1565C0);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(30,136,229,.45);
    align-items: center;
    justify-content: center;
  }
  .mo-float-badge { position:absolute; top:-4px; right:-4px; min-width:18px; height:18px; background:#FF7043; color:#fff; border-radius:9px; font-size:.55rem; font-weight:800; display:flex; align-items:center; justify-content:center; padding:0 3px; border:2px solid #fff; }

  /* Fixed finish bar at bottom */
  .mo-float-finish {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    border-radius: 0 !important;
    justify-content: center !important;
    padding: 14px 20px !important;
    font-size: .9rem !important;
    transform: translateY(0) !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 300 !important;
    box-shadow: 0 -4px 20px rgba(255,112,67,.25) !important;
  }

  .mo-drag-placeholder { display: none; }
  .mo-canvas-head { margin-bottom: 12px; }
  .mo-float-finish.visible,
  .mo-float-finish { display: flex !important; }
}

/* Tablet */
@media (min-width: 641px) and (max-width: 960px) {
  .mo-workspace { padding: 16px 16px 80px; }
  .mo-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 160px)); }
  .mo-card { width: 160px; }
  .mo-card-preview { height: 180px; }
  .mo-drag-placeholder { width: 160px; height: 228px; }
  .mo-step-label { display: none; }
}

/* Large desktop */
@media (min-width: 1200px) {
  .mo-workspace { padding: 28px 40px 80px; }
  .mo-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 190px)); }
  .mo-card { width: 190px; }
  .mo-card-preview { height: 210px; }
  .mo-drag-placeholder { width: 190px; height: 268px; }
}
