/* =====================================================
   pdf-merger.css — PDF Merger Tool Styling
   Mobile-first, premium glassmorphic grid & hold-drag UI
   ===================================================== */

.pm-main {
  padding-top: 0;
  min-height: calc(100vh - 70px - 100px);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--purple-500);
  text-decoration: none;
  margin-bottom: 16px;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

@media (hover: hover) {
  .back-link:hover {
    color: var(--lavender-300);
    transform: translateX(-2px);
  }
}

.back-link svg,
.back-link .icon,
.back-link img {
  width: 16px;
  height: 16px;
}

/* Disabled Controls Styling */
.pm-btn-add-more:disabled,
.pm-btn-clear:disabled,
.pm-btn-process:disabled,
.pm-dropdown-trigger:disabled,
.pm-custom-dropdown.disabled .pm-dropdown-trigger {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  box-shadow: none !important;
  background: var(--bg-tertiary) !important;
  border-color: var(--border) !important;
  color: var(--text-muted) !important;
}

/* ── Embedded Upload Dropzone ────────────────────────── */
.pm-dropzone {
  width: 100%;
  max-width: 600px;
  min-height: 260px;
  margin: 12px auto;
  border: 2px dashed rgba(139, 92, 246, 0.4);
  border-radius: var(--radius-lg);
  cursor: pointer;
  padding: 48px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition-normal), background var(--transition-normal), box-shadow var(--transition-normal);
  background: rgba(139, 92, 246, 0.03);
  box-sizing: border-box;
}

.pm-dropzone:hover,
.pm-dropzone.dragover {
  border-color: var(--purple-500);
  background: rgba(139, 92, 246, 0.08);
  box-shadow: var(--shadow-glow);
}

.pm-dropzone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  pointer-events: none;
}

.pm-upload-illustration {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-500);
  transition: transform var(--transition-normal);
}

.pm-dropzone:hover .pm-upload-illustration {
  transform: scale(1.08) rotate(-3deg);
}

.pdf-icon {
  width: 28px;
  height: 28px;
}

.pm-prompt-main {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.pm-mobile-select-btn {
  display: none;
}

.pm-browse-link {
  color: var(--purple-500);
  text-decoration: underline;
}

.pm-prompt-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ── App Container (Glass Card) ─────────────────────── */
.pm-app-container {
  margin: 20px auto 0;
  width: 100%;
  max-width: 100%;
  min-height: 400px;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-sizing: border-box;
  position: relative;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

/* Disables hover lift/translate effect on workspace container */
.pm-app-container.glass-card:hover,
.pm-app-container:hover {
  transform: none !important;
  box-shadow: var(--shadow-md) !important;
}

.pm-app-container.drag-over {
  border-color: var(--purple-500);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25) !important;
}

/* ── Workspace Header ───────────────────────────────── */
.pm-workspace-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1.5px solid var(--border);
  padding-bottom: 12px;
  gap: 16px;
}

.pm-header-left {
  display: flex;
  align-items: center;
}

.pm-list-title {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.pm-header-center {
  display: flex;
  justify-content: center;
}

.pm-sort-container {
  display: flex;
  align-items: center;
}

/* ── Minimal Dropdown UI ───────────────────────────── */
.pm-custom-dropdown {
  position: relative;
  display: inline-block;
}

.pm-dropdown-trigger {
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  outline: none;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
  min-width: 145px;
  justify-content: space-between;
}

.pm-dropdown-trigger:hover,
.pm-dropdown-trigger:focus-visible,
.pm-custom-dropdown.open .pm-dropdown-trigger {
  border-color: var(--purple-500);
  background: var(--bg-tertiary);
  color: var(--purple-600);
}

.pm-dropdown-label {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pm-dropdown-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.pm-custom-dropdown.open .pm-dropdown-chevron {
  transform: rotate(180deg);
  color: var(--purple-600);
}

/* Minimal Dropdown Menu Overlay */
.pm-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  width: 175px;
  z-index: 1000;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 5px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-sizing: border-box;
}

.pm-custom-dropdown.open .pm-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.pm-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
  user-select: none;
}

.pm-dropdown-item:hover {
  background: rgba(124, 58, 237, 0.08);
  color: var(--purple-600);
}

.pm-dropdown-item.active {
  color: var(--purple-600);
  font-weight: 700;
  background: rgba(139, 92, 246, 0.12);
}

.pm-item-text {
  flex: 1;
  white-space: nowrap;
}

.pm-header-right {
  display: flex;
  justify-content: flex-end;
}

.pm-list-header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.pm-btn-add-more {
  background: rgba(124, 58, 237, 0.08);
  border: 1.5px solid rgba(124, 58, 237, 0.35);
  color: var(--purple-600);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.pm-btn-add-more:hover {
  background: rgba(124, 58, 237, 0.16);
  border-color: var(--purple-500);
  color: var(--purple-600);
}

.pm-btn-add-more .icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.pm-btn-clear {
  background: rgba(239, 68, 68, 0.06);
  border: 1.5px solid rgba(239, 68, 68, 0.25);
  color: #ef4444;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.pm-btn-clear:hover {
  background: rgba(239, 68, 68, 0.14);
  border-color: #ef4444;
}

.pm-btn-clear .icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ── PDF Cards Grid Workspace ────────────────────────── */
.pm-grid-container {
  min-height: 320px;
  max-height: clamp(480px, 60vh, 720px);
  overflow-y: auto;
  padding: 4px 6px 12px 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.pm-grid-container::-webkit-scrollbar {
  width: 6px;
}

.pm-grid-container::-webkit-scrollbar-track {
  background: transparent;
}

.pm-grid-container::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: var(--radius-full);
}

.pm-grid-container::-webkit-scrollbar-thumb:hover {
  background: var(--purple-400);
}

.pm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
  align-content: start;
}

/* ── Individual PDF Card ────────────────────────────── */
.pm-card {
  position: relative;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  touch-action: pan-y;
  cursor: grab;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color 0.18s ease,
              box-shadow 0.18s ease,
              opacity 0.18s ease;
  will-change: transform;
}

.pm-card:active {
  cursor: grabbing;
}

.pm-card:hover {
  border-color: var(--purple-500);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pm-card.is-drag-source {
  opacity: 0;
  pointer-events: none;
}

/* Insertion Slot (Purple Dashed Grid Placeholder) */
.drag-slot {
  border: 2px dashed rgba(139, 92, 246, 0.6);
  border-radius: var(--radius-md);
  background: rgba(139, 92, 246, 0.08);
  box-sizing: border-box;
  flex-shrink: 0;
  min-height: 195px;
}

/* Floating Drag Clone that follows pointer/finger */
.drag-clone-floating {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  border-radius: var(--radius-md);
  border: 2px solid var(--purple-500);
  background: var(--bg-secondary);
  box-shadow: 0 24px 48px rgba(139, 92, 246, 0.4), 0 8px 16px rgba(0, 0, 0, 0.25);
  transform: scale(1.05) rotate(2deg);
  opacity: 0.96;
  box-sizing: border-box;
  overflow: hidden;
}

body.is-dragging-card {
  user-select: none;
  -webkit-user-select: none;
  cursor: grabbing !important;
}

/* ── Card Top Bar ───────────────────────────────────── */
.pm-card-top-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 6px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--border);
}

.pm-card-index {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--purple-600);
  background: rgba(139, 92, 246, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
  min-width: 18px;
  text-align: center;
  line-height: 1.4;
}

.pm-card-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pm-card-btn {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pm-card-btn:hover {
  background: var(--purple-600);
  color: #ffffff;
  border-color: var(--purple-600);
}

.pm-card-btn-danger:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

/* ── Thumbnail Box (Renders miniature PDF document in exact aspect ratio) ─ */
.pm-card-thumb-box {
  width: 100%;
  height: 125px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg-tertiary);
  padding: 4px;
  position: relative;
  box-sizing: border-box;
}

[data-theme="dark"] .pm-card-thumb-box {
  background: rgba(255, 255, 255, 0.04);
}

.pm-card-thumb-sheet {
  max-width: 100%;
  max-height: 100%;
  height: 100%;
  width: auto;
  object-fit: contain;
  border-radius: 3px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease;
  pointer-events: none !important;
  user-select: none !important;
  display: block;
}

.pm-card-thumb-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--text-muted);
  gap: 8px;
}

.pm-card-thumb-placeholder .pdf-icon {
  width: 28px;
  height: 28px;
  color: var(--purple-500);
}

.pm-thumb-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid transparent;
  border-top-color: var(--purple-500);
  border-radius: 50%;
  animation: pm-spin 1s linear infinite;
}

/* ── Card Footer ────────────────────────────────────── */
.pm-card-footer {
  width: 100%;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
  overflow: hidden;
}

.pm-card-pages {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--purple-600);
  background: rgba(139, 92, 246, 0.08);
  padding: 1px 8px;
  border-radius: var(--radius-full);
  text-align: center;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.pm-card-filename {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  text-align: center;
  line-height: 1.3;
}

/* ── Bottom Action Button (Merge PDF Files) ─────────── */
.pm-bottom-action-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 24px auto 0;
  width: 100%;
}

.pm-btn-process {
  background: var(--gradient-primary);
  border: none;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 15px 42px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.22);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  letter-spacing: -0.01em;
}

/* Super Hover Animation & Lite Glow */
.pm-btn-process:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.32);
  filter: brightness(1.05);
}

.pm-btn-process:active:not(:disabled) {
  transform: translateY(0) scale(0.99);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.2);
}

/* Right Arrow Hover Motion */
.pm-btn-arrow-svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pm-btn-process:hover:not(:disabled) .pm-btn-arrow-svg {
  transform: translateX(5px);
}



/* ── Processing Loader ──────────────────────────────── */
.pm-progress-wrap {
  margin: 32px auto 0;
  max-width: 580px;
  padding: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.pm-progress-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.pm-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--purple-500);
  border-radius: 50%;
  animation: pm-spin 1s linear infinite;
}

@keyframes pm-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ── Success Result Panel ───────────────────────────── */
.pm-success-wrap {
  margin: 20px auto 0;
  max-width: 480px;
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-lg);
}

.pm-success-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}

.pm-success-icon-wrapper .icon {
  width: 26px;
  height: 26px;
}

.pm-success-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin: 0;
}

.pm-success-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  max-width: 420px;
  line-height: 1.45;
  margin: 0 0 4px 0;
}

.pm-success-actions-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 380px;
  margin: 4px auto 0;
}

.pm-btn-download {
  width: 100%;
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: 0 6px 22px rgba(124, 58, 237, 0.38);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 28px;
  border-radius: 14px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pm-btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.48);
}

.pm-btn-download .icon {
  width: 20px;
  height: 20px;
}

.pm-secondary-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.pm-btn-back-edit {
  flex: 1;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 11px 18px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.pm-btn-back-edit:hover {
  border-color: var(--purple-500);
  color: var(--purple-600);
  background: var(--bg-tertiary);
  transform: translateY(-1px);
}

.pm-btn-back-edit .icon {
  width: 16px;
  height: 16px;
}

.pm-btn-restart {
  flex: 1;
  background: var(--purple-600);
  border: 1.5px solid var(--purple-600);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 11px 18px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}


.pm-btn-restart .icon {
  width: 16px;
  height: 16px;
}

/* ── Responsive Breakpoints ─────────────────────────── */
@media (max-width: 900px) {
  .pm-workspace-header {
    grid-template-columns: 1fr auto;
    row-gap: 14px;
  }

  .pm-header-center {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
  }

  .pm-sort-container,
  .pm-select-wrapper,
  .pm-sort-select {
    width: 100%;
  }
}

@media (max-width: 768px) {


  .pm-upload-illustration,
  .pm-prompt-main,
  .pm-prompt-sub {
    display: none !important;
  }

  .pm-mobile-select-btn {
    display: inline-flex !important;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    justify-content: center;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 0.95rem;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
    pointer-events: none;
  }

  .pm-dropzone {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 12px 0 !important;
    margin: 4px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 120px !important;
  }

  .pm-app-container {
    padding: 16px 14px;
    margin-top: 16px;
    gap: 14px;
    width: 100%;
    min-height: 280px;
    box-sizing: border-box;
  }

  .pm-workspace-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-bottom: 10px;
  }

  .pm-header-left {
    order: 1;
    width: 100%;
  }

  .pm-header-right {
    order: 2;
    width: 100%;
  }

  .pm-header-center {
    order: 3;
    width: 100%;
    justify-content: stretch;
  }

  .pm-list-header-actions {
    width: 100%;
    display: flex;
    gap: 8px;
  }

  .pm-btn-add-more,
  .pm-btn-clear {
    flex: 1;
    justify-content: center;
    padding: 8px 10px;
    font-size: 0.82rem;
  }

  .pm-custom-dropdown,
  .pm-dropdown-trigger {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .pm-dropdown-menu {
    width: 100%;
    left: 0;
    transform: translateY(-4px);
  }

  .pm-custom-dropdown.open .pm-dropdown-menu {
    transform: translateY(0);
  }

  .pm-btn-process {
    width: 100%;
    max-width: 100%;
    padding: 14px 20px;
  }
}

@media (max-width: 480px) {


  .pm-app-container {
    padding: 12px 10px;
    border-radius: var(--radius-md);
  }

  .pm-grid-container {
    min-height: 240px;
    max-height: 58vh;
    padding: 2px;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .pm-list-title {
    font-size: 1.05rem;
  }

  .pm-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
  }

  .pm-card {
    padding: 6px;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
  }

  .pm-card-thumb-box {
    height: 95px;
    width: 100%;
    overflow: hidden;
  }

  .pm-card-btn {
    width: 24px;
    height: 24px;
  }

  .pm-card-footer {
    width: 100%;
    margin-top: 4px;
    gap: 2px;
    overflow: hidden;
    box-sizing: border-box;
  }

  .pm-card-pages {
    font-size: 0.68rem;
    padding: 1px 4px;
    border-radius: 4px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-sizing: border-box;
  }

  .pm-card-filename {
    font-size: 0.72rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pm-success-wrap {
    padding: 20px 14px;
    max-width: 100%;
    gap: 10px;
  }

  .pm-secondary-actions-row {
    gap: 8px;
    width: 100%;
  }

  .pm-btn-back-edit,
  .pm-btn-restart {
    padding: 10px 8px;
    font-size: 0.8rem;
  }
}
