.crop-modes{display:flex;gap:7px;flex-wrap:wrap;padding:16px 22px 0}.crop-modes button{font-size:.875rem;flex:0 1 auto;background:#fffaf0}.crop-modes button[aria-pressed=true]{background:var(--accent);border-color:var(--accent);color:white}.crop-modes button[aria-pressed=true]:hover{color:white;background:var(--dark)}
#crop-layer[data-mode=handles]{cursor:default}#crop-layer[data-mode=handles] #crop-box{pointer-events:auto}#crop-layer[data-mode=draw] #crop-box button{display:none}
#crop-box .crop-move{position:absolute;inset:0;width:100%;height:100%;min-height:0;padding:0;border:0;border-radius:0;background:transparent;cursor:move;touch-action:none}
#crop-box .crop-move:focus-visible{outline:2px dashed white;outline-offset:-6px;background:#ffffff0d}
#crop-box .crop-handle{position:absolute;z-index:2;display:grid;place-items:center;width:32px;height:32px;min-height:0;padding:0;border:0;border-radius:2px;background:transparent;touch-action:none}
#crop-box .crop-handle:hover{background:#ffffff33}#crop-box .crop-handle:focus-visible{outline:2px solid white;outline-offset:-2px;background:#ffffff55}
.crop-handle span{display:block;width:15px;height:15px;border:0 solid #261e13;filter:drop-shadow(0 0 1px white) drop-shadow(0 0 1px white);pointer-events:none}
.handle-nw{left:0;top:0;cursor:nwse-resize}.handle-ne{right:0;top:0;cursor:nesw-resize}.handle-se{right:0;bottom:0;cursor:nwse-resize}.handle-sw{left:0;bottom:0;cursor:nesw-resize}
.handle-nw span{border-top-width:4px;border-left-width:4px}.handle-ne span{border-top-width:4px;border-right-width:4px}.handle-se span{border-bottom-width:4px;border-right-width:4px}.handle-sw span{border-bottom-width:4px;border-left-width:4px}
.handle-n{left:50%;top:0;transform:translateX(-50%);cursor:ns-resize}.handle-s{left:50%;bottom:0;transform:translateX(-50%);cursor:ns-resize}.handle-w{left:0;top:50%;transform:translateY(-50%);cursor:ew-resize}.handle-e{right:0;top:50%;transform:translateY(-50%);cursor:ew-resize}
.handle-n span,.handle-s span{width:17px;height:4px;background:#261e13}.handle-e span,.handle-w span{width:4px;height:17px;background:#261e13}
@media(max-width:480px){.crop-modes{padding:13px 15px 0;gap:6px}.crop-modes button{flex:1;font-size:.8125rem;padding:10px 8px}#crop-box .crop-handle{width:38px;height:38px}.crop-handle span{width:17px;height:17px}}
