/* Screenshot stitcher — loads only on pages that mount this tool. */
.pr-stitcher .pr-stage { position: relative; inset: auto; touch-action: pan-x pan-y; }
.pr-stitch-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 12px; align-items: stretch; }
.pr-stitcher .pr-opt { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; color: var(--pr-muted); }
.pr-stitcher .pr-opt input[type="number"] { width: 64px; }
.pr-stitch-list { min-height: 0; }
.pr-stitch-view { position: absolute; inset: 16px; display: flex; align-items: center; justify-content: center; overflow: auto; }
.pr-stitch-view canvas { max-width: 100%; max-height: 100%; background:
  repeating-conic-gradient(var(--pr-checker) 0 25%, transparent 0 50%) 0 0 / 16px 16px; }
.pr-stitch-list { display: flex; flex-direction: column; gap: 8px; overflow: auto; padding: 4px; }
.pr-stitch-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--pr-line);
  border-radius: var(--pr-radius); background: var(--pr-surface); font-size: .75rem; }
.pr-stitch-thumb { width: 40px; height: 40px; background: var(--pr-hover); border-radius: 4px; flex: 0 0 auto; }
.pr-stitch-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--pr-muted); }
.pr-stitch-actions { flex: 0 0 auto; }
.pr-stitch-actions button { width: 26px; height: 26px; padding: 0; font-size: .8125rem; }
.pr-stitcher .pr-stage.pr-dragover { outline: 2px dashed var(--pr-accent); outline-offset: -6px; }
@media (max-width: 640px) {
  .pr-stitch-workspace { grid-template-columns: 1fr; height: auto; }
  .pr-stitcher .pr-stage { min-height: 280px; }
  .pr-stitch-list { max-height: 200px; }
  .pr-stitcher .pr-toolbar { flex-wrap: wrap; }
}
