@charset "UTF-8";
.pm-drop { min-height:180px; gap:18px; }
.pm-instructions { margin:0 0 22px; color:var(--muted); font-size:14px; line-height:1.9; word-break:keep-all; }
.pm-files { display:grid; gap:9px; max-height:230px; overflow:auto; list-style:none; padding:0; margin:15px 0 0; }
.pm-files li { display:flex; align-items:center; gap:12px; padding:9px 0; border-bottom:1px solid var(--line); font-size:12px; }
.pm-files li>span { flex:1; min-width:0; overflow-wrap:anywhere; line-height:1.7; }
.pm-files button { flex-shrink:0; }
.pm-pages { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); align-content:start; gap:14px; max-height:700px; overflow:auto; overscroll-behavior:auto; padding:4px; scrollbar-gutter:stable; }
.pm-page { min-width:0; padding:12px; border:1px solid var(--line); border-radius:8px; background:#fbfaf7; cursor:grab; }
.pm-page.is-dragging { opacity:.45; border-color:var(--blue); }
.pm-page-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; color:var(--muted); }
.pm-position { display:inline-grid; place-items:center; min-width:29px; height:29px; padding:0 4px; border-radius:5px; background:var(--ink); color:white; font-size:12px; font-variant-numeric:tabular-nums; }
.pm-page-heading>span { font-size:24px; line-height:1; }
.pm-page img { display:block; width:100%; height:190px; object-fit:contain; margin:0 auto 12px; background:white; border:1px solid #e3e5ec; }
.pm-page img:not([src]) { background:linear-gradient(135deg,#f0f1f4,#fff); }
.pm-source { min-width:0; margin:0 0 4px; color:var(--ink); font-size:12px; font-weight:650; line-height:1.6; overflow-wrap:anywhere; }
.pm-original { margin:0 0 12px; color:var(--muted); font-size:11px; }
.pm-arrows { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:5px; }
.pm-small { min-width:0; min-height:40px; padding:6px 7px; border:1px solid #d5dae7; border-radius:5px; background:white; color:var(--ink); font:inherit; font-size:11px; font-weight:650; line-height:1.5; overflow-wrap:anywhere; cursor:pointer; }
.pm-small:hover:not(:disabled) { border-color:var(--blue); color:var(--blue); background:var(--pale); }
.pm-small:disabled { opacity:.45; cursor:not-allowed; }
.pm-move { display:flex; gap:5px; margin-top:7px; }
.pm-move input { min-width:0; width:45px; min-height:40px; padding:5px; border:1px solid #d5dae7; border-radius:5px; color:var(--ink); background:white; font:inherit; font-size:16px; text-align:center; }
.pm-move button { flex:1; }
.pm-move input[aria-invalid=true] { border-color:#b42318; outline:1px solid #b42318; }
.pm-stale { margin:10px 0 0; max-width:650px; color:#895a14; font-size:12px; line-height:1.8; }
.pm-page:focus-within { border-color:var(--blue); }
.pm-main button:focus-visible,.pm-main input:focus-visible { outline:3px solid #8eafff; outline-offset:3px; }
@media(max-width:1000px) { .pm-pages { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:650px) { .pm-pages { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; max-height:640px; padding:3px; scrollbar-gutter:auto; } .pm-page { padding:9px; } .pm-page img { height:145px; } .pm-drop { min-height:170px; padding:20px 12px; } .pm-page .pm-small { padding:5px 3px; font-size:10px; } .pm-move input { width:37px; } }
