.image-crop-dialog{width:min(900px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);padding:0;border:0;border-radius:22px;background:#f1f5f2;color:#103c2e;box-shadow:0 24px 90px #001e1870;overflow:auto}.image-crop-dialog::backdrop{background:#061e18ba;backdrop-filter:blur(5px)}.crop-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:22px 28px 8px;background:#fff}.crop-header h2{font-size:clamp(22px,3vw,32px);line-height:1.15;letter-spacing:-.04em;margin:5px 0 0}.crop-close{font-size:25px;line-height:1;border:0;background:#eaf1eb;width:44px;flex-shrink:0}.crop-instruction{background:#fff;padding:0 28px 18px;margin:0;color:#4d6558}.crop-stage{position:relative;height:min(54vh,470px);min-height:260px;margin:22px 28px 0;overflow:hidden;background:#dce6df;touch-action:none;cursor:grab;outline:1px solid #c6d5ca;border-radius:12px}.crop-stage.is-dragging{cursor:grabbing}.crop-stage:focus-visible{outline:3px solid #12996a;outline-offset:3px}.crop-stage img{position:absolute;display:block;max-width:none;user-select:none;pointer-events:none}.crop-frame{position:absolute;z-index:2;border:2px solid #fff;box-shadow:0 0 0 2000px #dfe9e2a8,inset 0 0 0 1px #0b563e;pointer-events:none}.crop-frame i{position:absolute;width:12px;height:12px;background:#fff;border:1px solid #0b563e}.crop-frame i:nth-child(1){top:-7px;left:-7px}.crop-frame i:nth-child(2){top:-7px;right:-7px}.crop-frame i:nth-child(3){bottom:-7px;left:-7px}.crop-frame i:nth-child(4){bottom:-7px;right:-7px}.crop-tools{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin:18px 20px 0}.crop-tools button{min-height:44px}.crop-tools [aria-pressed=true]{background:#d8efe2;border-color:#259164;color:#034b30}.crop-note{font-size:13px;min-height:20px;text-align:center;color:#486254;margin:14px 28px}.crop-footer{display:flex;justify-content:flex-end;gap:10px;background:white;padding:18px 28px;border-top:1px solid #d7e3da}.crop-footer .primary{min-width:170px}@media(max-width:600px){.crop-header{padding:18px 18px 8px}.crop-instruction{padding:0 18px 14px;font-size:13px}.crop-stage{margin:12px 14px 0;height:min(48vh,370px);min-height:220px}.crop-tools{gap:6px}.crop-tools button{font-size:12px;padding:8px 10px}.crop-footer{padding:14px 18px}.crop-footer button{flex:1}}

@media(max-width:600px){
 .image-crop-dialog{width:calc(100vw - 10px);max-height:calc(100dvh - 10px);border-radius:16px;overscroll-behavior:contain}
 .crop-header{position:sticky;top:0;z-index:4;padding:14px 14px 7px}
 .crop-header h2{font-size:22px}
 .crop-instruction{padding:0 14px 12px;font-size:12px}
 .crop-stage{height:min(46dvh,350px);min-height:230px;margin:10px 10px 0;border-radius:9px}
 .crop-tools{margin:12px 10px 0;gap:5px}
 .crop-tools button{min-width:44px;min-height:44px;padding:7px 9px}
 .crop-note{margin:10px 14px;font-size:12px}
 .crop-footer{position:sticky;bottom:0;z-index:4;display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px 12px calc(12px + env(safe-area-inset-bottom))}
 .crop-footer .primary{min-width:0}
}
