/* Image tools */
.img-stage { display: flex; justify-content: center; margin: 10px 0; }
.crop-wrap { position: relative; max-width: 100%; touch-action: none; user-select: none; }
.crop-wrap canvas { display: block; width: 100%; height: 100%; border-radius: 8px; }
.crop-box { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .45); cursor: move; touch-action: none; }
.crop-box.round { border-radius: 50%; }
.crop-box .h { position: absolute; right: -10px; bottom: -10px; width: 20px; height: 20px; border-radius: 50%; background: #0071e3; border: 2px solid #fff; cursor: nwse-resize; }
.crop-box.round .h { right: 10%; bottom: 10%; }
.dp-preview { width: min(380px, 80vw); height: auto; border-radius: 50%; box-shadow: 0 10px 30px rgba(0, 0, 0, .15); }
.pdf-opts input[type=color] { width: 40px; height: 32px; padding: 0; border: 1px solid #d2d2d7; border-radius: 8px; background: none; }
.pdf-opts input[type=number] { width: 90px; }
.pdf-tool > h2 { margin: 26px 0 4px; font-size: 1.3rem; }

.size-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 12px 0; }
.size-chips button { text-align: left; border: 1px solid #d2d2d7; background: #fff; border-radius: 12px; padding: 10px 12px; cursor: pointer; font: inherit; color: #1d1d1f; }
.size-chips button b { display: block; font-size: .92rem; font-weight: 600; }
.size-chips button span { font-size: .8rem; color: #6e6e73; }
.size-chips button:hover { border-color: #0071e3; }
.size-chips button.on { border-color: #0071e3; background: #f0f7ff; box-shadow: 0 0 0 1px #0071e3 inset; }
.size-table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; }
.size-table th, .size-table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid #e5e5ea; }
.size-table th { font-weight: 600; background: #f5f5f7; }
.img-stage .crop-wrap { overflow: hidden; border-radius: 8px; }
.img-stage .crop-box .h { right: 3px; bottom: 3px; }
.img-stage .crop-box.round .h { right: 15%; bottom: 15%; }
