.crop-tool-panels .ui-workbench-panel{container-type:inline-size}.crop-tool-panels :is(.ui-file-source-body,.crop-preview){--crop-media-height:clamp(260px, 62.5cqw, 360px);height:var(--crop-media-height);grid-template:minmax(0,1fr)/minmax(0,1fr);place-items:center;min-width:0;min-height:0;padding:20px;display:grid;overflow:hidden}.crop-stage-wrap{grid-template:minmax(0,1fr)/minmax(0,1fr);place-items:center;width:100%;min-width:0;height:100%;display:grid}.crop-stage{-webkit-user-select:none;user-select:none;width:fit-content;max-width:100%;position:relative;overflow:hidden}.crop-stage img,.crop-preview canvas{max-width:100%;max-height:calc(var(--crop-media-height) - 40px);width:auto;height:auto;display:block}.crop-preview canvas{background:repeating-conic-gradient(var(--ui-border) 0% 25%, var(--ui-surface) 0% 50%) 0 0 / 16px 16px}.crop-selection{outline:1px solid #fff;position:absolute;box-shadow:0 0 0 100vmax #0f172a99}.crop-selection .crop-move,.crop-selection .crop-corner{touch-action:none;background:0 0;border:none;border-radius:0;min-height:0;padding:0;position:absolute}.crop-selection .crop-move{cursor:move;inset:0}.crop-selection .crop-corner{z-index:1;width:min(24px,50%);height:min(24px,50%)}.crop-corner:after{content:"";background:#fff;border:1px solid #0f172abf;border-radius:2px;width:8px;height:8px;margin:auto;position:absolute;inset:0}.crop-corner-nw{cursor:nwse-resize;top:0;left:0}.crop-corner-ne{cursor:nesw-resize;top:0;right:0}.crop-corner-sw{cursor:nesw-resize;bottom:0;left:0}.crop-corner-se{cursor:nwse-resize;bottom:0;right:0}.crop-corner-nw:after{margin:0 auto auto 0}.crop-corner-ne:after{margin:0 0 auto auto}.crop-corner-sw:after{margin:auto auto 0 0}.crop-corner-se:after{margin:auto 0 0 auto}.crop-selection .crop-move:focus-visible,.crop-selection .crop-corner:focus-visible{outline-offset:-2px;outline:2px solid var(--ui-primary)}@media (width<=599px){.crop-tool-panels :is(.ui-file-source-body,.crop-preview){--crop-media-height:clamp(220px, 62.5cqw, 280px)}}@media (pointer:coarse){.crop-selection .crop-corner{width:min(36px,50%);height:min(36px,50%)}}
