.document-crop-dialog{width:min(95vw,800px);max-height:95vh;overflow:auto;border:0;border-radius:14px;padding:18px;background:#fff;color:#142b3b}
.document-crop-dialog::backdrop{background:#081823b8}
.document-crop-dialog h2{margin:0 0 5px}
.document-crop-dialog p{margin:0 0 12px}
.document-crop-stage{position:relative;width:max-content;max-width:100%;margin:auto;touch-action:none}
.document-crop-stage img{display:block;max-width:100%;max-height:65vh;object-fit:contain}
.document-crop-overlay,.document-crop-selection{position:absolute;inset:0;width:100%;height:100%;touch-action:none}
.document-crop-overlay{pointer-events:none;overflow:visible}
.document-crop-shade{fill:#071c2a70}
.document-crop-outline{fill:none;stroke:#ffcb45;stroke-width:3;vector-effect:non-scaling-stroke}
.document-crop-selection{cursor:move}
.document-crop-selection [data-handle]{position:absolute;width:26px;height:26px;box-sizing:border-box;transform:translate(-50%,-50%);background:#ffcb45;border:2px solid #fff;border-radius:50%;touch-action:none;box-shadow:0 1px 5px #142b3b88}
.document-crop-selection [data-handle=nw],.document-crop-selection [data-handle=se]{cursor:nwse-resize}
.document-crop-selection [data-handle=ne],.document-crop-selection [data-handle=sw]{cursor:nesw-resize}
.document-crop-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}
.document-crop-actions button{min-height:44px;padding:8px 16px;border-radius:8px;border:1px solid #789;background:white;color:#142b3b}
.document-crop-actions [data-use]{background:#142b3b;color:white}
