@import url("/image-converter/styles.css?v=1");
/* Photo to PDF */
.pp-gate { border-left: 3px solid var(--warn); padding: 6px 0 6px 12px; margin: 12px 0 0; }
.panel h2 .small { font-weight: 400; margin-left: 6px; }
.pp-pages { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.pp-card { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-2); }
.pp-view { display: flex; align-items: center; justify-content: center; height: 220px; padding: 4px; border: 1px solid transparent; border-radius: 8px; background: #0b0c10; cursor: pointer; }
.pp-view:hover:not(:disabled), .pp-view:focus-visible { border-color: var(--accent); outline: none; }
.pp-view:disabled { cursor: progress; }
.pp-view canvas { display: block; max-width: 100%; max-height: 212px; box-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.pp-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; }
.pp-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-note { overflow-wrap: anywhere; }
.pp-note.warn { color: var(--warn); }
.pp-note.bad { color: var(--bad); }
.pp-act { display: flex; flex-wrap: wrap; gap: 4px; }
.pp-act .btn.sm { min-width: 32px; padding: 6px 8px; }
.pp-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 0 0 8px; }
.pp-size { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.pp-size .sel { width: auto; }
.pp-save { margin: 14px 0 0; }
.pp-bar { display: block; width: 100%; height: 10px; margin: 12px 0 0; accent-color: var(--accent); }
#skip { margin: 10px 0 0; }
.pp-status { color: var(--text); overflow-wrap: anywhere; }
#editor:focus { outline: none; }
.pp-ed { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; margin: 12px 0; }
@media (max-width: 760px) { .pp-ed { grid-template-columns: minmax(0, 1fr); } }
.pp-edphoto { min-width: 0; }
.pp-stage { position: relative; margin: 0 auto; touch-action: none; user-select: none; -webkit-user-select: none; }
.pp-stage #photo { display: block; width: 100%; height: 100%; border-radius: 4px; }
.pp-outline { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.pp-outline polygon { fill: rgba(149, 214, 0, .07); stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.pp-h { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: grab; touch-action: none; }
.pp-h::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: rgba(149, 214, 0, .35); border: 2px solid var(--accent); box-shadow: 0 0 0 1px #000; }
.pp-h:focus-visible { outline: none; }
.pp-h:focus-visible::after { inset: 8px; background: rgba(149, 214, 0, .6); border-color: #fff; }
.pp-h:active { cursor: grabbing; }
.pp-loupe { position: absolute; width: 128px; height: 128px; margin: -170px 0 0 -64px; border-radius: 50%; border: 2px solid var(--accent); box-shadow: 0 2px 12px rgba(0, 0, 0, .7); pointer-events: none; }
.pp-loupe.pp-below { margin-top: 42px; }
.pp-res { margin: 0; min-width: 0; }
.pp-res canvas { display: block; max-width: 100%; max-height: 70vh; margin: 0 auto 6px; background: #fff; box-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.pp-res canvas:not(.on) { display: none; }
.pp-res canvas.pp-old { opacity: .45; }
.pp-res figcaption { text-align: center; }
.pp-edbtns { gap: 8px; }
@media (max-width: 520px) {
  .pp-pages { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pp-card { padding: 6px; }
  .pp-view { height: 180px; }
  .pp-view canvas { max-height: 172px; }
  .pp-act { gap: 3px; }
  .pp-act .btn.sm { min-width: 28px; min-height: 32px; padding: 4px 6px; }
}
