.cols.pp { grid-template-columns: minmax(0, 1fr) 340px; }
.pp-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 520px; }
.pp-drop {
  width: 100%; min-height: 480px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  border: 2px dashed var(--line-strong); border-radius: 12px; cursor: pointer; text-align: center; padding: 20px;
}
.pp-drop:hover, body.dragging .pp-drop { border-color: var(--accent); background: rgba(79, 140, 255, .05); }
.pp-drop .drop-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: var(--panel-2); }
.pp-editor { position: relative; display: grid; place-items: center; width: 100%; }
#view { touch-action: none; cursor: grab; border-radius: 4px; box-shadow: 0 6px 30px rgba(0, 0, 0, .5); max-width: 100%; }
#view:active { cursor: grabbing; }
.pp-busy {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center;
  background: rgba(15, 17, 21, .72); border-radius: 4px; font-size: 13.5px;
}
.pp-help { margin-top: 10px; text-align: center; }
.swatches { display: flex; gap: 8px; }
.swatches button { width: 38px; height: 38px; border-radius: 10px; border: 2px solid var(--line); cursor: pointer; padding: 0; }
.swatches button.active { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(79, 140, 255, .35); }
.swatches .keep { width: auto; padding: 0 10px; background: var(--panel-2); color: var(--text); font: inherit; font-size: 12.5px; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .2); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#printArea { display: none; }
@media (max-width: 860px) { .cols.pp { grid-template-columns: 1fr; } .pp-stage { min-height: 0; } .pp-drop { min-height: 260px; } }
@media print {
  body > *:not(#printArea) { display: none !important; }
  #printArea { display: block; }
  #printArea img { display: block; }
}
