/* 증명사진 규격 맞추기 */

.idp-editor { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.idp-editor[hidden] { display: none; }
.idp-stage-col { display: flex; flex-direction: column; gap: 0.6rem; }
.idp-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px var(--border), var(--shadow-lg);
  cursor: grab;
  touch-action: none;
}
.idp-stage:active { cursor: grabbing; }
.idp-stage canvas { display: block; width: 100%; height: 100%; }
.idp-guide { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* 어떤 배경 위에서도 보이게 흰 선에 어두운 그림자를 둘러 준다 */
.idp-guide { filter: drop-shadow(0 0 1px rgba(0,0,0,.7)); }
.idp-guide ellipse, .idp-guide line { stroke: rgba(255,255,255,.95); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.idp-guide line { stroke-dasharray: 4 3; }
.idp-zoom { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; font-weight: 600; color: var(--text-sub); min-height: 44px; }
.idp-zoom input { flex: 1; accent-color: var(--primary); }
.idp-hint { margin: 0; font-size: 0.78rem; color: var(--text-sub); word-break: keep-all; }

.idp-controls { margin-top: 0; }
.idp-controls select, .idp-controls input[type=number] {
  min-height: 44px;
  padding: 0 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.92rem;
}
.idp-controls input[type=number] { width: 8rem; font-family: var(--font-mono); }
.idp-controls input:disabled { opacity: 0.6; }
.idp-wide { flex: 1 1 100%; }
.idp-wide select { width: 100%; }
#idp-custom[hidden], #idp-wpx-l[hidden], #idp-hpx-l[hidden] { display: none; }
.idp-check { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; font-size: 0.86rem; font-weight: 600; cursor: pointer; }
.idp-check input { width: 18px; height: 18px; accent-color: var(--primary); }
.idp-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.8rem 0 0.6rem; }
.idp-actions .btn { min-height: 44px; padding: 0 1rem; font-weight: 600; }

@media (max-width: 640px) {
  .idp-editor { grid-template-columns: 1fr; }
  .idp-stage-col { max-width: 260px; margin: 0 auto; width: 100%; }
}
