@import url('/tools/merge-images/workbench.css');

.pp-work {
  align-items: start;
}
.pp-work > *,
.pp-controls,
.pp-pair {
  min-width: 0;
}
.pp-controls,
.pp-controls details[open],
#print-controls {
  display: grid;
  gap: 8px;
}
.pp-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pp-controls .zt-field {
  margin: 0;
}
.pp-controls input,
.pp-controls select,
.pp-controls button {
  font-size: 16px;
  min-height: 44px;
  width: 100%;
  min-width: 0;
}
.pp-controls details {
  border-top: 1px solid var(--ws-line);
}
.pp-controls summary {
  cursor: pointer;
  padding: 12px 0;
  min-height: 44px;
  font-weight: 600;
}
.pp-work [hidden],
.pp-proof[hidden] {
  display: none !important;
}
.pp-work figure,
.pp-proof {
  margin: 12px 0 0;
  padding: 12px;
  background: var(--ws-2);
  border: 1px solid var(--ws-line);
  border-radius: 8px;
  text-align: center;
}
.pp-work figcaption,
.pp-proof figcaption {
  font-size: 14px;
  margin-top: 8px;
}
.pp-mat {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
#crop-frame {
  --pp-height: 400px;
  position: relative;
  width: min(100%, calc(var(--pp-height) * var(--pp-ratio)));
}
#portrait {
  display: block;
  width: 100%;
  aspect-ratio: var(--pp-ratio);
  height: auto;
  touch-action: none;
  cursor: grab;
}
.pp-guide {
  position: absolute;
  top: var(--pp-guide-top);
  left: 19%;
  width: 62%;
  height: var(--pp-guide-height);
  border: 1px dashed #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #444;
  pointer-events: none;
}
@media (max-width: 620px) {
  #crop-frame { --pp-height: min(400px, 52svh); }
  #pp-uk a { display: inline-flex; align-items: center; min-height: 44px; }
}
.pp-guide::before,
.pp-guide::after {
  content: '';
  position: absolute;
  left: -14%;
  right: -14%;
  border-top: 1px dashed white;
  box-shadow: 0 1px #444;
}
.pp-guide::before {
  top: 0;
}
.pp-guide::after {
  bottom: 0;
}
.pp-proof canvas,
.pp-proof img {
  max-width: 100%;
  max-height: 330px;
  width: auto;
  height: auto;
  vertical-align: middle;
}
.pp-work .zt-files {
  overflow-wrap: anywhere;
}
.pp-work .zt-file .actions button {
  min-width: 32px;
  min-height: 32px;
}
#tool > .zt-do { margin-bottom: 6px; }

