/* The JPG to PDF converter (/jpg-to-pdf), on the foundation, tool.css and the video checker's drop tile (video.css):
   the editor is the drop tile and two choices between hairlines; the well lays out the pages as they will print, each
   with its number and buttons to move or remove it; under it, LinkedIn's document checks, the numbers, Download PDF and
   the pennant. */
.jpgpdf .editor { border-radius: 12px; transition: background .15s ease-out, box-shadow .15s ease-out; }
.jpgpdf .editor.drop { background: var(--muted); box-shadow: 0 0 0 12px var(--muted); }
.set { margin-top: 24px; border-top: 1px solid var(--border); }
.field { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 60px; border-bottom: 1px solid var(--border); font-size: 15px; color: var(--muted-foreground); }
.field > span:first-child { flex: none; }
.checked { margin-top: var(--space-5); font-size: 15px; color: var(--muted-foreground); }

/* The well: the pages in order, as many a row as fit. */
.jpgpdf .stage { display: block; min-height: 360px; padding: 32px; }
.pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 28px 24px; margin: 0; padding: 0; list-style: none; align-items: end; }
.pages:empty { display: none; }
.has-photos .stage .empty { display: none; }
.stage .empty { margin: 0; padding: 120px 0; font-size: 16px; color: var(--muted-foreground); text-align: center; }
.page { position: relative; width: 100%; background: #fff; border-radius: 2px; box-shadow: 0 0 0 .5px var(--border), 0 2px 8px rgba(36, 17, 12, .1); overflow: hidden; }
.page img { position: absolute; display: block; object-fit: fill; }
.order { display: flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 14px; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.order span { flex: 1; font-weight: 600; color: var(--foreground); }
.order button { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: none; font-size: 20px; line-height: 1; color: var(--foreground); cursor: pointer; }
.order button:disabled { color: var(--border); cursor: default; }
@media (hover: hover) { .order button:not(:disabled):hover { background: var(--background); } }
.order button:focus-visible { outline: 2px solid var(--foreground); outline-offset: 0; }

.fits { grid-column: 1 / -1; margin: 20px 0 0; padding: 0; list-style: none; }
.fits:empty { display: none; }
.fits li { position: relative; padding: 6px 0 6px 22px; font-size: 15.5px; line-height: 1.45; color: var(--foreground); }
.fits li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 10px; height: 10px; border-radius: 999px; background: var(--success); }
.fits li.no::before { background: var(--destructive); }

.jpgpdf .result { align-items: center; }
.acts { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; justify-content: flex-end; }
.acts [hidden] { display: none; }

@media (max-width: 1119px) {
  .jpgpdf .editor { position: static; }
}
@media (max-width: 759px) {
  .jpgpdf .stage { min-height: 200px; padding: 20px; }
  .pages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  .stage .empty { padding: 60px 0; }
  .jpgpdf .result { flex-direction: column; align-items: stretch; }
  .acts { flex-direction: column; align-items: stretch; }
  .field { flex-wrap: wrap; padding: 10px 0; }
}
